DCD-1313: Use a Dockerfile argument rather than sed to inject test image.

This commit is contained in:
Steve Smith 2021-07-14 16:39:24 +10:00
parent afb0c62f40
commit 0c7817f903
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
FROM INJECT_BASE_IMAGE_HERE
ARG TEST_TARGET_IMAGE
FROM $TEST_TARGET_IMAGE
COPY confluence-home/ /var/atlassian/application-data/confluence/
RUN chown -R confluence.confluence /var/atlassian/application-data/confluence

View File

@ -3,4 +3,3 @@
CONFLUENCE_TEST_LICENSE=`echo ${CONFLUENCE_TEST_LICENSE} | tr -d '\n \t'`
sed "s~INJECT_LICENSE_HERE~${CONFLUENCE_TEST_LICENSE}~" confluence/confluence-home/confluence.cfg.xml.tmpl > confluence/confluence-home/confluence.cfg.xml
sed "s~INJECT_BASE_IMAGE_HERE~${TEST_TARGET_IMAGE}~" confluence/Dockerfile.tmpl > confluence/Dockerfile

View File

@ -18,6 +18,8 @@ services:
confluence:
build:
context: ./confluence
args:
- TEST_TARGET_IMAGE=${TEST_TARGET_IMAGE}
depends_on:
- postgresql
ports: