changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.vc

changeset 24: b97af2c62373
parent: ce053bf5ea3c
child: fc675ca6075b
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 21 Jul 2024 18:00:59 -0400
permissions: -rw-r--r--
description: vc entrypoint
1 FROM localhost/dev:latest
2 ARG VC_USER=vc
3 ARG VC_HOME=/home/${VC_USER}
4 ARG VC_ID=842
5 USER root
6 RUN --network=host pacman -Sy python-pygments python-pygit2 python-dulwich --noconfirm
7 RUN useradd --system -s /usr/bin/bash -u ${VC_ID} -m ${VC_USER}
8 USER ${VC_USER}
9 WORKDIR ${VC_HOME}
10 RUN mkdir .stash
11 RUN hg clone https://vc.compiler.company/comp/infra .stash/infra
12 RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key
13 RUN hg clone https://vc.compiler.company/comp/home .stash/home
14 RUN cd .stash/home && hg up ${VC_USER} && cp .homerc ${VC_HOME}/.homerc
15 RUN homer install
16 WORKDIR .stash/infra
17 RUN skel make repos
18 RUN skel make packy-repos
19 RUN mv .stash/src ${VC_HOME}/src
20 RUN skel clean
21 WORKDIR ${VC_HOME}
22 ENV VC_USER=${VC_USER}
23 ENV VC_ID=${VC_ID}
24 ENTRYPOINT ["hg", "serve", "--web-conf", "hgweb.conf"]