From a1adf774e9d323483640c0a1262ee85d9a71aeb4 Mon Sep 17 00:00:00 2001 From: "renovate-pagopa[bot]" <164534245+renovate-pagopa[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 05:36:33 +0000 Subject: [PATCH] Pin dependencies --- Dockerfile | 4 ++-- docker-compose.yaml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9d1ffb..66eaa2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ARG APP_FOLDER=/home/build ARG MVN_REPO_FOLDER=/home/.m2 -FROM maven:3.8.7-amazoncorretto-8 AS build +FROM maven:3.8.7-amazoncorretto-8@sha256:ec86ad98267c73eae1b7fb1bd0142723e4c9f05cc52f3466a548ce6f6f471e26 AS build ARG APP_FOLDER ARG MVN_REPO_FOLDER COPY . ${APP_FOLDER} @@ -9,7 +9,7 @@ RUN mkdir ${MVN_REPO_FOLDER} WORKDIR ${MVN_REPO_FOLDER} RUN --mount=type=cache,target=/root/.m2 mvn -f ${APP_FOLDER}/pom.xml -s ${APP_FOLDER}/settings.xml clean package -FROM openjdk:8-jdk-alpine +FROM openjdk:8-jdk-alpine@sha256:94792824df2df33402f201713f932b58cb9de94a0cd524164a0f2283343547b3 ARG APP_FOLDER RUN addgroup -S spring && adduser -S spring -G spring USER spring:spring diff --git a/docker-compose.yaml b/docker-compose.yaml index 8af4f36..33fab44 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,7 @@ name: bs-banking-services services: zookeeper: - image: confluentinc/cp-zookeeper:latest + image: confluentinc/cp-zookeeper:latest@sha256:4dc780642bfc5ec3a2d4901e2ff1f9ddef7f7c5c0b793e1e2911cbfb4e3a3214 hostname: zookeeper container_name: zookeeper healthcheck: @@ -18,7 +18,7 @@ services: - "2181:2181" kafka: - image: confluentinc/cp-kafka:latest + image: confluentinc/cp-kafka:latest@sha256:620734d9fc0bb1f9886932e5baf33806074469f40e3fe246a3fdbb59309535fa container_name: kafka hostname: kafka healthcheck: @@ -41,7 +41,7 @@ services: condition: service_healthy kafka-init: - image: confluentinc/cp-kafka:latest + image: confluentinc/cp-kafka:latest@sha256:620734d9fc0bb1f9886932e5baf33806074469f40e3fe246a3fdbb59309535fa container_name: kafka-init entrypoint: [ '/bin/sh', '-c' ] command: | @@ -63,7 +63,7 @@ services: init: true hazelcast: - image: hazelcast/hazelcast:4.2.6 + image: hazelcast/hazelcast:4.2.6@sha256:df067a11e4a9892379cc064ac5ad110cad4cffc8b7f367fb6ebca6a5d0909ddf container_name: hazelcast restart: unless-stopped environment: @@ -73,14 +73,14 @@ services: - 5702:5702 aws-mock: - image: motoserver/moto:latest + image: motoserver/moto:latest@sha256:a3e9473bacfe4720bbb0d5499f995d529f7a44e57a318da1ef0715dda76ba5b3 container_name: aws-mock restart: unless-stopped ports: - 5000:5000 oracle: - image: gvenzl/oracle-xe:21-slim-faststart + image: gvenzl/oracle-xe:21-slim-faststart@sha256:bc1bf85e26ebd6a6e661dee286eb1a578627ca003c3ecc8efc36ca44c7a753e2 container_name: oracle restart: unless-stopped environment: