# HG changeset patch # User Richard Westhaver # Date 1721599259 14400 # Node ID b97af2c623738b3d4318bce057e14b18e8769c36 # Parent ce053bf5ea3cc671bf854476040d4fcea3d2fd04 vc entrypoint diff -r ce053bf5ea3c -r b97af2c62373 Containerfile.vc --- a/Containerfile.vc Sun Jul 21 01:46:51 2024 -0400 +++ b/Containerfile.vc Sun Jul 21 18:00:59 2024 -0400 @@ -1,8 +1,9 @@ FROM localhost/dev:latest -USER root ARG VC_USER=vc ARG VC_HOME=/home/${VC_USER} ARG VC_ID=842 +USER root +RUN --network=host pacman -Sy python-pygments python-pygit2 python-dulwich --noconfirm RUN useradd --system -s /usr/bin/bash -u ${VC_ID} -m ${VC_USER} USER ${VC_USER} WORKDIR ${VC_HOME} @@ -10,8 +11,8 @@ RUN hg clone https://vc.compiler.company/comp/infra .stash/infra RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key RUN hg clone https://vc.compiler.company/comp/home .stash/home -RUN cd .stash/home && hg up ${VC_USER} -RUN cp -rf .stash/home/* ~/ +RUN cd .stash/home && hg up ${VC_USER} && cp .homerc ${VC_HOME}/.homerc +RUN homer install WORKDIR .stash/infra RUN skel make repos RUN skel make packy-repos @@ -19,4 +20,5 @@ RUN skel clean WORKDIR ${VC_HOME} ENV VC_USER=${VC_USER} -ENV VC_ID=${VC_ID} \ No newline at end of file +ENV VC_ID=${VC_ID} +ENTRYPOINT ["hg", "serve", "--web-conf", "hgweb.conf"] \ No newline at end of file