changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / Containerfile.worker

changeset 214: 847281f20daf
parent: 21a46e89d3a5
author: Richard Westhaver <ellis@rwest.io>
date: Mon, 29 Apr 2024 00:27:10 +0000
permissions: -rw-r--r--
description: easy-rsa
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 RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf clang m4 tree-sitter
9 RUN mkdir /usr/share/lisp
10 RUN mkdir /usr/local/share/lisp
11 WORKDIR /usr/local/src
12 RUN hg clone https://vc.compiler.company/comp/infra
13 RUN hg clone https://vc.compiler.company/comp/core
14 WORKDIR infra
15 ENV CARGO_HOME="/usr/local/share/cargo"
16 ENV RUSTUP_HOME="/usr/local/share/rustup"
17 RUN make build rustup-install tree-sitter-langs-install
18 ENV PATH="$PATH:/usr/local/share/cargo/bin"
19 RUN rustup update
20 #RUN rustup default nightly # disabled due to issue with zellij build
21 ADD etc/sbclrc /etc/sbclrc
22 RUN cd .. && rm -rf infra core
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"]