diff options
author | 2024-08-10 11:37:58 +0200 | |
---|---|---|
committer | 2024-08-10 11:37:58 +0200 | |
commit | 672eeaa0f6cc0389b0a9398f3de319d40d783c2c (patch) | |
tree | d954504fcadc52f4aa9e67fb1faee912144fcdc3 /src/main/docker/Dockerfile | |
parent | 0dcaef48dbae542f9b0212acbe957718643f5e34 (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-x | src/main/docker/Dockerfile | 7 |
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"] |