From 0ba0d8d0de9dbdbc145ad7e940fd8276299d18fb Mon Sep 17 00:00:00 2001 From: Luigi Marini Date: Mon, 6 Nov 2023 15:24:21 -0600 Subject: [PATCH 1/2] Build and run core using eclipse-temurin:8. Seems to build fine, but throws error at run time: home/clowder/clowder.sh: line 4: /home/clowder/bin/clowder: No such file or directory. Looks like when unzipping some files are missing. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ef75036b..0adba4280 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # ---------------------------------------------------------------------- # BUILD CLOWDER DIST # ---------------------------------------------------------------------- -FROM openjdk:8-jdk-bullseye as clowder-build +FROM eclipse-temurin:8-jdk as clowder-build ARG BRANCH="unknown" ARG VERSION="unknown" @@ -40,7 +40,7 @@ RUN rm -rf target/universal/clowder-*.zip clowder clowder-* \ # ---------------------------------------------------------------------- # BUILD CLOWDER # ---------------------------------------------------------------------- -FROM openjdk:8-jre-bullseye as clowder-runtime +FROM eclipse-temurin:8-jre as clowder-runtime # environemnt variables ARG BRANCH="unknown" From 184f6d7f90ab0f28d325054f3d51306830159795 Mon Sep 17 00:00:00 2001 From: Luigi Marini Date: Mon, 6 Nov 2023 17:09:20 -0600 Subject: [PATCH 2/2] Install unzip and zip. --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0adba4280..8e45914a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,10 @@ ARG GITSHA1="unknown" WORKDIR /src +RUN apt-get update && \ + apt-get -y install --no-install-recommends unzip zip && \ + rm -rf rm -rf /var/lib/apt/lists/* + # install clowder libraries (hopefully cached) COPY sbt* /src/ COPY project /src/project