diff options
author | 2025-03-20 09:54:12 +0100 | |
---|---|---|
committer | 2025-03-20 09:55:57 +0100 | |
commit | 526a54490edd509819f24f7eed4a26a1312fa31f (patch) | |
tree | 449ee3c7522c9677afb20e93525b3f4ed668f4e2 | |
parent | c6c88a36c69becbf1aa0a937457e60d30f069b1c (diff) |
Replace custom base image in sparky-be2.0.7
- use eclipse-temurin:11-jre-alpine base image instead of
aai-common image
Issue-ID: AAI-4146
Change-Id: I4d3b4ed2359a7eb975a58f20ce21c2bc5d0bb005
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | sparkybe-onap-application/pom.xml | 28 | ||||
-rw-r--r-- | sparkybe-onap-application/src/main/docker/Dockerfile | 21 | ||||
-rwxr-xr-x[-rw-r--r--] | sparkybe-onap-application/src/main/scripts/start.sh | 2 | ||||
-rw-r--r-- | sparkybe-onap-service/pom.xml | 4 | ||||
-rw-r--r-- | version.properties | 2 |
6 files changed, 11 insertions, 48 deletions
@@ -12,7 +12,7 @@ <groupId>org.onap.aai</groupId> <artifactId>sparky-be</artifactId> - <version>2.0.6-SNAPSHOT</version> + <version>2.0.7-SNAPSHOT</version> <packaging>pom</packaging> <name>aai-sparky-be</name> diff --git a/sparkybe-onap-application/pom.xml b/sparkybe-onap-application/pom.xml index 5e21ea7..e8a5d05 100644 --- a/sparkybe-onap-application/pom.xml +++ b/sparkybe-onap-application/pom.xml @@ -5,12 +5,12 @@ <parent> <groupId>org.onap.aai</groupId> <artifactId>sparky-be</artifactId> - <version>2.0.6-SNAPSHOT</version> + <version>2.0.7-SNAPSHOT</version> </parent> <groupId>org.onap.aai.sparky-be</groupId> <artifactId>sparkybe-onap-application</artifactId> - <version>2.0.6-SNAPSHOT</version> + <version>2.0.7-SNAPSHOT</version> <packaging>jar</packaging> <properties> @@ -35,8 +35,6 @@ <aai.build.directory>${project.build.directory}/${project.artifactId}-build/ </aai.build.directory> <aai.docker.namespace>onap</aai.docker.namespace> - <aai.base.image>alpine</aai.base.image> - <aai.base.image.version>1.13.2</aai.base.image.version> <jacoco.line.coverage.limit>0.10</jacoco.line.coverage.limit> <!-- This will be used for the docker images as the default format of maven build has issues --> <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> @@ -365,28 +363,6 @@ <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.0</version> - <executions> - <execution> - <phase>pre-clean</phase> - <goals> - <goal>execute</goal> - </goals> - <configuration> - <source> - def userAaiBaseImage = session.userProperties['aai.base.image'] - def userAaiCommonVersion = session.userProperties['aai.base.image.version'] - if (userAaiCommonVersion != null) { - project.properties['aai.base.image.version'] = userAaiCommonVersion - } - if (userAaiBaseImage != null) { - project.properties['aai.base.image'] = userAaiBaseImage - } - log.info 'Base image flavour: ' + project.properties['aai.base.image'] - log.info 'Base image version: ' + project.properties['aai.base.image.version'] - </source> - </configuration> - </execution> - </executions> </plugin> <plugin> <groupId>io.fabric8</groupId> diff --git a/sparkybe-onap-application/src/main/docker/Dockerfile b/sparkybe-onap-application/src/main/docker/Dockerfile index 6f95de0..39c9e91 100644 --- a/sparkybe-onap-application/src/main/docker/Dockerfile +++ b/sparkybe-onap-application/src/main/docker/Dockerfile @@ -1,24 +1,13 @@ -FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@ - -ARG MICRO_HOME=/opt/app/sparky -ARG BIN_HOME=$MICRO_HOME/bin -ARG UI_LOGS=/var/log/onap/AAI-UI - -USER root +FROM eclipse-temurin:11-jre-alpine +USER nobody +ENV MICRO_HOME=/opt/app/sparky WORKDIR $MICRO_HOME -COPY --chown=aaiadmin:aaiadmin /maven/sparkybe-onap-application/ . - -# Build up the deployment folder structure -RUN mkdir -p $MICRO_HOME $MICRO_HOME/logs $UI_LOGS && \ - chown -R aaiadmin:aaiadmin $MICRO_HOME/logs $UI_LOGS && \ - chmod 755 $BIN_HOME/* && \ - ln -snf /logs $MICRO_HOME/logs +COPY --chown=nobody:nobody /maven/sparkybe-onap-application/ . -USER aaiadmin EXPOSE 8000 8000 EXPOSE 9517 9517 -CMD ["/opt/app/sparky/bin/start.sh"] +CMD ["/bin/sh", "/opt/app/sparky/bin/start.sh"] diff --git a/sparkybe-onap-application/src/main/scripts/start.sh b/sparkybe-onap-application/src/main/scripts/start.sh index 7faae8d..c478439 100644..100755 --- a/sparkybe-onap-application/src/main/scripts/start.sh +++ b/sparkybe-onap-application/src/main/scripts/start.sh @@ -5,8 +5,6 @@ CONFIG_HOME=${APP_HOME}/config PROPS="-DAPP_HOME=${APP_HOME} -DCONFIG_HOME=${CONFIG_HOME} -Dlogging.config=${CONFIG_HOME}/logging/logback.xml" -find ${MICRO_HOME} -name "*.sh" -exec chmod +x {} + - JAVA_CMD="exec java"; JAR_CMD="exec jar"; diff --git a/sparkybe-onap-service/pom.xml b/sparkybe-onap-service/pom.xml index b6a6394..e872746 100644 --- a/sparkybe-onap-service/pom.xml +++ b/sparkybe-onap-service/pom.xml @@ -4,12 +4,12 @@ <parent> <groupId>org.onap.aai</groupId> <artifactId>sparky-be</artifactId> - <version>2.0.6-SNAPSHOT</version> + <version>2.0.7-SNAPSHOT</version> </parent> <groupId>org.onap.aai.sparky-be</groupId> <artifactId>sparkybe-onap-service</artifactId> - <version>2.0.6-SNAPSHOT</version> + <version>2.0.7-SNAPSHOT</version> <packaging>jar</packaging> <properties> diff --git a/version.properties b/version.properties index 640b101..d4e7f68 100644 --- a/version.properties +++ b/version.properties @@ -4,7 +4,7 @@ major=2 minor=0 -patch=6 +patch=7 base_version=${major}.${minor}.${patch} |