aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-08-10 11:37:58 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-08-10 11:37:58 +0200
commit672eeaa0f6cc0389b0a9398f3de319d40d783c2c (patch)
treed954504fcadc52f4aa9e67fb1faee912144fcdc3 /src/main/docker/Dockerfile
parent0dcaef48dbae542f9b0212acbe957718643f5e34 (diff)
Make graphadmin compatible with a read-only filesystem
- move file modifying operations from the docker-entrypoint (runtime) to the Dockerfile (build time) Issue-ID: AAI-3955 Change-Id: If7950c4a7074b5bd68b26f3294aa664ef8dd276c Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/main/docker/Dockerfile')
-rwxr-xr-xsrc/main/docker/Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index 6a1a05c..88faf79 100755
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -13,12 +13,17 @@ VOLUME /opt/aai/logroot/AAI-GA
VOLUME /opt/data
VOLUME /opt/tools
-# Add the proper files into the docker image from your build
WORKDIR /opt/app/aai-graphadmin
RUN chown -R nobody:nobody /opt/app/aai-graphadmin /etc/profile.d /opt/aai/logroot/AAI-GA /opt/app /opt/aai/logroot /opt/app/aai-graphadmin/logs/gc
COPY --chown=nobody:nobody /maven/aai-graphadmin/ .
+RUN find /opt/app/ -name "*.sh" -exec chmod +x {} + && \
+ ln -s bin scripts && \
+ ln -s /opt/aai/logroot/AAI-GA logs && \
+ mv aai.sh /etc/profile.d/aai.sh && \
+ chmod 755 /etc/profile.d/aai.sh
+
USER nobody
ENTRYPOINT ["/bin/sh", "/opt/app/aai-graphadmin/docker-entrypoint.sh"]