Details
-
Task
-
Status: Closed
-
Medium
-
Resolution: Done
-
None
-
None
-
Policy 2022-08-31->2022-08-17, Policy 2022-08-31->2022-09-14
Description
It should be possible to override the dockerfile used in maven builds, e.g.
mvn clean install -Pdocker -DdockerFile=/path/to/new/Dockerfile
While most builds already support setting the dockerfile location, the builds may fail, as
docker may look for files such as shell scripts in the new directory, instead of using project files under e.g. src/main/docker. Maven fabric8 plugin allows setting contextDir parameter to control that directory. Setting contextDir to ${project.basedir}/src/main/docker in this case would fix the issue.
This task is to ensure each dockerfile can be overridden and builds correctly.
Attachments
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
130517,1 | Allow setting external dockerfile for policy-api | master | policy/api | Status: MERGED | +2 | +1 |
130635,1 | Allow setting external dockerfile for policy-pap | master | policy/pap | Status: MERGED | +2 | +1 |
130636,1 | Allow setting external dockerfile for apex-pdp | master | policy/apex-pdp | Status: MERGED | +2 | +1 |
130637,1 | Allow setting external dockerfile for distribution | master | policy/distribution | Status: MERGED | +2 | +1 |
130645,1 | Allow setting external dockerfile for xacml-pdp | master | policy/xacml-pdp | Status: MERGED | +2 | +1 |
130646,1 | Allow setting external dockerfile for db-migrator | master | policy/docker | Status: MERGED | +2 | +1 |
130647,1 | Allow setting external dockerfile for policy-gui | master | policy/gui | Status: MERGED | +2 | +1 |
130656,1 | Allow setting external dockerfile for simulator | master | policy/models | Status: MERGED | +2 | +1 |
130674,1 | Allow setting external dockerfiles for clamp | master | policy/clamp | Status: MERGED | +2 | +1 |
130678,1 | Allow setting external dockerfile for drools-pdp | master | policy/drools-pdp | Status: MERGED | +2 | +1 |