Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:
dockerfile: plane/Dockerfile
args:
PLANE_VERSION: ${LASER_PLANE_VERSION:-0.14.0}
IGGY_CPU: ${LASER_IGGY_CPU:-skylake}
restart: unless-stopped
init: true
depends_on:
Expand Down
11 changes: 9 additions & 2 deletions images/plane/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ARG BASE_IMAGE=debian:trixie-slim@sha256:020c0d20b9880058cbe785a9db107156c3c75c2
FROM ${BASE_IMAGE} AS fetch

ARG PLANE_VERSION
ARG IGGY_CPU=skylake
ARG TARGETARCH

COPY minisign.pub /tmp/minisign.pub
Expand All @@ -16,7 +17,14 @@ RUN set -eux; \
apt-get install -y --no-install-recommends ca-certificates curl minisign; \
rm -rf /var/lib/apt/lists/*; \
case "${TARGETARCH}" in \
amd64|arm64) artifact="plane-linux-${TARGETARCH}" ;; \
amd64) \
case "${IGGY_CPU}" in \
skylake|icelake|sapphirerapids|znver3) ;; \
*) echo "unsupported IGGY_CPU: ${IGGY_CPU}" >&2; exit 1 ;; \
esac; \
artifact="plane-linux-amd64-${IGGY_CPU}" \
;; \
arm64) artifact="plane-linux-arm64" ;; \
*) echo "unsupported target architecture: ${TARGETARCH}" >&2; exit 1 ;; \
esac; \
url="https://artifacts.laserdata.com/plane/${PLANE_VERSION}/${artifact}"; \
Expand Down Expand Up @@ -51,4 +59,3 @@ USER 10001:10001
WORKDIR /

ENTRYPOINT ["/usr/local/bin/plane"]