changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.worker

changeset 16: c5379e794140
parent: a67e164d4def
child: 0d1acc5d1f35
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 07 Jul 2024 18:41:54 -0400
permissions: -rw-r--r--
description: add alpine-infra
1 FROM localhost/alpine:latest
2 ARG WORKER_ID=908
3 ARG WORKER=worker
4 ARG WORKER_HOME=/home/${WORKER}
5 RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf m4 mercurial llvm
6 RUN mkdir -pv /usr/share/lisp /usr/local/share/lisp
7 RUN addgroup -g 128 engineer
8 RUN addgroup -g 256 operator
9 RUN addgroup -g 512 worker
10 RUN adduser -D -u ${WORKER_ID} -G worker ${WORKER}
11 RUN chown -R ${WORKER_ID}:worker /usr/local/
12 RUN mkdir -pv ${WORKER_HOME}/.stash
13 WORKDIR /usr/local/src
14 RUN hg clone https://vc.compiler.company/comp/infra
15 WORKDIR infra
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 ./bootstrap.sh
20 # WORKDIR ${WORKER_HOME}
21 # RUN rm -rf /usr/local/src/*
22 USER ${WORKER}
23 ENV WORKER=${WORKER}
24 ENV WORKER_ID=${WORKER_ID}
25 ENV WORKER_HOME=${WORKER_HOME}
26 ENTRYPOINT ["sh"]