From a8b2d1d9c262a940609af169cf17cfd3aa299e68 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Mar 2023 10:38:06 +0100 Subject: [PATCH 01/38] Bump docker/setup-buildx-action from 2.4.1 to 2.5.0 (#246) Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.4.1 to 2.5.0. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v2.4.1...v2.5.0) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c43eb2..1c0d0f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v2.1.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.4.1 + uses: docker/setup-buildx-action@v2.5.0 # with: # install: true - name: Available platforms From 4693951e994f50f049e4b4898e21104fbad5e126 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Mon, 5 Jun 2023 09:47:49 +0200 Subject: [PATCH 02/38] Scala 3.3.0 (#247) https://scala-lang.org/blog/2023/05/30/scala-3.3.0-released.html --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c0d0f3..412f68f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.17', '2.13.10', '3.2.2'] + scalaVersion: ['2.12.17', '2.13.10', '3.3.0'] javaTag: [ 'graalvm-ce-22.3.0-b2-java17', 'graalvm-ce-22.3.0-b2-java11', From 1fcfa77a26c8bba584e0013e27fe79a3e39d049a Mon Sep 17 00:00:00 2001 From: Fabio Cechinel Veronez Date: Thu, 8 Jun 2023 09:08:52 +0200 Subject: [PATCH 03/38] Upgrade Scala version to 2.13.11 (#248) Follow Scala release, see: - https://scala-lang.org/news/2.13.11 - https://github.com/scala/scala/releases/tag/v2.13.11 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 412f68f..83a4a4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.17', '2.13.10', '3.3.0'] + scalaVersion: ['2.12.17', '2.13.11', '3.3.0'] javaTag: [ 'graalvm-ce-22.3.0-b2-java17', 'graalvm-ce-22.3.0-b2-java11', From 91d72cf4d386ba7e8d93674b68d75bc54120d6b9 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Thu, 8 Jun 2023 12:21:20 +0200 Subject: [PATCH 04/38] Scala 2.12.18 (#249) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83a4a4b..954bfed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.17', '2.13.11', '3.3.0'] + scalaVersion: ['2.12.18', '2.13.11', '3.3.0'] javaTag: [ 'graalvm-ce-22.3.0-b2-java17', 'graalvm-ce-22.3.0-b2-java11', From d30ca7763416d1798d7c2d4d16b95fd0ffa815c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 Jun 2023 07:07:04 +0000 Subject: [PATCH 05/38] Bump docker/setup-buildx-action from 2.5.0 to 2.6.0 (#253) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 954bfed..f9e4dfa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v2.1.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.5.0 + uses: docker/setup-buildx-action@v2.6.0 # with: # install: true - name: Available platforms From dd83d31fd5d3d35a8c8900fb9a21ac3466d2f638 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 Jun 2023 07:14:41 +0000 Subject: [PATCH 06/38] Bump docker/setup-qemu-action from 2.1.0 to 2.2.0 (#252) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9e4dfa..ade3237 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v2.1.0 + uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v2.6.0 From 91ab5a5673ff06bb5f3e2f3e24a09666ffeb9d00 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Jun 2023 06:43:03 +0000 Subject: [PATCH 07/38] Bump docker/setup-buildx-action from 2.6.0 to 2.7.0 (#254) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ade3237..2a3739c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.6.0 + uses: docker/setup-buildx-action@v2.7.0 # with: # install: true - name: Available platforms From c2a03fa241ecfc5ad4c3b592b532262c49be2a1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 09:49:14 +0000 Subject: [PATCH 08/38] Bump docker/setup-buildx-action from 2.7.0 to 2.8.0 (#255) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a3739c..5c4c157 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.7.0 + uses: docker/setup-buildx-action@v2.8.0 # with: # install: true - name: Available platforms From 683c6867806fb8b308a5642c57f84e62f1d9c74f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:58:57 +0000 Subject: [PATCH 09/38] Bump docker/setup-buildx-action from 2.8.0 to 2.9.0 (#256) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c4c157..cd401ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.8.0 + uses: docker/setup-buildx-action@v2.9.0 # with: # install: true - name: Available platforms From 313e37f2f48fbdd9b0f3dee5e2e87b00b0a86c91 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jul 2023 07:39:42 +0000 Subject: [PATCH 10/38] Bump docker/setup-buildx-action from 2.9.0 to 2.9.1 (#257) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd401ae..6c2cef8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.9.0 + uses: docker/setup-buildx-action@v2.9.1 # with: # install: true - name: Available platforms From 77639403b57981f58ecabeac9e27deb46b879230 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 06:56:46 +0000 Subject: [PATCH 11/38] Bump docker/setup-buildx-action from 2.9.1 to 2.10.0 (#259) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c2cef8..80b867f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.9.1 + uses: docker/setup-buildx-action@v2.10.0 # with: # install: true - name: Available platforms From 913a733cc605aeeb2955a629b9b679c6809cacdf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:58:09 +0000 Subject: [PATCH 12/38] Bump actions/checkout from 3 to 4 (#260) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80b867f..989dc13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,7 @@ jobs: baseImageTag: '11.0.17_8-jdk-focal' platforms: 'linux/amd64,linux/arm64' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx From 5c60f67fac2bd56247649e1c1e14f6b0bcf686ea Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Mon, 11 Sep 2023 12:20:40 +0200 Subject: [PATCH 13/38] Update to scala 2.13.12 / 3.3.1 (#261) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 989dc13..11dbcd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.18', '2.13.11', '3.3.0'] + scalaVersion: ['2.12.18', '2.13.12', '3.3.1'] javaTag: [ 'graalvm-ce-22.3.0-b2-java17', 'graalvm-ce-22.3.0-b2-java11', From eb0396a46ce82c2724aee2d6b7507dbb9a0ba62a Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Fri, 15 Sep 2023 11:37:35 +0200 Subject: [PATCH 14/38] JDK image updates (#262) 20.0.2_9 17.0.8.1_1 11.0.20.1_1 8u382-b05 graalvm-ce-22.3.3-b1 --- .github/workflows/build.yml | 48 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11dbcd0..9e4abbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,49 +18,49 @@ jobs: matrix: scalaVersion: ['2.12.18', '2.13.12', '3.3.1'] javaTag: [ - 'graalvm-ce-22.3.0-b2-java17', - 'graalvm-ce-22.3.0-b2-java11', - 'eclipse-temurin-jammy-19.0.1_10', - 'eclipse-temurin-jammy-17.0.5_8', - 'eclipse-temurin-jammy-11.0.17_8', - 'eclipse-temurin-jammy-8u352-b08', - 'eclipse-temurin-focal-17.0.5_8', - 'eclipse-temurin-focal-11.0.17_8', + 'graalvm-ce-22.3.3-b1-java17', + 'graalvm-ce-22.3.3-b1-java11', + 'eclipse-temurin-jammy-20.0.2_9', + 'eclipse-temurin-jammy-17.0.8.1_1', + 'eclipse-temurin-jammy-11.0.20.1_1', + 'eclipse-temurin-jammy-8u382-b05', + 'eclipse-temurin-focal-17.0.8.1_1', + 'eclipse-temurin-focal-11.0.20.1_1', ] include: # https://github.com/graalvm/container/pkgs/container/graalvm-ce - - javaTag: 'graalvm-ce-22.3.0-b2-java17' + - javaTag: 'graalvm-ce-22.3.3-b1-java17' dockerContext: 'graalvm-ce' - baseImageTag: 'ol9-java17-22.3.0-b2' + baseImageTag: 'ol9-java17-22.3.3-b1' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'graalvm-ce-22.3.0-b2-java11' + - javaTag: 'graalvm-ce-22.3.3-b1-java11' dockerContext: 'graalvm-ce' - baseImageTag: 'ol9-java11-22.3.0-b2' + baseImageTag: 'ol9-java11-22.3.3-b1' platforms: 'linux/amd64' # https://hub.docker.com/_/eclipse-temurin/tags - - javaTag: 'eclipse-temurin-jammy-19.0.1_10' + - javaTag: 'eclipse-temurin-jammy-20.0.2_9' dockerContext: 'eclipse-temurin' - baseImageTag: '19.0.1_10-jdk-jammy' + baseImageTag: '20.0.2_9-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-17.0.5_8' + - javaTag: 'eclipse-temurin-jammy-17.0.8.1_1' dockerContext: 'eclipse-temurin' - baseImageTag: '17.0.5_8-jdk-jammy' + baseImageTag: '17.0.8.1_1-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-11.0.17_8' + - javaTag: 'eclipse-temurin-jammy-11.0.20.1_1' dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.17_8-jdk-jammy' + baseImageTag: '11.0.20.1_1-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-8u352-b08' + - javaTag: 'eclipse-temurin-jammy-8u382-b05' dockerContext: 'eclipse-temurin' - baseImageTag: '8u352-b08-jdk-jammy' + baseImageTag: '8u382-b05-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-17.0.5_8' + - javaTag: 'eclipse-temurin-focal-17.0.8.1_1' dockerContext: 'eclipse-temurin' - baseImageTag: '17.0.5_8-jdk-focal' + baseImageTag: '17.0.8.1_1-jdk-focal' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-11.0.17_8' + - javaTag: 'eclipse-temurin-focal-11.0.20.1_1' dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.17_8-jdk-focal' + baseImageTag: '11.0.20.1_1-jdk-focal' platforms: 'linux/amd64,linux/arm64' steps: - uses: actions/checkout@v4 From b57e64caa16160e7ea1172bb10e00ac978907d4d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:24:51 +0000 Subject: [PATCH 15/38] Bump docker/login-action from 2 to 3 (#266) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e4abbb..8a5d12f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -115,7 +115,7 @@ jobs: sbt about - name: Log in to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} From d76a760ed85f95a22d2b5afb75dade5c0e6cd61c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:25:06 +0000 Subject: [PATCH 16/38] Bump docker/setup-qemu-action from 2.2.0 to 3.0.0 (#265) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a5d12f..4a34db2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2.2.0 + uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v2.10.0 From 70c9ba7404ef35dcaf793fe65696a56bbeb04f02 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:25:40 +0000 Subject: [PATCH 17/38] Bump docker/build-push-action from 4 to 5 (#263) --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a34db2..3ccefcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: TAG=sbtscala/scala-sbt:${{ matrix.javaTag }}_${{ steps.get_sbt_version.outputs.VERSION }}_${{ matrix.scalaVersion }} echo "TAG=$TAG" >> $GITHUB_OUTPUT - name: Build docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ${{ matrix.dockerContext }} no-cache: true @@ -121,7 +121,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Rebuild and push ${{ matrix.platforms }} docker images if: github.event_name != 'pull_request' - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ${{ matrix.dockerContext }} tags: ${{ steps.create_docker_tag.outputs.TAG }} From 8f7ba1acea951e76255b00b0a5d2ee147b6880f1 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Tue, 19 Sep 2023 10:43:59 +0200 Subject: [PATCH 18/38] ci: disable docker push if dependabot (#267) --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ccefcd..cd16b1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -114,13 +114,13 @@ jobs: scala --version && sbt about - name: Log in to DockerHub - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Rebuild and push ${{ matrix.platforms }} docker images - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' uses: docker/build-push-action@v5 with: context: ${{ matrix.dockerContext }} From 563c6a7762e5a3b92098bfc3f0276f47825ba0a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:44:31 +0000 Subject: [PATCH 19/38] Bump docker/setup-buildx-action from 2.10.0 to 3.0.0 (#264) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd16b1e..6af08d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.10.0 + uses: docker/setup-buildx-action@v3.0.0 # with: # install: true - name: Available platforms From eac4b8ed04bc5207a5ec070bd2fc0e048735badf Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sat, 14 Oct 2023 16:49:09 -0400 Subject: [PATCH 20/38] Add eclipse-temurin jdk 21 (#268) --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6af08d7..c205dd9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: javaTag: [ 'graalvm-ce-22.3.3-b1-java17', 'graalvm-ce-22.3.3-b1-java11', - 'eclipse-temurin-jammy-20.0.2_9', + 'eclipse-temurin-jammy-21_35', 'eclipse-temurin-jammy-17.0.8.1_1', 'eclipse-temurin-jammy-11.0.20.1_1', 'eclipse-temurin-jammy-8u382-b05', @@ -38,9 +38,9 @@ jobs: baseImageTag: 'ol9-java11-22.3.3-b1' platforms: 'linux/amd64' # https://hub.docker.com/_/eclipse-temurin/tags - - javaTag: 'eclipse-temurin-jammy-20.0.2_9' + - javaTag: 'eclipse-temurin-jammy-21_35' dockerContext: 'eclipse-temurin' - baseImageTag: '20.0.2_9-jdk-jammy' + baseImageTag: '21_35-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - javaTag: 'eclipse-temurin-jammy-17.0.8.1_1' dockerContext: 'eclipse-temurin' From 054640e76c506105b00fc241cfb8c62d1177e4c5 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sun, 5 Nov 2023 03:45:56 -0500 Subject: [PATCH 21/38] JDK image updates (#269) --- .github/workflows/build.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c205dd9..db80ccb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,12 +20,12 @@ jobs: javaTag: [ 'graalvm-ce-22.3.3-b1-java17', 'graalvm-ce-22.3.3-b1-java11', - 'eclipse-temurin-jammy-21_35', - 'eclipse-temurin-jammy-17.0.8.1_1', - 'eclipse-temurin-jammy-11.0.20.1_1', - 'eclipse-temurin-jammy-8u382-b05', - 'eclipse-temurin-focal-17.0.8.1_1', - 'eclipse-temurin-focal-11.0.20.1_1', + 'eclipse-temurin-jammy-21.0.1_12', + 'eclipse-temurin-jammy-17.0.9_9', + 'eclipse-temurin-jammy-11.0.21_9', + 'eclipse-temurin-jammy-8u392-b08', + 'eclipse-temurin-focal-17.0.9_9', + 'eclipse-temurin-focal-11.0.21_9', ] include: # https://github.com/graalvm/container/pkgs/container/graalvm-ce @@ -38,29 +38,29 @@ jobs: baseImageTag: 'ol9-java11-22.3.3-b1' platforms: 'linux/amd64' # https://hub.docker.com/_/eclipse-temurin/tags - - javaTag: 'eclipse-temurin-jammy-21_35' + - javaTag: 'eclipse-temurin-jammy-21.0.1_12' dockerContext: 'eclipse-temurin' - baseImageTag: '21_35-jdk-jammy' + baseImageTag: '21.0.1_12-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-17.0.8.1_1' + - javaTag: 'eclipse-temurin-jammy-17.0.9_9' dockerContext: 'eclipse-temurin' - baseImageTag: '17.0.8.1_1-jdk-jammy' + baseImageTag: '17.0.9_9-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-11.0.20.1_1' + - javaTag: 'eclipse-temurin-jammy-11.0.21_9' dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.20.1_1-jdk-jammy' + baseImageTag: '11.0.21_9-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-8u382-b05' + - javaTag: 'eclipse-temurin-jammy-8u392-b08' dockerContext: 'eclipse-temurin' - baseImageTag: '8u382-b05-jdk-jammy' + baseImageTag: '8u392-b08-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-17.0.8.1_1' + - javaTag: 'eclipse-temurin-focal-17.0.9_9' dockerContext: 'eclipse-temurin' - baseImageTag: '17.0.8.1_1-jdk-focal' + baseImageTag: '17.0.9_9-jdk-focal' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-11.0.20.1_1' + - javaTag: 'eclipse-temurin-focal-11.0.21_9' dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.20.1_1-jdk-focal' + baseImageTag: '11.0.21_9-jdk-focal' platforms: 'linux/amd64,linux/arm64' steps: - uses: actions/checkout@v4 From e4cb4929b2857186eff29e61094ecb2cd07bb5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Tomala?= Date: Thu, 23 Nov 2023 13:24:10 +0100 Subject: [PATCH 22/38] add graalvm-community (#270) --- .github/workflows/build.yml | 6 +++ graalvm-community/Dockerfile | 80 ++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 graalvm-community/Dockerfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db80ccb..b92d649 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,7 @@ jobs: matrix: scalaVersion: ['2.12.18', '2.13.12', '3.3.1'] javaTag: [ + 'graalvm-community-21.0.1', 'graalvm-ce-22.3.3-b1-java17', 'graalvm-ce-22.3.3-b1-java11', 'eclipse-temurin-jammy-21.0.1_12', @@ -28,6 +29,11 @@ jobs: 'eclipse-temurin-focal-11.0.21_9', ] include: + # https://github.com/graalvm/container/pkgs/container/graalvm-community + - javaTag: 'graalvm-community-21.0.1' + dockerContext: 'graalvm-community' + baseImageTag: '21.0.1-ol9' + platforms: 'linux/amd64,linux/arm64' # https://github.com/graalvm/container/pkgs/container/graalvm-ce - javaTag: 'graalvm-ce-22.3.3-b1-java17' dockerContext: 'graalvm-ce' diff --git a/graalvm-community/Dockerfile b/graalvm-community/Dockerfile new file mode 100644 index 0000000..6cf27df --- /dev/null +++ b/graalvm-community/Dockerfile @@ -0,0 +1,80 @@ +# +# Scala and sbt Dockerfile +# +# https://github.com/sbt/docker-sbt +# + +# Pull base image +ARG BASE_IMAGE_TAG +FROM ghcr.io/graalvm/graalvm-community:${BASE_IMAGE_TAG:-21.0.1-ol9} + +# Env variables +ARG SCALA_VERSION +ENV SCALA_VERSION ${SCALA_VERSION:-2.13.12} +ARG SBT_VERSION +ENV SBT_VERSION ${SBT_VERSION:-1.9.7} +ENV JAVA_OPTS -XX:+UseG1GC +ARG USER_ID +ENV USER_ID ${USER_ID:-1001} +ARG GROUP_ID +ENV GROUP_ID ${GROUP_ID:-1001} + +# Install sbt +RUN \ + curl -fsL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | tar xfz - -C /usr/share && \ + chown -R root:root /usr/share/sbt && \ + chmod -R 755 /usr/share/sbt && \ + ln -s /usr/share/sbt/bin/sbt /usr/local/bin/sbt + +# Install Scala +## Piping curl directly in tar +RUN \ + case $SCALA_VERSION in \ + "3"*) URL=https://github.com/lampepfl/dotty/releases/download/$SCALA_VERSION/scala3-$SCALA_VERSION.tar.gz SCALA_DIR=/usr/share/scala3-$SCALA_VERSION ;; \ + *) URL=https://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz SCALA_DIR=/usr/share/scala-$SCALA_VERSION ;; \ + esac && \ + curl -fsL $URL | tar xfz - -C /usr/share && \ + mv $SCALA_DIR /usr/share/scala && \ + chown -R root:root /usr/share/scala && \ + chmod -R 755 /usr/share/scala && \ + ln -s /usr/share/scala/bin/* /usr/local/bin && \ + case $SCALA_VERSION in \ + "3"*) echo '@main def main = println(s"Scala library version ${dotty.tools.dotc.config.Properties.versionNumberString}")' > test.scala ;; \ + *) echo "println(util.Properties.versionMsg)" > test.scala ;; \ + esac && \ + scala -nocompdaemon test.scala && rm test.scala + +# Add and use user sbtuser +RUN groupadd --gid $GROUP_ID sbtuser && useradd --gid $GROUP_ID --uid $USER_ID sbtuser --shell /bin/bash +USER sbtuser + +# Switch working directory +WORKDIR /home/sbtuser + +# Prepare sbt (warm cache) +RUN \ + sbt sbtVersion && \ + mkdir -p project && \ + echo "scalaVersion := \"${SCALA_VERSION}\"" > build.sbt && \ + echo "sbt.version=${SBT_VERSION}" > project/build.properties && \ + echo "// force sbt compiler-bridge download" > project/Dependencies.scala && \ + echo "case object Temp" > Temp.scala && \ + sbt compile && \ + rm -r project && rm build.sbt && rm Temp.scala && rm -r target + +# Link everything into root as well +# This allows users of this container to choose, whether they want to run the container as sbtuser (non-root) or as root +USER root +RUN \ + rm -rf /tmp/..?* /tmp/.[!.]* * && \ + ln -s /home/sbtuser/.cache /root/.cache && \ + ln -s /home/sbtuser/.sbt /root/.sbt && \ + if [ -d "/home/sbtuser/.ivy2" ]; then ln -s /home/sbtuser/.ivy2 /root/.ivy2; fi + +# Switch working directory back to root +## Users wanting to use this container as non-root should combine the two following arguments +## -u sbtuser +## -w /home/sbtuser +WORKDIR /root + +CMD sbt From 1d52a63f912ad58c20791753d1d0cd522ca780fa Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sat, 27 Jan 2024 12:34:00 -0500 Subject: [PATCH 23/38] JDK image updates (#271) --- .github/workflows/build.yml | 42 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b92d649..6227672 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,21 +18,21 @@ jobs: matrix: scalaVersion: ['2.12.18', '2.13.12', '3.3.1'] javaTag: [ - 'graalvm-community-21.0.1', + 'graalvm-community-21.0.2', 'graalvm-ce-22.3.3-b1-java17', 'graalvm-ce-22.3.3-b1-java11', - 'eclipse-temurin-jammy-21.0.1_12', - 'eclipse-temurin-jammy-17.0.9_9', - 'eclipse-temurin-jammy-11.0.21_9', - 'eclipse-temurin-jammy-8u392-b08', - 'eclipse-temurin-focal-17.0.9_9', - 'eclipse-temurin-focal-11.0.21_9', + 'eclipse-temurin-jammy-21.0.2_13', + 'eclipse-temurin-jammy-17.0.10_7', + 'eclipse-temurin-jammy-11.0.22_7', + 'eclipse-temurin-jammy-8u402-b06', + 'eclipse-temurin-focal-17.0.10_7', + 'eclipse-temurin-focal-11.0.22_7', ] include: # https://github.com/graalvm/container/pkgs/container/graalvm-community - - javaTag: 'graalvm-community-21.0.1' + - javaTag: 'graalvm-community-21.0.2' dockerContext: 'graalvm-community' - baseImageTag: '21.0.1-ol9' + baseImageTag: '21.0.2-ol9' platforms: 'linux/amd64,linux/arm64' # https://github.com/graalvm/container/pkgs/container/graalvm-ce - javaTag: 'graalvm-ce-22.3.3-b1-java17' @@ -44,29 +44,29 @@ jobs: baseImageTag: 'ol9-java11-22.3.3-b1' platforms: 'linux/amd64' # https://hub.docker.com/_/eclipse-temurin/tags - - javaTag: 'eclipse-temurin-jammy-21.0.1_12' + - javaTag: 'eclipse-temurin-jammy-21.0.2_13' dockerContext: 'eclipse-temurin' - baseImageTag: '21.0.1_12-jdk-jammy' + baseImageTag: '21.0.2_13-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-17.0.9_9' + - javaTag: 'eclipse-temurin-jammy-17.0.10_7' dockerContext: 'eclipse-temurin' - baseImageTag: '17.0.9_9-jdk-jammy' + baseImageTag: '17.0.10_7-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-11.0.21_9' + - javaTag: 'eclipse-temurin-jammy-11.0.22_7' dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.21_9-jdk-jammy' + baseImageTag: '11.0.22_7-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-8u392-b08' + - javaTag: 'eclipse-temurin-jammy-8u402-b06' dockerContext: 'eclipse-temurin' - baseImageTag: '8u392-b08-jdk-jammy' + baseImageTag: '8u402-b06-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-17.0.9_9' + - javaTag: 'eclipse-temurin-focal-17.0.10_7' dockerContext: 'eclipse-temurin' - baseImageTag: '17.0.9_9-jdk-focal' + baseImageTag: '17.0.10_7-jdk-focal' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-11.0.21_9' + - javaTag: 'eclipse-temurin-focal-11.0.22_7' dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.21_9-jdk-focal' + baseImageTag: '11.0.22_7-jdk-focal' platforms: 'linux/amd64,linux/arm64' steps: - uses: actions/checkout@v4 From 460fc77dfd7034340bd9e3aa650b99de676a0405 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Tue, 27 Feb 2024 14:05:45 +0100 Subject: [PATCH 24/38] Scala 2.12.19, 2.13.13 (#272) https://github.com/scala/scala/releases/tag/v2.13.13 https://github.com/scala/scala/releases/tag/v2.12.19 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6227672..ad328eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.18', '2.13.12', '3.3.1'] + scalaVersion: ['2.12.19', '2.13.13', '3.3.1'] javaTag: [ 'graalvm-community-21.0.2', 'graalvm-ce-22.3.3-b1-java17', From 703c8f6ad45f2674147a900d2104940e7c70776b Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Fri, 1 Mar 2024 15:57:55 -0500 Subject: [PATCH 25/38] Scala 3.3.3, 3.4.0 (#273) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad328eb..4cd541b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.19', '2.13.13', '3.3.1'] + scalaVersion: ['2.12.19', '2.13.13', '3.3.3', '3.4.0'] javaTag: [ 'graalvm-community-21.0.2', 'graalvm-ce-22.3.3-b1-java17', From 29f378acd1dfbf4371304d18c18667ec01a6204b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:12:17 +0000 Subject: [PATCH 26/38] Bump docker/setup-buildx-action from 3.0.0 to 3.1.0 (#274) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4cd541b..b449a78 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v3.0.0 + uses: docker/setup-buildx-action@v3.1.0 # with: # install: true - name: Available platforms From 98c50f47b69d2229f258681f1b75e4a0caed2c94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 07:13:54 +0000 Subject: [PATCH 27/38] Bump docker/setup-buildx-action from 3.1.0 to 3.2.0 (#275) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b449a78..0d60cae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v3.1.0 + uses: docker/setup-buildx-action@v3.2.0 # with: # install: true - name: Available platforms From f79e23d71a925bc9cdbf01269e26e050987715f5 Mon Sep 17 00:00:00 2001 From: Carbrex <95964955+Carbrex@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:52:59 +0000 Subject: [PATCH 28/38] Alpine based image for sbt-scala (#277) --- .github/workflows/build.yml | 14 +++++ eclipse-temurin/alpine.Dockerfile | 86 +++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 eclipse-temurin/alpine.Dockerfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d60cae..c919bcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,8 @@ jobs: 'eclipse-temurin-jammy-8u402-b06', 'eclipse-temurin-focal-17.0.10_7', 'eclipse-temurin-focal-11.0.22_7', + 'eclipse-temurin-alpine-21.0.2_13', + 'eclipse-temurin-alpine-17.0.10_7' ] include: # https://github.com/graalvm/container/pkgs/container/graalvm-community @@ -68,6 +70,16 @@ jobs: dockerContext: 'eclipse-temurin' baseImageTag: '11.0.22_7-jdk-focal' platforms: 'linux/amd64,linux/arm64' + - javaTag: 'eclipse-temurin-alpine-21.0.2_13' + dockerContext: 'eclipse-temurin' + dockerfile: 'alpine.Dockerfile' + baseImageTag: '21.0.2_13-jdk-alpine' + platforms: 'linux/amd64,linux/arm64' + - javaTag: 'eclipse-temurin-alpine-17.0.10_7' + dockerContext: 'eclipse-temurin' + dockerfile: 'alpine.Dockerfile' + baseImageTag: '17.0.10_7-jdk-alpine' + platforms: 'linux/amd64,linux/arm64' steps: - uses: actions/checkout@v4 - name: Set up QEMU @@ -100,6 +112,7 @@ jobs: context: ${{ matrix.dockerContext }} no-cache: true tags: ${{ steps.create_docker_tag.outputs.TAG }} + file: ${{ matrix.dockerContext }}/${{ matrix.dockerfile || 'Dockerfile' }} build-args: | BASE_IMAGE_TAG=${{ matrix.baseImageTag }} SBT_VERSION=${{ steps.get_sbt_version.outputs.VERSION }} @@ -130,6 +143,7 @@ jobs: uses: docker/build-push-action@v5 with: context: ${{ matrix.dockerContext }} + file: ${{ matrix.dockerContext }}/${{ matrix.dockerfile || 'Dockerfile' }} tags: ${{ steps.create_docker_tag.outputs.TAG }} build-args: | BASE_IMAGE_TAG=${{ matrix.baseImageTag }} diff --git a/eclipse-temurin/alpine.Dockerfile b/eclipse-temurin/alpine.Dockerfile new file mode 100644 index 0000000..f3727fc --- /dev/null +++ b/eclipse-temurin/alpine.Dockerfile @@ -0,0 +1,86 @@ +# Use a multi-stage build to reduce the size of the final image +FROM eclipse-temurin:${BASE_IMAGE_TAG:-21.0.2_13-jdk-alpine} as builder + +ARG SCALA_VERSION=3.4.0 +ARG SBT_VERSION=1.9.9 +ARG USER_ID=1001 +ARG GROUP_ID=1001 +ENV SCALA_HOME=/usr/share/scala + +# Install scala and sbt +RUN apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash curl bc && \ + cd "/tmp" && \ + case $SCALA_VERSION in \ + "3"*) URL=https://github.com/lampepfl/dotty/releases/download/$SCALA_VERSION/scala3-$SCALA_VERSION.tar.gz SCALA_DIR=scala3-$SCALA_VERSION ;; \ + *) URL=https://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz SCALA_DIR=scala-$SCALA_VERSION ;; \ + esac && \ + curl -fsL $URL | tar xfz - -C /usr/share && \ + mv /usr/share/$SCALA_DIR $SCALA_HOME && \ + ln -s "$SCALA_HOME/bin/"* "/usr/bin/" && \ + update-ca-certificates && \ + scala -version && \ + case $SCALA_VERSION in \ + "3"*) echo '@main def main = println(s"Scala library version ${dotty.tools.dotc.config.Properties.versionNumberString}")' > test.scala ;; \ + *) echo "println(util.Properties.versionMsg)" > test.scala ;; \ + esac && \ + scala -nocompdaemon test.scala && rm test.scala + +RUN \ + curl -fsL https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz | tar xfz - -C /usr/local && \ + $(mv /usr/local/sbt-launcher-packaging-$SBT_VERSION /usr/local/sbt || true) && \ + ln -s /usr/local/sbt/bin/* /usr/local/bin/ && \ + sbt -Dsbt.rootdir=true -batch sbtVersion && \ + apk del .build-dependencies && \ + rm -rf "/tmp/"* && \ + rm -rf /var/cache/apk/* + +# Start a new stage for the final image +FROM eclipse-temurin:${BASE_IMAGE_TAG:-21.0.2_13-jdk-alpine} + +ARG SCALA_VERSION=3.4.0 +ARG SBT_VERSION=1.9.9 +ARG USER_ID=1001 +ARG GROUP_ID=1001 + +RUN apk add --no-cache bash git rpm + +COPY --from=builder /usr/share/scala /usr/share/scala +COPY --from=builder /usr/local/sbt /usr/local/sbt +COPY --from=builder /usr/local/bin/sbt /usr/local/bin/sbt + +# Add and use user sbtuser +RUN addgroup -g $GROUP_ID sbtuser && adduser -D -u $USER_ID -G sbtuser sbtuser +USER sbtuser + +# Switch working directory +WORKDIR /home/sbtuser + +ENV PATH="/usr/share/scala/bin:${PATH}" + +# Prepare sbt (warm cache) +RUN \ + mkdir -p project && \ + echo "scalaVersion := \"${SCALA_VERSION}\"" > build.sbt && \ + echo "sbt.version=${SBT_VERSION}" > project/build.properties && \ + echo "// force sbt compiler-bridge download" > project/Dependencies.scala && \ + echo "case object Temp" > Temp.scala && \ + sbt sbtVersion && \ + sbt compile && \ + rm -r project && rm build.sbt && rm Temp.scala && rm -r target + +# Link everything into root as well +# This allows users of this container to choose, whether they want to run the container as sbtuser (non-root) or as root +USER root +RUN \ + rm -rf /tmp/..?* /tmp/.[!.]* * && \ + ln -s /home/sbtuser/.cache /root/.cache && \ + ln -s /home/sbtuser/.sbt /root/.sbt && \ + if [ -d "/home/sbtuser/.ivy2" ]; then ln -s /home/sbtuser/.ivy2 /root/.ivy2; fi + +# Switch working directory back to root +## Users wanting to use this container as non-root should combine the two following arguments +## -u sbtuser +## -w /home/sbtuser +WORKDIR /root + +CMD sbt \ No newline at end of file From 834b6b7f76c6282d70c3003ec65907f1393cb878 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Fri, 29 Mar 2024 10:23:33 +0100 Subject: [PATCH 29/38] feat: add jdk 22, drop 8 and 11 (#278) * add jdk 22, drop 8 and 11 * make sure curl is installed --- .github/workflows/build.yml | 38 ++++++++++++------------------- eclipse-temurin/Dockerfile | 15 ++++++------ eclipse-temurin/alpine.Dockerfile | 8 +++++-- 3 files changed, 29 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c919bcf..39d895c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,20 +18,22 @@ jobs: matrix: scalaVersion: ['2.12.19', '2.13.13', '3.3.3', '3.4.0'] javaTag: [ + 'graalvm-community-22.0.0', 'graalvm-community-21.0.2', 'graalvm-ce-22.3.3-b1-java17', - 'graalvm-ce-22.3.3-b1-java11', + 'eclipse-temurin-jammy-22_36', 'eclipse-temurin-jammy-21.0.2_13', 'eclipse-temurin-jammy-17.0.10_7', - 'eclipse-temurin-jammy-11.0.22_7', - 'eclipse-temurin-jammy-8u402-b06', - 'eclipse-temurin-focal-17.0.10_7', - 'eclipse-temurin-focal-11.0.22_7', + 'eclipse-temurin-alpine-22_36', 'eclipse-temurin-alpine-21.0.2_13', 'eclipse-temurin-alpine-17.0.10_7' ] include: # https://github.com/graalvm/container/pkgs/container/graalvm-community + - javaTag: 'graalvm-community-22.0.0' + dockerContext: 'graalvm-community' + baseImageTag: '22.0.0-ol9' + platforms: 'linux/amd64,linux/arm64' - javaTag: 'graalvm-community-21.0.2' dockerContext: 'graalvm-community' baseImageTag: '21.0.2-ol9' @@ -41,11 +43,11 @@ jobs: dockerContext: 'graalvm-ce' baseImageTag: 'ol9-java17-22.3.3-b1' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'graalvm-ce-22.3.3-b1-java11' - dockerContext: 'graalvm-ce' - baseImageTag: 'ol9-java11-22.3.3-b1' - platforms: 'linux/amd64' # https://hub.docker.com/_/eclipse-temurin/tags + - javaTag: 'eclipse-temurin-jammy-22_36' + dockerContext: 'eclipse-temurin' + baseImageTag: '22_36-jdk-jammy' + platforms: 'linux/amd64,linux/arm64' - javaTag: 'eclipse-temurin-jammy-21.0.2_13' dockerContext: 'eclipse-temurin' baseImageTag: '21.0.2_13-jdk-jammy' @@ -54,21 +56,11 @@ jobs: dockerContext: 'eclipse-temurin' baseImageTag: '17.0.10_7-jdk-jammy' platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-11.0.22_7' - dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.22_7-jdk-jammy' - platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-jammy-8u402-b06' - dockerContext: 'eclipse-temurin' - baseImageTag: '8u402-b06-jdk-jammy' - platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-17.0.10_7' + # https://hub.docker.com/_/eclipse-temurin/tags?page=1&name=alpine + - javaTag: 'eclipse-temurin-alpine-22_36' dockerContext: 'eclipse-temurin' - baseImageTag: '17.0.10_7-jdk-focal' - platforms: 'linux/amd64,linux/arm64' - - javaTag: 'eclipse-temurin-focal-11.0.22_7' - dockerContext: 'eclipse-temurin' - baseImageTag: '11.0.22_7-jdk-focal' + dockerfile: 'alpine.Dockerfile' + baseImageTag: '22_36-jdk-alpine' platforms: 'linux/amd64,linux/arm64' - javaTag: 'eclipse-temurin-alpine-21.0.2_13' dockerContext: 'eclipse-temurin' diff --git a/eclipse-temurin/Dockerfile b/eclipse-temurin/Dockerfile index e8cc301..db5aef9 100644 --- a/eclipse-temurin/Dockerfile +++ b/eclipse-temurin/Dockerfile @@ -18,6 +18,14 @@ ENV USER_ID ${USER_ID:-1001} ARG GROUP_ID ENV GROUP_ID ${GROUP_ID:-1001} +# Install dependencies +# curl for downloading sbt and scala +# git and rpm for sbt-native-packager (see https://github.com/sbt/docker-sbt/pull/114) +RUN \ + apt-get update && \ + apt-get install -y curl git rpm && \ + rm -rf /var/lib/apt/lists/* + # Install sbt RUN \ curl -fsL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | tar xfz - -C /usr/share && \ @@ -42,13 +50,6 @@ RUN \ esac && \ scala -nocompdaemon test.scala && rm test.scala -# Install git and rpm for sbt-native-packager (see https://github.com/sbt/docker-sbt/pull/114) -RUN \ - apt-get update && \ - apt-get install git -y && \ - apt-get install rpm -y && \ - rm -rf /var/lib/apt/lists/* - # Symlink java to have it available on sbtuser's PATH RUN ln -s /opt/java/openjdk/bin/java /usr/local/bin/java diff --git a/eclipse-temurin/alpine.Dockerfile b/eclipse-temurin/alpine.Dockerfile index f3727fc..ceef37f 100644 --- a/eclipse-temurin/alpine.Dockerfile +++ b/eclipse-temurin/alpine.Dockerfile @@ -7,8 +7,11 @@ ARG USER_ID=1001 ARG GROUP_ID=1001 ENV SCALA_HOME=/usr/share/scala -# Install scala and sbt -RUN apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash curl bc && \ +# Install dependencies +RUN apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash curl bc + +# Install scala +RUN \ cd "/tmp" && \ case $SCALA_VERSION in \ "3"*) URL=https://github.com/lampepfl/dotty/releases/download/$SCALA_VERSION/scala3-$SCALA_VERSION.tar.gz SCALA_DIR=scala3-$SCALA_VERSION ;; \ @@ -25,6 +28,7 @@ RUN apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash c esac && \ scala -nocompdaemon test.scala && rm test.scala +# Install sbt RUN \ curl -fsL https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz | tar xfz - -C /usr/local && \ $(mv /usr/local/sbt-launcher-packaging-$SBT_VERSION /usr/local/sbt || true) && \ From df2b89813c1348e7f71f98a1aa2e196fa2b0a0c5 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Fri, 29 Mar 2024 16:15:39 +0100 Subject: [PATCH 30/38] scala 3.4.1 (#279) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39d895c..609a732 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.19', '2.13.13', '3.3.3', '3.4.0'] + scalaVersion: ['2.12.19', '2.13.13', '3.3.3', '3.4.1'] javaTag: [ 'graalvm-community-22.0.0', 'graalvm-community-21.0.2', From d8ed3d04d204256c3e96264e844b8c2ca6431ed7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 06:56:08 +0000 Subject: [PATCH 31/38] Bump docker/setup-buildx-action from 3.2.0 to 3.3.0 (#280) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 609a732..2ebe2f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,7 +78,7 @@ jobs: uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v3.2.0 + uses: docker/setup-buildx-action@v3.3.0 # with: # install: true - name: Available platforms From d27c57706ef388d5527f2e6c5e15001cc60e4fec Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Mon, 15 Apr 2024 14:00:06 +0200 Subject: [PATCH 32/38] fix: missing alpine BASE_IMAGE_TAG arg declaration (#282) --- eclipse-temurin/alpine.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclipse-temurin/alpine.Dockerfile b/eclipse-temurin/alpine.Dockerfile index ceef37f..7990c78 100644 --- a/eclipse-temurin/alpine.Dockerfile +++ b/eclipse-temurin/alpine.Dockerfile @@ -1,4 +1,5 @@ # Use a multi-stage build to reduce the size of the final image +ARG BASE_IMAGE_TAG FROM eclipse-temurin:${BASE_IMAGE_TAG:-21.0.2_13-jdk-alpine} as builder ARG SCALA_VERSION=3.4.0 @@ -87,4 +88,4 @@ RUN \ ## -w /home/sbtuser WORKDIR /root -CMD sbt \ No newline at end of file +CMD sbt From e6c6dd270c4a04193a6956e5a2191beca803da58 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Mon, 15 Apr 2024 14:07:06 +0200 Subject: [PATCH 33/38] fix: no arm64 available for 17.0.10_7-jdk-alpine --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ebe2f7..37faacd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,7 +71,7 @@ jobs: dockerContext: 'eclipse-temurin' dockerfile: 'alpine.Dockerfile' baseImageTag: '17.0.10_7-jdk-alpine' - platforms: 'linux/amd64,linux/arm64' + platforms: 'linux/amd64' steps: - uses: actions/checkout@v4 - name: Set up QEMU From 6790e769db588c52454b748a7333cd0dd561989c Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Mon, 15 Apr 2024 14:13:31 +0200 Subject: [PATCH 34/38] fix: specify arm v8 for alpine images --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37faacd..29cc86c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,12 +61,12 @@ jobs: dockerContext: 'eclipse-temurin' dockerfile: 'alpine.Dockerfile' baseImageTag: '22_36-jdk-alpine' - platforms: 'linux/amd64,linux/arm64' + platforms: 'linux/amd64,linux/arm64/v8' - javaTag: 'eclipse-temurin-alpine-21.0.2_13' dockerContext: 'eclipse-temurin' dockerfile: 'alpine.Dockerfile' baseImageTag: '21.0.2_13-jdk-alpine' - platforms: 'linux/amd64,linux/arm64' + platforms: 'linux/amd64,linux/arm64/v8' - javaTag: 'eclipse-temurin-alpine-17.0.10_7' dockerContext: 'eclipse-temurin' dockerfile: 'alpine.Dockerfile' From dbe12901b031f5056fe49854abb1d00904472d3a Mon Sep 17 00:00:00 2001 From: dmtran-g <127074875+dmtran-g@users.noreply.github.com> Date: Tue, 7 May 2024 16:14:42 +0900 Subject: [PATCH 35/38] scala 2.13.14 (#283) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29cc86c..d05ba41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.19', '2.13.13', '3.3.3', '3.4.1'] + scalaVersion: ['2.12.19', '2.13.14', '3.3.3', '3.4.1'] javaTag: [ 'graalvm-community-22.0.0', 'graalvm-community-21.0.2', From b3c29115016cf9cd955fdb0182fcaf4707ebd735 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Thu, 16 May 2024 22:48:18 +0200 Subject: [PATCH 36/38] Scala 3.4.2 (#284) https://github.com/scala/scala3/releases/tag/3.4.2 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d05ba41..8222280 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - scalaVersion: ['2.12.19', '2.13.14', '3.3.3', '3.4.1'] + scalaVersion: ['2.12.19', '2.13.14', '3.3.3', '3.4.2'] javaTag: [ 'graalvm-community-22.0.0', 'graalvm-community-21.0.2', From aef7e90b060d90f6051468d1d9b8628eaa50d168 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 06:39:25 +0000 Subject: [PATCH 37/38] Bump docker/build-push-action from 5 to 6 (#287) --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8222280..d7be9ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -99,7 +99,7 @@ jobs: TAG=sbtscala/scala-sbt:${{ matrix.javaTag }}_${{ steps.get_sbt_version.outputs.VERSION }}_${{ matrix.scalaVersion }} echo "TAG=$TAG" >> $GITHUB_OUTPUT - name: Build docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: ${{ matrix.dockerContext }} no-cache: true @@ -132,7 +132,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Rebuild and push ${{ matrix.platforms }} docker images if: github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: ${{ matrix.dockerContext }} file: ${{ matrix.dockerContext }}/${{ matrix.dockerfile || 'Dockerfile' }} From d0f18fc10c6f76e77118205aa95999bbf3a8a4b6 Mon Sep 17 00:00:00 2001 From: Haemin Yoo Date: Sun, 23 Jun 2024 22:21:52 +0900 Subject: [PATCH 38/38] Update graalvm-community to 22.0.1 (#288) --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7be9ed..5057c5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: matrix: scalaVersion: ['2.12.19', '2.13.14', '3.3.3', '3.4.2'] javaTag: [ - 'graalvm-community-22.0.0', + 'graalvm-community-22.0.1', 'graalvm-community-21.0.2', 'graalvm-ce-22.3.3-b1-java17', 'eclipse-temurin-jammy-22_36', @@ -30,9 +30,9 @@ jobs: ] include: # https://github.com/graalvm/container/pkgs/container/graalvm-community - - javaTag: 'graalvm-community-22.0.0' + - javaTag: 'graalvm-community-22.0.1' dockerContext: 'graalvm-community' - baseImageTag: '22.0.0-ol9' + baseImageTag: '22.0.1-ol9' platforms: 'linux/amd64,linux/arm64' - javaTag: 'graalvm-community-21.0.2' dockerContext: 'graalvm-community'