changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / containers/Containerfile.worker

changeset 228: a5af81e9eb4d
parent: 94227525d5ce
child: 302be3c3cd94
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 24 May 2024 22:04:12 +0000
permissions: -rw-r--r--
description: 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 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 # RUN hg clone https://vc.compiler.company/comp/etc
16 ENV CARGO_HOME="/usr/local/share/cargo"
17 ENV RUSTUP_HOME="/usr/local/share/rustup"
18 RUN make rustup-install tree-sitter-langs-install
19 ENV PATH="$PATH:/usr/local/share/cargo/bin"
20 RUN rustup update
21 #RUN rustup default nightly # disabled due to issue with zellij build
22 # ADD etc/sbclrc /etc/sbclrc
23 RUN cd .. && rm -rf infra core
24 RUN adduser -D -u ${ID} -k /etc/skel ${WORKER}
25 USER ${WORKER}
26 WORKDIR ${WORKER_HOME}
27 ENV WORKER=${WORKER}
28 ENV WORKER_ID=${ID}
29 ENV WORKER_HOME=${WORKER_HOME}
30 ENTRYPOINT ["sh"]