changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.worker

changeset 40: 90970dfd5a8b
parent: 60461d073737
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 24 Sep 2024 15:02:27 -0400
permissions: -rw-r--r--
description: merge
1 FROM localhost/dev:latest
2 ARG WORKER_ID=908
3 ARG WORKER=worker
4 ARG WORKER_HOME=/home/${WORKER}
5 ARG STASH=/usr/local/share/stash
6 ARG STORE=/usr/local/share/store
7 USER root
8 RUN useradd --system -s /usr/bin/bash -u ${WORKER_ID} -m ${WORKER} -G wheel
9 RUN echo "worker ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/worker
10 RUN ssh-keygen -A
11 RUN mkdir -pv ${STASH} ${STORE}
12 RUN chown -R ${WORKER_ID}:worker /usr/local/*
13 USER ${WORKER}
14 RUN mkdir -pv ${WORKER_HOME}/.stash
15 WORKDIR ${WORKER_HOME}/.stash
16 RUN hg clone https://vc.compiler.company/infra
17 WORKDIR infra
18 ENV CARGO_HOME="/usr/local/share/rust/cargo"
19 ENV RUSTUP_HOME="/usr/local/share/rust/rustup"
20 ENV PATH="$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin"
21 RUN mkdir -pv .stash/tmp
22 RUN skel install quicklisp
23 RUN skel clean
24 WORKDIR ${WORKER_HOME}
25 RUN hg clone https://vc.compiler.company/home .stash/home && cd .stash/home && hg up ${WORKER}
26 RUN cp .stash/home/.homerc ${WORKER_HOME}/.homerc
27 RUN homer install
28 ENV WORKER=${WORKER}
29 ENV WORKER_ID=${WORKER_ID}
30 ENV WORKER_HOME=${WORKER_HOME}
31 ENV STASH=${STASH}
32 ENV STORE=${STORE}