changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.vc

changeset 25: fc675ca6075b
parent: b97af2c62373
child: 28492e359d92
author: Richard Westhaver <ellis@rwest.io>
date: Mon, 22 Jul 2024 21:01:19 -0400
permissions: -rw-r--r--
description: container updates
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 RUN skel run init-vc-bundles
22 WORKDIR ${VC_HOME}
23 ENV VC_USER=${VC_USER}
24 ENV VC_ID=${VC_ID}
25 ENTRYPOINT ["hg", "serve", "--web-conf", "hgweb.conf"]