This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-06
Channels
- # announcements (5)
- # asami (4)
- # babashka (27)
- # beginners (1)
- # calva (4)
- # cider (64)
- # clj-kondo (7)
- # clojure (7)
- # clojure-brasil (3)
- # clojure-europe (41)
- # clojure-france (2)
- # clojure-norway (101)
- # clojure-uk (5)
- # clojurescript (19)
- # cursive (3)
- # datahike (15)
- # datomic (15)
- # events (2)
- # honeysql (11)
- # hyperfiddle (27)
- # introduce-yourself (2)
- # jobs-rus (1)
- # leiningen (8)
- # london-clojurians (1)
- # lsp (175)
- # off-topic (52)
- # overtone (10)
- # portal (15)
- # re-frame (7)
- # reagent (1)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (15)
- # sql (5)
I’m trying to build multi-platform docker images via a github action and I keep getting clojure:temurin-21-alpine: no match for platform in manifest
This is the job I’m using to build the images:
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ github.repository }}:${{ github.sha }}
platforms: linux/amd64,linux/arm64
and my Dockerfile with two stages pulls images:
FROM clojure:temurin-21-alpine AS builder
...
FROM eclipse-temurin:21-jre-alpine AS runner
does anyone have experience/seen an open project doing this?at least eclipse-temurin:21-jre-alpine
has arm64 images, and the clojure image should have it too IIUC
Consider using clojure:temurin-17-alpine
as the clojure image tag to build the clojure app. Java 21 images are quite new (about a week or so old?) to there may be use cases that havent had much testing.
FROM clojure:temurin-17-alpine AS builder
FROM eclipse-temurin:17-alpine AS final
The current Dockerfile I use is covered in https://practical.li/engineering-playbook/continuous-integration/docker/clojure-multi-stage-dockerfile/
Suggest raising the issue on the #docker channel specifically, especially if it happens with Java 17 images as wellI was using that one initially, but eclipse-temurin:17-alpine (the runner stage) doesn’t work with ARM yet (https://github.com/adoptium/containers/issues/158) but 21 is available
Perhaps the Debian Linux image, bookworm-slim
will work more effectively than Alpine for the ARM hardware. Debian has long supported a wide range of hardware (although I dont have a Mac to test it with)
FROM clojure:tools-deps-bookworm-slim AS builder
or
FROM clojure:temurin-21-bookworm-slim
@U05254DQM switching to debian did it 😄 thanks