From 5ab8230a7993371d1681a556d0fe1c74583461c7 Mon Sep 17 00:00:00 2001 From: "renovate-pagopa[bot]" <164534245+renovate-pagopa[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 05:39:34 +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..45be0aa 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:86bfe47cc8b55e290bbe21c156e99ac3859df7a1dea66379e43a137d32e80ea3 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:653f49c51cfebcf8301938d01044efead6afbd8dd60acd2bcf1605d7c6494d3b 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:653f49c51cfebcf8301938d01044efead6afbd8dd60acd2bcf1605d7c6494d3b 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:bf2de12b233307ef16718e4467df4c0d4cf817d43038b343f92e0f17a9e6b66e 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:f82bccdf6020d27373fdf0e93046b63eb3f777a0289e329d9839feebaf4555de container_name: oracle restart: unless-stopped environment: