changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / containers/Containerfile.worker

changeset 237: c1b5c4d68e2b
parent: 7f1d2001df1d
child: 489ae684b01a
author: Richard Westhaver <ellis@rwest.io>
date: Mon, 27 May 2024 22:37:51 +0000
permissions: -rw-r--r--
description: alpine tweaks
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 tree-sitter sbcl
10 RUN mkdir /usr/share/lisp
11 RUN mkdir /usr/local/share/lisp
12 WORKDIR /usr/local/src
13 RUN hg clone https://vc.compiler.company/comp/infra
14 WORKDIR infra
15 RUN scripts/get-sk.sh
16 ENV CARGO_HOME="/usr/local/share/cargo"
17 ENV RUSTUP_HOME="/usr/local/share/rustup"
18 ENV PATH="$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin"
19 # RUN sk make sbcl sbcl-install quicklisp rustup tree-sitter-langs rocksdb
20 RUN make sbcl-install-gencgc
21 RUN adduser -D -u ${ID} -k /etc/skel ${WORKER}
22 USER ${WORKER}
23 WORKDIR ${WORKER_HOME}
24 ENV WORKER=${WORKER}
25 ENV WORKER_ID=${ID}
26 ENV WORKER_HOME=${WORKER_HOME}
27 ENTRYPOINT ["sh"]