[MODCITEM-3] Fix fat jar filename in Dockerfile; add .dockerignore; fix Jenkinsfile Created: 22/Sep/23 Updated: 15/Nov/23 Resolved: 15/Nov/23 |
|
| Status: | Closed |
| Project: | mod-circulation-item |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | TBD |
| Reporter: | Julian Ladisch | Assignee: | Julian Ladisch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Sprint: | |
| Development Team: | Volaris |
| RCA Group: | Implementation coding issue |
| Description |
|
Building the Dockerfile fails:
Step 7/8 : COPY target/${VERTICLE_FILE} ${VERTICLE_HOME}/${VERTICLE_FILE}
COPY failed: file not found in build context or excluded by .dockerignore: stat target/mod-circulation-item.jar: file does not exist
The fat jar filename is not mod-circulation-item.jar but mod-circulation-item-1.0.0-SNAPSHOT.jar with a changing version number. The solution shown on https://github.com/folio-org/folio-tools/blob/177ba78d209772b3e04cc7de3c67828bb57a9c81/folio-java-docker/openjdk17/README.md#sample-module-dockerfile should work The module in the Docker container doesn't respond when PostgreSQL missing on startup, therefore the healthChk must be disabled in Jenkinsfile. |
| Comments |
| Comment by Julian Ladisch [ 22/Sep/23 ] |
|
Pull request for code review: https://github.com/folio-org/mod-circulation-item/pull/3 |