changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.worker

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