From d30a4e965b7f3ed73c25ef8438c81ed4ebab3857 Mon Sep 17 00:00:00 2001 From: "aravind.est" Date: Mon, 17 Nov 2025 11:50:25 +0000 Subject: [PATCH] Migrate java base image to amazoncorretto:17.0.17 base image replaced with amazoncorretto:17.0.17 Issue-ID: NONRTRIC-1096 Change-Id: I57ad61243e124a73696b6296545bea45430d1509 Signed-off-by: aravind.est --- nonrtric-gateway/Dockerfile | 10 ++++++---- webapp-frontend/Dockerfile | 7 ++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/nonrtric-gateway/Dockerfile b/nonrtric-gateway/Dockerfile index 4fc663d..a140e51 100644 --- a/nonrtric-gateway/Dockerfile +++ b/nonrtric-gateway/Dockerfile @@ -1,6 +1,7 @@ # # ============LICENSE_START======================================================= -# Copyright (C) 2021 Nordix Foundation. +# Copyright (C) 2021-2023 Nordix Foundation. +# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,7 +18,8 @@ # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= # -FROM openjdk:17-jdk as jre-build +FROM nexus3.o-ran-sc.org:10001/amazoncorretto:17.0.17 AS jre-build +RUN yum install -y binutils RUN $JAVA_HOME/bin/jlink \ --verbose \ @@ -28,8 +30,8 @@ RUN $JAVA_HOME/bin/jlink \ --compress=2 \ --output /customjre -# Use debian base image (same as openjdk uses) -FROM debian:11-slim +# Use debian base image +FROM nexus3.o-ran-sc.org:10001/debian:11-slim ENV JAVA_HOME=/jre ENV PATH="${JAVA_HOME}/bin:${PATH}" diff --git a/webapp-frontend/Dockerfile b/webapp-frontend/Dockerfile index c169935..c7d01a2 100644 --- a/webapp-frontend/Dockerfile +++ b/webapp-frontend/Dockerfile @@ -1,5 +1,6 @@ # ============LICENSE_START=============================================== -# Copyright (C) 2020 Nordix Foundation. All rights reserved. +# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,7 +16,7 @@ # ============LICENSE_END================================================= # ### STAGE 1: Build App ### -FROM node:14-alpine AS stage1 +FROM nexus3.o-ran-sc.org:10001/node:14-alpine AS stage1 WORKDIR /usr/src/app COPY package.json ./ RUN npm install @@ -31,7 +32,7 @@ RUN ./ng test --browsers ChromeHeadless --code-coverage=true --watch=false RUN npm run-script build:prod ### STAGE 2: Run App ### -FROM nginx:alpine +FROM nexus3.o-ran-sc.org:10001/nginx:alpine COPY nginx.conf /etc/nginx/nginx.conf ## use build-in nginx user -- 2.16.6