Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop to main for the 3.0.0 release #89

Merged
merged 425 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
425 commits
Select commit Hold shift + click to select a range
df31839
Make the class of SolrIndexReprocessTest work.
taojing2002 Aug 19, 2022
d48150e
Add a removed bean.
taojing2002 Aug 19, 2022
59a0afe
Add code to test reindex before delete them.
taojing2002 Aug 19, 2022
be9fc25
Re-arrange the test documents.
taojing2002 Aug 19, 2022
16c7e0f
Make the class JsonLdSubProcessorTest work.
taojing2002 Aug 19, 2022
24fd213
Re-arrange the test files for testing.
taojing2002 Aug 19, 2022
0071953
Clear the code in the class RdfXmlProcessorTest
taojing2002 Aug 19, 2022
d3c7c8b
Correct the issues on the identifiers.
taojing2002 Aug 20, 2022
329a4d2
Add the beans in deleted test context file to the main test context f…
taojing2002 Aug 20, 2022
f688ce7
Change the portal test docs to the new location.
taojing2002 Aug 20, 2022
e5454e0
Delete the hazelcast configuration file.
taojing2002 Aug 20, 2022
69cd2ee
Delete the solr.properties file since they in the index-processor.pro…
taojing2002 Aug 20, 2022
9200784
Add the code to manually set the autowired class fields.
taojing2002 Aug 22, 2022
f84cbdb
Fixed a bug for the value of the service type.
taojing2002 Aug 22, 2022
99d558b
Merge remote-tracking branch 'origin/develop' into feature-9-rabbitmq…
taojing2002 Aug 23, 2022
5aeb4d0
Add a clean plugin to delete the data directory of the solr test server.
taojing2002 Aug 23, 2022
3042e98
Roll back changes to solr.properties
nein09 Aug 23, 2022
cd08a6a
Merge pull request #12 from DataONEorg/feature-2-add-license
taojing2002 Aug 25, 2022
cdd552d
Merge remote-tracking branch 'origin/develop' into feature-9-rabbitmq…
taojing2002 Aug 25, 2022
cb063d2
Remove the duplicated property of solr version.
taojing2002 Aug 26, 2022
8c0fff1
Add the test home for solr 8.
taojing2002 Aug 26, 2022
c9e95fa
Modify the location field type, so it can work under solr 9.
taojing2002 Aug 26, 2022
06f11a9
Adjust the code to make the test work against solr 8.
taojing2002 Aug 26, 2022
4d9fc57
Remove the test direcotry for solr5 since the tests work under solr 8.
taojing2002 Aug 26, 2022
300a7ed
Add the filter for the arcived field.
taojing2002 Aug 26, 2022
86538b5
The test solr server uses the port of 8985. So it will not interfere …
taojing2002 Aug 26, 2022
4869553
Removed the obsoleted test class.
taojing2002 Aug 27, 2022
5a2bc8d
Do not swallow exceptions if the constructor encounter exceptions.
taojing2002 Aug 27, 2022
661366a
Exclude jean-core from d1_libclient_java
taojing2002 Aug 27, 2022
8660bba
Add the dependency on jackson-annotations. Otherwise the JsonLd proce…
taojing2002 Aug 27, 2022
0467804
Add the jar files which was delete in java 11 for jaxb.
taojing2002 Aug 28, 2022
97a45e7
Use white space to replace tab for the new added dependencies.
taojing2002 Aug 28, 2022
380084c
Removed unused jar files and test supporting classes.
taojing2002 Aug 28, 2022
a096288
Add the xercesImpl back and upgrade to 2.12.2.
taojing2002 Aug 28, 2022
e765a3f
Add the code to test under solr 9.
taojing2002 Aug 29, 2022
a25fdb6
Add a class to parse the index queue messages.
taojing2002 Sep 1, 2022
6caebab
Add a junit test class for the parser and fix some bugs.
taojing2002 Sep 2, 2022
56b4ee6
Add the test case for scenarios when the object path is null or blank.
taojing2002 Sep 2, 2022
82ec745
Use a separate parser class to parse the queue message.
taojing2002 Sep 2, 2022
95c5f36
Change the base image to eclipse-temurin:17.0.4.1_1-jre-jammy
taojing2002 Sep 7, 2022
74641d6
Add instructions for pushing images, and fix typo in Dockerfile.
mbjones Sep 7, 2022
a649abe
Add instructions to LABEL an image to comnect it to github.
mbjones Sep 7, 2022
13585b3
Make the class fields DocumentBuilderFactory and DocumentBuilder be l…
taojing2002 Sep 7, 2022
559d640
Merge branch 'feature-9-rabbitmq-worker' of https://github.com/DataON…
taojing2002 Sep 7, 2022
fce56b4
Add a new junit class for the class of ObjectManager.
taojing2002 Sep 13, 2022
98a004b
Change some variables and methods from private to protected so they c…
taojing2002 Sep 13, 2022
c35c392
Add a junit test class to test the methods on IndexWorker.
taojing2002 Sep 13, 2022
7d6fd6e
Use bash shell to replace sh. Otherwise, the script doesn't work.
taojing2002 Sep 20, 2022
eef8b44
The jvm parameter of UseCGroupMemoryLimitForHeap is replaced by UseCo…
taojing2002 Sep 20, 2022
ed931c6
In the cloud mode, we don't need the core name. We only need the coll…
taojing2002 Sep 20, 2022
6ae643a
Add some solr and indexed related properties.
taojing2002 Sep 21, 2022
1d0c9f3
Add the installation of nano
taojing2002 Sep 21, 2022
24769e4
The solr urls will get from the Setting class rather than Spring.
taojing2002 Sep 23, 2022
a3d0e63
Fixed a bug that the order of method parameters was wrong in the dele…
taojing2002 Sep 23, 2022
2adc3f0
Arrange the order of the properties.
taojing2002 Sep 23, 2022
4ef0171
Add the pvc for dataone-indexer pods.
taojing2002 Sep 24, 2022
b2c3e9b
Add the solr conf files for solr 9.
taojing2002 Sep 24, 2022
cccf1b4
Dlete the src/main/resources/index-solr-schema.xml since it is replac…
taojing2002 Sep 24, 2022
823f8b5
Remove a extral - from helm/values.yaml
taojing2002 Sep 24, 2022
49856e9
Update README.md
taojing2002 Sep 28, 2022
69713fc
Update README.md
taojing2002 Sep 28, 2022
f46d40b
Remove the AutoWired annotation word.
taojing2002 Oct 3, 2022
b9e3097
Merge branch 'feature-9-rabbitmq-worker' of https://github.com/DataON…
taojing2002 Oct 3, 2022
1dcc585
Add the code to create an env variable from serect.
taojing2002 Oct 4, 2022
f13cfa1
Replace the deprecated trie-int/float/long/double/date by Int/Fload/L…
taojing2002 Oct 5, 2022
92da54a
Add licenseName and licenseUrl to DataCite processor
nein09 Oct 5, 2022
8f17bcf
Replace the deprecated class such as ManagedSynonymFilterFactory,Syno…
taojing2002 Oct 5, 2022
4bba764
In the application-context-ontology-model-service.xml file, the pathe…
taojing2002 Oct 7, 2022
9ea3e08
Work towards using solr extraVolumes in helm.
mbjones Oct 7, 2022
35f01f4
Configure extraVolumes for solr configuration.
mbjones Oct 7, 2022
d3814ee
Update solr config properties, mount config files.
mbjones Oct 7, 2022
11d1759
Provide configuration script to set up the DataONE schema.xml.
mbjones Oct 11, 2022
d22c673
Update README with config instructions.
mbjones Oct 11, 2022
92852f7
Use the DateRangeFiled type for dateUploaded, dateModified and et al.
taojing2002 Oct 12, 2022
10abe36
Merge pull request #29 from DataONEorg/feature-2-add-license
taojing2002 Oct 19, 2022
1807022
Merge branch 'develop' into feature-9-rabbitmq-worker
taojing2002 Oct 19, 2022
530a9ac
Update to use custom entrypoint for SOLR startup.
mbjones Oct 12, 2022
34b63d3
Configure to use readiness proble for configuration.
mbjones Oct 19, 2022
8d7b6ec
Moving solr config to postStart hook.
mbjones Oct 21, 2022
7d0ddee
Upgrade solr config script to check for zookeeper and collection.
mbjones Oct 21, 2022
14e0674
Make the metacat data/document volume read only.
taojing2002 Oct 26, 2022
38c223b
Merge branch 'feature-9-rabbitmq-worker' of https://github.com/DataON…
taojing2002 Oct 26, 2022
6773b19
Add the solr.tgz char file. Also update its version to 6.2.3.
taojing2002 Oct 26, 2022
ab7a0a1
Update the chat lock file, and stop tracking the tgz files for depend…
mbjones Oct 27, 2022
c3b15ec
Use the customCollection name in the solr url.
taojing2002 Oct 31, 2022
5ff1855
Migrate HorizontalPodAutoscaler from to `autoscaler/v2`.
mbjones Nov 1, 2022
61cbcc0
Add the ingress configuration.
taojing2002 Nov 7, 2022
d17ec8f
Add the initContainers to make sure that the solr and rabbitmq servic…
taojing2002 Nov 8, 2022
5589bec
Make the solr port number configurable.
taojing2002 Nov 8, 2022
1b781c1
Use a single value of the solr port.
taojing2002 Nov 9, 2022
b9ee70c
Add README instructions for `rabbitmqadmin`.
mbjones Nov 9, 2022
10cc906
Change back the field type for date from DateRangeField to DatePoint…
taojing2002 Dec 8, 2022
6cfe638
Update maven build to use Java 17 compiler.
mbjones Dec 8, 2022
63f989b
WIP getting the licenseDescription out for EML 2.1.1
nein09 Oct 19, 2022
8843ae2
License description for EML 2-2.1.1
nein09 Oct 20, 2022
a697d67
Add EML 2.2.0 fields
nein09 Oct 22, 2022
6b85f6c
Fix EML format file and test case
nein09 Nov 8, 2022
96c8e2d
WIP
nein09 Nov 3, 2022
05ab922
Remove extra license field
nein09 Dec 8, 2022
cc3882e
Merge branch 'develop' into feature-39-update-java
mbjones Dec 8, 2022
d4284d3
Change maven publish to only trigger on main.
mbjones Dec 8, 2022
b8c95ca
Merge pull request #40 from DataONEorg/feature-39-update-java
mbjones Dec 8, 2022
b2f0cc1
Start a GHA workflow for build, test, and publish CI.
mbjones Dec 8, 2022
191005d
Fix the GHA workflow trigger on push.
mbjones Dec 8, 2022
7652576
Make the indexQueuemessageParser more robust by adding more checks on…
taojing2002 Dec 9, 2022
3982b1e
Add debug output to IndexWorkerTest for GHA runs.
mbjones Dec 9, 2022
bb7c692
Only try 2 threads under GHA because that is all available.
mbjones Dec 9, 2022
283b600
Adjust multithreaded test based on available processors.
mbjones Dec 9, 2022
5acf584
Add package step to GHA workflow.
mbjones Dec 9, 2022
af5d55a
Use cache to pass build artifact to second job in GHA.
mbjones Dec 9, 2022
c597551
Add job dependency.
mbjones Dec 9, 2022
c23491a
Add docker image build and publish to GHA.
mbjones Dec 9, 2022
762d551
Update dockerfile with path fixes for GHA
mbjones Dec 9, 2022
ad5551d
Use the root of the work dir as the docker context.
mbjones Dec 9, 2022
a7b8268
Fix syntax of build-args in GHA workflow.
mbjones Dec 9, 2022
7caac54
Rename image, and only build on develop branch and tags.
mbjones Dec 9, 2022
2bca17f
Re-enable all tests now that the GHA workflow is working.
mbjones Dec 9, 2022
a5f4b93
Merge branch 'feature-10-docker' into develop
mbjones Dec 9, 2022
59dbcb2
Add the code to refresh tokens when a not-authorized exception happen…
taojing2002 Dec 9, 2022
909ac57
Merge branch 'develop' of https://github.com/DataONEorg/dataone-index…
taojing2002 Dec 9, 2022
86a857f
Add some statement for debuging.
taojing2002 Dec 12, 2022
8321059
Use the synchronzied keyword to make sure we only create one instance.
taojing2002 Dec 13, 2022
ccbde88
License for dc-oai
nein09 Dec 13, 2022
0cff40e
Intialize the OntologyModelService in the IndexWorker class.
taojing2002 Dec 14, 2022
75274f3
Add statement to measure the time of getting the system metadata.
taojing2002 Dec 15, 2022
1f18b64
Add statements to measure the preformance.
taojing2002 Dec 15, 2022
f476a8e
Debug the process method.
taojing2002 Dec 15, 2022
a7768fa
Add the performances measure statements.
taojing2002 Dec 15, 2022
88bcafe
Debug the query time.
taojing2002 Dec 15, 2022
90a9626
Downgrade some debug statement level.
taojing2002 Dec 16, 2022
a7ce085
Update to bewest build-push action versions.
mbjones Dec 20, 2022
c508fa1
Update tag for image to include repository owner.
mbjones Dec 20, 2022
6689093
Refactor GHA image build to get JAR version from Maven pom.
mbjones Dec 20, 2022
81b5fe5
Fix step name in GHA.
mbjones Dec 20, 2022
0c3d3c4
Fix syntax of echo in GHA workflow.
mbjones Dec 20, 2022
d03cd24
Comment out echo with syntax issue from GHA.
mbjones Dec 20, 2022
c7465c7
Add a profile to compile code under the java 1.8 compiler
taojing2002 Jan 9, 2023
f40eaed
Add ISO license support
nein09 Jan 11, 2023
94773b6
Add the time taking in the log statement.
taojing2002 Jan 14, 2023
cd22ffd
Add NOAA and PANGAEA
nein09 Jan 18, 2023
039f5f9
Update dependabot config to target `develop` branch.
mbjones Jan 24, 2023
a59b26e
Revert formatting change
nein09 Jan 27, 2023
1dfde1f
Add the solr user id of 1000 to run the solr container.
taojing2002 Jan 27, 2023
744fc60
Merge branch 'develop' of https://github.com/DataONEorg/dataone-index…
taojing2002 Jan 27, 2023
fe1b0d0
Merge pull request #45 from DataONEorg/feature-2-add-license
nein09 Jan 30, 2023
7e31bc3
Change the method of loadExternalProperties to public.
taojing2002 Jan 30, 2023
1295448
Merge branch 'develop' of https://github.com/DataONEorg/dataone-index…
taojing2002 Jan 30, 2023
466782c
Add a new feature that clients can specify the property file path.
taojing2002 Jan 31, 2023
d454379
Add some performance debug statements.
taojing2002 Feb 1, 2023
c9b5fc3
Read the token from a file whose path is specified in the property fi…
taojing2002 Feb 1, 2023
4b096f7
The user d1indexer rather than root to run the container.
taojing2002 Feb 2, 2023
edbba1a
Add a new method which can load additional property files to accommon…
taojing2002 Jul 11, 2023
ecd28ba
Whitespace change in README.
mbjones Oct 10, 2023
4cad89c
Refactored to auto-install deps in ubuntu docker image.
mbjones Oct 10, 2023
60e515e
added branch name pattern: '*-image-auto-build'
artntek Oct 19, 2023
1e19fd2
changed auto-build to auto-publish
artntek Oct 19, 2023
b52ed6f
experiment for healthcheck
artntek Oct 19, 2023
905c4f7
Revert "experiment for healthcheck"
artntek Oct 23, 2023
4ee7719
Dockerfile add labels; pom change version to DEVELOP
artntek Oct 23, 2023
f606a6d
Revert "Dockerfile add labels; pom change version to DEVELOP"
artntek Oct 23, 2023
e7d881a
Merge branch 'develop' into feature-49-subchart-changes-image-auto-pu…
artntek Oct 23, 2023
0752781
Merge remote-tracking branch 'origin/feature-49-subchart-changes-imag…
artntek Oct 23, 2023
cf1991e
change version number to DEVELOP
artntek Oct 23, 2023
52ac60f
Merge branch 'feature-49-subchart-changes-image-auto-publish' of gith…
artntek Oct 23, 2023
ba82f5b
replace rabbitmq password with k8s secret/env var
artntek Oct 26, 2023
c23262b
get rid of warnings
artntek Oct 26, 2023
a0e9a10
get rid of warnings
artntek Oct 26, 2023
f22b120
Merge branch 'feature-49-subchart-changes-image-auto-publish' of gith…
artntek Oct 26, 2023
cb912ed
fixed bad wrap
artntek Oct 26, 2023
ef217a1
reverting env var stuff - no longer needed
artntek Oct 30, 2023
aca0130
making rabbitmq password work as an env variable
artntek Oct 30, 2023
7d609cc
adding solr credential sas secrets
artntek Oct 31, 2023
8bf8665
removing unused files
artntek Nov 1, 2023
f27a98a
add ephemeral volume for indexer temp triple db. Pull storageClass to…
artntek Nov 1, 2023
4b9659c
PR feedback
artntek Nov 2, 2023
6debd8c
removed https://maven.restlet.org repo - no longer used and was causi…
artntek Nov 2, 2023
a67a189
PR feedback: remove secret name templates. Use nc instead of wget
artntek Nov 2, 2023
c25713c
added more-useful NOTES.txt
artntek Nov 2, 2023
f4ab48c
Merge pull request #50 from DataONEorg/feature-49-subchart-changes-im…
artntek Nov 2, 2023
9d57801
rename chart; add oci annotations
artntek Nov 8, 2023
61f0177
Merge pull request #53 from DataONEorg/feature-49-subchart-changes-im…
artntek Nov 8, 2023
136009e
running as userId instead of username, so runAsNonRoot works correctly
artntek Nov 21, 2023
ec16360
readme updates
artntek Nov 21, 2023
f1d0448
ephemeral storageClass; reorder initcontainers
artntek Nov 21, 2023
bf96d73
fsGroup 1000
artntek Nov 21, 2023
ab315b0
also change dockerfile to uid/gid 1000
artntek Nov 21, 2023
b6fcacc
Merge pull request #55 from DataONEorg/feature-49-subchart-changes-im…
artntek Nov 21, 2023
7d2f59d
optionally autopopulate rmq host & port
artntek Nov 22, 2023
38312c5
use autopopulated vals for rmq host/port
artntek Nov 22, 2023
ec52e6c
ephemeralVolumeStorageClass requires a value
artntek Nov 29, 2023
b092c9b
fix conditional that made linting fail
artntek Nov 29, 2023
d9cda1a
trailing spaces BROKE rendering
artntek Nov 29, 2023
065e626
sutopopulating solr & rmq hostnames, claimname, mn_url
artntek Nov 29, 2023
7f3c046
sutopopulating solr & rmq hostnames, claimname, mn_url
artntek Nov 29, 2023
baf76d6
Merge pull request #56 from DataONEorg/feature-49-subchart-changes-im…
artntek Nov 30, 2023
15aaadc
move idxworker values out of bitnami subchart config
artntek Nov 30, 2023
78ea9be
minor doc tweaks
artntek Nov 30, 2023
2d97201
resolve merge conflicts
artntek Nov 30, 2023
f43d43f
DRY
artntek Nov 30, 2023
82a74e7
missed an edit
artntek Nov 30, 2023
1cdf437
Merge pull request #57 from DataONEorg/feature-49-subchart-changes-im…
artntek Nov 30, 2023
851289f
bugfix - incorrect auto-gen name
artntek Dec 11, 2023
7ce09ad
Merge pull request #60 from DataONEorg/feature-49-subchart-changes-im…
artntek Dec 11, 2023
92a4639
increase index.solr.versionConflict.max.attempts=25 per discussion wi…
artntek Jan 10, 2024
4506790
increase index.solr.versionConflict.max.attempts
artntek Jan 10, 2024
348178c
Merge pull request #61 from DataONEorg/feature-MC1665-k8s-testsuite-a…
artntek Jan 10, 2024
c01f314
remove TrieDateField-related leftovers
artntek Feb 15, 2024
ae08895
Merge pull request #64 from DataONEorg/feature-44-schema-tdate-cleanup
artntek Feb 15, 2024
bb37b78
Change the pubDate and datePublished to the date_range type.
taojing2002 Mar 14, 2024
4e5b537
Commented out the unused element of circuitBreaker to make it work wi…
taojing2002 Mar 14, 2024
31f81f6
Merge pull request #66 from DataONEorg/feature-44-65-dateRange-solr950
taojing2002 Mar 14, 2024
4b26efd
fix typo and re-wrap lines ONLY - no code changes
artntek Mar 21, 2024
3158ce5
change 'index.d1node.baseURL'->'dataone.mn.baseURL'
artntek Mar 21, 2024
8c34b99
fix typo
artntek Mar 21, 2024
0bf138a
Merge pull request #68 from DataONEorg/feature-67-mn-baseURL-prop
artntek Mar 21, 2024
8fd5457
prepend release name to indexer token secret name
artntek Apr 4, 2024
c33ed7a
underscores to hyphens, per Jing
artntek Apr 4, 2024
42a1df9
Merge pull request #71 from DataONEorg/feature-70-mc3.0.0-release-work
artntek Apr 4, 2024
bc5d869
replace hardcoded collection value & add docs in values.yaml
artntek Apr 8, 2024
d57ccca
update readme
artntek Apr 8, 2024
5eb8c68
Merge pull request #72 from DataONEorg/feature-70-mc3.0.0-release-work
artntek Apr 8, 2024
fa6292f
added note about token secret
artntek Apr 9, 2024
f2f73e6
Send the acknowledge back to rabbitmq before indexing.
taojing2002 Apr 10, 2024
2d1ad1c
Modified the code based on reviewer's suggestion.
taojing2002 Apr 10, 2024
be161b5
rmq command fixes
artntek Apr 10, 2024
535f8af
Fixed a typo in the java doc.
taojing2002 Apr 10, 2024
1891be1
Merge pull request #76 from DataONEorg/bug-74-rabbitmq-timeout
taojing2002 Apr 10, 2024
f5f1478
add subPath & nameOverride
artntek Apr 16, 2024
49496ea
Merge pull request #77 from DataONEorg/feature-70-mc3.0.0-release-work
artntek Apr 16, 2024
f009e66
Upgrade the spring library to 5.3.33 which is the newest version and …
taojing2002 Apr 16, 2024
5848386
Merge pull request #79 from DataONEorg/bug-78-upgrade-spring
taojing2002 Apr 17, 2024
d06ac51
Add the exception into the log.error memthod.
taojing2002 Apr 22, 2024
13a003f
configmap log4j & explode jar
artntek Apr 22, 2024
f92f499
symlink to log4j props
artntek Apr 22, 2024
876ce1e
Merge pull request #82 from DataONEorg/bug-81-intermittent-failure
taojing2002 Apr 22, 2024
f775bb1
leave jar as is; change CP
artntek Apr 22, 2024
3a4b644
Merge branch 'develop' into feature-70-mc3.0.0-release-work
artntek Apr 22, 2024
0e1f951
filter out noise from org.apache.http.impl.conn.PoolingHttpClientConn…
artntek Apr 22, 2024
33b8bf4
Merge pull request #83 from DataONEorg/feature-70-log-level-fix
artntek Apr 22, 2024
552de8f
enable templating for topologySpreadConstraints etc
artntek Apr 22, 2024
7ea5461
Merge branch 'develop' into feature-70-mc3.0.0-release-work
artntek Apr 22, 2024
0d489b5
Merge pull request #84 from DataONEorg/feature-70-mc3.0.0-release-work
artntek Apr 22, 2024
cfe29cd
change wait times/counts and make configurable
artntek Apr 23, 2024
26005f1
Merge branch 'feature-70-mc3.0.0-release-work' of github.com:DataONEo…
artntek Apr 23, 2024
e80f3ed
Change the version from 3.0.0-snapshot to 3.0.0.
taojing2002 Apr 24, 2024
8d2db63
updates for indexer 3.0.0 release
artntek Apr 24, 2024
0a84f3e
Merge branch 'develop' into feature-70-mc3.0.0-release-work
artntek Apr 24, 2024
11e6a72
Merge pull request #85 from DataONEorg/feature-70-mc3.0.0-release-work
artntek Apr 24, 2024
42c493d
If the api call to get system metadata have a service failure excepti…
taojing2002 Apr 25, 2024
939360d
Merge pull request #86 from DataONEorg/bug-81-intermittent-failure
taojing2002 Apr 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# these users will be requested for
# review when someone opens a pull request.
* @mbjones @datadavev @taojing2002
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"
target-branch: "develop"
94 changes: 94 additions & 0 deletions .github/workflows/build-test-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Java Maven Build, Test, and Publish

on:
push:
branches:
- feature*
- develop
- '*-image-auto-publish'
tags: [ 'v*.*.*' ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
#IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: ${{ github.repository_owner }}/dataone-index-worker

jobs:
maven-build:
name: Maven Build and Test
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Extract Maven project version
run: echo "version="$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) >> $GITHUB_OUTPUT
id: get_version
#- name: Show extracted Maven project version
#run: echo "Version from pom: " ${{ steps.get_version.outputs.version }}

- name: Build and Test
run: mvn --batch-mode --update-snapshots test
- name: Package
run: mvn --batch-mode --update-snapshots -DskipTests=true package
- uses: actions/cache@v3
with:
path: .
key: builddir-${{ github.run_id }}

docker-publish:
name: Docker Build and Publish
if: github.ref_name == 'develop' || github.ref_name == 'v*.*.*'
needs: maven-build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/cache@v3
with:
path: .
key: builddir-${{ github.run_id }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: docker/Dockerfile
build-args: TAG=${{needs.maven-build.outputs.version}}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
workflow_dispatch:
push:
branches:
- develop*
- main
#- develop

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.idea
target
.java-version
tlog/
charts/
Loading
Loading