aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <fiete.ostkamp@telekom.de>2024-01-29 17:11:14 +0000
committerFiete Ostkamp <fiete.ostkamp@telekom.de>2024-01-29 17:11:14 +0000
commitc65f5a42c28effc2f3d866dde7683a488df928b3 (patch)
tree8fba546f0025648eafb465e38803078d111d9e25
parentce788a66989590a2fd1291390fb2f6489cc38e7c (diff)
Revert "Update aai-common-alpine base image in resources"
This reverts commit ce788a66989590a2fd1291390fb2f6489cc38e7c. Reason for revert: image versions > 1.6.0 are based on Java 11 Issue-ID: AAI-3662 Change-Id: If46b24913e86d7ed0db4347211817052c8a1d1e5 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r--README.md7
-rw-r--r--aai-resources/pom.xml2
-rw-r--r--aai-resources/src/main/docker/Dockerfile6
3 files changed, 5 insertions, 10 deletions
diff --git a/README.md b/README.md
index 554c020..941a734 100644
--- a/README.md
+++ b/README.md
@@ -48,10 +48,3 @@ Integration tests are located in `it` directory, and disabled by default in the
`<skipITs>true</skipITs>`
As a naming convention, All integration test classes should end with `IT`, and will be executed by changing the `skipITs` value in pom file, or through the command line `-DskipITs=false`
-
-## Docker
-
-To build the docker image, the maven `docker` profile can be used:
-```sh
-JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 mvn clean install -P docker -DskipTests
-``` \ No newline at end of file
diff --git a/aai-resources/pom.xml b/aai-resources/pom.xml
index ecb1e61..631e7e8 100644
--- a/aai-resources/pom.xml
+++ b/aai-resources/pom.xml
@@ -41,7 +41,7 @@
<docker.push.registry>localhost:5000</docker.push.registry>
<aai.docker.version>1.0.0</aai.docker.version>
<aai.base.image>alpine</aai.base.image>
- <aai.base.image.version>1.9.6</aai.base.image.version>
+ <aai.base.image.version>1.6.0</aai.base.image.version>
<netty.handler.version>4.1.63.Final</netty.handler.version>
<netty.version>4.1.63.Final</netty.version>
diff --git a/aai-resources/src/main/docker/Dockerfile b/aai-resources/src/main/docker/Dockerfile
index f8b9820..be115e7 100644
--- a/aai-resources/src/main/docker/Dockerfile
+++ b/aai-resources/src/main/docker/Dockerfile
@@ -1,8 +1,6 @@
FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@
-USER root
RUN mkdir -p /opt/aaihome/aaiadmin /opt/aai/logroot/AAI-RES /opt/bulkprocess_load
-RUN chown -R aaiadmin:aaiadmin /opt/aaihome /opt/aai/logroot/AAI-RES /opt/bulkprocess_load
VOLUME /tmp
@@ -17,6 +15,10 @@ ENV AAI_BUILD_VERSION @aai.docker.version@
# 8447 is the important one to be used
EXPOSE 8447
+RUN groupadd aaiadmin -g 1000
+
+RUN adduser -u 1000 -h /opt/aaihome/aaiadmin -S -D -G aaiadmin -s /bin/bash aaiadmin
+
# Add the proper files into the docker image from your build
WORKDIR /opt/app/aai-resources