changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.vc

changeset 35: 28492e359d92
parent: fc675ca6075b
child: 8a7410b6d45c
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 03 Sep 2024 20:40:39 -0400
permissions: -rw-r--r--
description: subup
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 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 mkdir .stash
11 RUN hg clone https://vc.compiler.company/infra .stash/infra
12 RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key
13 RUN hg clone https://vc.compiler.company/home .stash/home
14 RUN cd .stash/home && hg up ${VC_USER} && cp .homerc ${VC_HOME}/.homerc
15 RUN homer install
16 ENV VC_USER=${VC_USER}
17 ENV VC_ID=${VC_ID}
18 # ENTRYPOINT ["hg", "serve", "--web-conf", "hgweb.conf"]