portal image: a base at least as new as the builder's glibc
deploy / deploy (push) Failing after 1m0s
deploy / deploy (push) Failing after 1m0s
This commit is contained in:
+12
-4
@@ -2,11 +2,19 @@
|
|||||||
# project.uhhm.no (the same artifact the bare-metal instances run).
|
# project.uhhm.no (the same artifact the bare-metal instances run).
|
||||||
# PORTAL_RELEASE in .env pins the version; bumping it and rebuilding is
|
# PORTAL_RELEASE in .env pins the version; bumping it and rebuilding is
|
||||||
# the whole upgrade.
|
# the whole upgrade.
|
||||||
FROM debian:bookworm-slim
|
#
|
||||||
|
# Arch, because that is what the release is built on. The published
|
||||||
|
# binary is dynamically linked against that runner's glibc, so a
|
||||||
|
# debian:bookworm-slim base - glibc 2.36 against the 2.38 the binary
|
||||||
|
# asks for - starts and immediately exits with a version error. The
|
||||||
|
# base has to be at least as new as the builder, and the builder is
|
||||||
|
# Arch, so this is Arch. gdo's image is the same base for the same
|
||||||
|
# reason.
|
||||||
|
FROM archlinux:base
|
||||||
ARG PORTAL_RELEASE
|
ARG PORTAL_RELEASE
|
||||||
RUN apt-get update \
|
RUN pacman -Sy --noconfirm --needed ca-certificates curl \
|
||||||
&& apt-get install -y --no-install-recommends ca-certificates curl \
|
&& pacman -Scc --noconfirm \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/cache/pacman/pkg/* /var/lib/pacman/sync/*
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/${PORTAL_RELEASE}/portal-${PORTAL_RELEASE}.tar.gz" \
|
RUN curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/${PORTAL_RELEASE}/portal-${PORTAL_RELEASE}.tar.gz" \
|
||||||
| tar -xz -C /app \
|
| tar -xz -C /app \
|
||||||
|
|||||||
Reference in New Issue
Block a user