changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.vc

changeset 36: 8a7410b6d45c
parent: 28492e359d92
child: c4d56de0ee1a
author: Richard Westhaver <ellis@rwest.io>
date: Wed, 04 Sep 2024 16:57:00 -0400
permissions: -rw-r--r--
description: vc 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 python-pip apache nano --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 pip install --user --break-system-packages hg-evolve
11 RUN mkdir .stash
12 RUN hg clone https://vc.compiler.company/infra .stash/infra
13 RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key
14 RUN hg clone https://vc.compiler.company/home .stash/home
15 RUN cd .stash/home && hg up ${VC_USER} && cp .homerc ${VC_HOME}/.homerc
16 RUN homer install
17 ENV VC_USER=${VC_USER}
18 ENV VC_ID=${VC_ID}
19 ENTRYPOINT ["hg", "serve", "--web-conf", "hgweb.conf"]