changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.worker

changeset 2: ebe8eace7f0a
parent: 98aa8d30816a
child: 759570e2f4d5
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 16 Jun 2024 00:33:56 -0400
permissions: -rw-r--r--
description: updates
1 FROM localhost/alpine:latest
2 # VOLUME /opt/store
3 # VOLUME /opt/stash
4 # ADD etc/skel/* /etc/skel/
5 ARG ID=908
6 ARG WORKER=worker
7 ARG WORKER_HOME=/home/${WORKER}
8 # TODO: build sbcl for musl
9 RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf clang m4
10 RUN mkdir -p /usr/share/lisp /usr/local/share/lisp
11 COPY .stash/bin/ /usr/local/bin/
12 COPY .stash/lib/ /usr/local/lib/
13 COPY .stash/include/ /usr/local/include/
14 COPY .stash/share/ /usr/local/share/
15 COPY .stash/src/ /usr/local/src/
16 WORKDIR /usr/local/src
17 RUN hg clone https://vc.compiler.company/comp/infra
18 WORKDIR infra
19 # RUN scripts/get-sk.sh
20 ENV CARGO_HOME="/usr/local/share/cargo"
21 ENV RUSTUP_HOME="/usr/local/share/rustup"
22 ENV PATH="$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin"
23 RUN adduser -D -u ${ID} -k /etc/skel ${WORKER}
24 USER ${WORKER}
25 WORKDIR ${WORKER_HOME}
26 ENV WORKER=${WORKER}
27 ENV WORKER_ID=${ID}
28 ENV WORKER_HOME=${WORKER_HOME}
29 ENTRYPOINT ["sh"]