changeset 38: |
c4d56de0ee1a |
parent 36: |
8a7410b6d45c |
child 39: |
c0ed453c44f9 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 13 Sep 2024 20:17:53 -0400 |
files: |
Containerfile.vc skelfile |
description: |
cleanup |
1.1--- a/Containerfile.vc Wed Sep 04 16:57:00 2024 -0400
1.2+++ b/Containerfile.vc Fri Sep 13 20:17:53 2024 -0400
1.3@@ -3,17 +3,17 @@
1.4 ARG VC_HOME=/home/${VC_USER}
1.5 ARG VC_ID=842
1.6 USER root
1.7-RUN --network=host pacman -Sy python-pygments python-pygit2 python-dulwich python-pip apache nano --noconfirm
1.8+RUN --network=host pacman -Sy python-pygments python-pygit2 python-dulwich python-pip apache uwsgi --noconfirm
1.9 RUN useradd --system -s /usr/bin/bash -u ${VC_ID} -m ${VC_USER}
1.10 USER ${VC_USER}
1.11 WORKDIR ${VC_HOME}
1.12 RUN pip install --user --break-system-packages hg-evolve
1.13 RUN mkdir .stash
1.14-RUN hg clone https://vc.compiler.company/infra .stash/infra
1.15+COPY --chmod=0755 infra .stash/infra
1.16 RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key
1.17-RUN hg clone https://vc.compiler.company/home .stash/home
1.18+RUN cp -rf .stash/infra/home .stash/home
1.19 RUN cd .stash/home && hg up ${VC_USER} && cp .homerc ${VC_HOME}/.homerc
1.20 RUN homer install
1.21 ENV VC_USER=${VC_USER}
1.22 ENV VC_ID=${VC_ID}
1.23-ENTRYPOINT ["hg", "serve", "--web-conf", "hgweb.conf"]
1.24\ No newline at end of file
1.25+CMD ["./serve.sh"]
1.26\ No newline at end of file
2.1--- a/skelfile Wed Sep 04 16:57:00 2024 -0400
2.2+++ b/skelfile Fri Sep 13 20:17:53 2024 -0400
2.3@@ -46,6 +46,9 @@
2.4 (vc ()
2.5 (:build () #$podman build -f Containerfile.vc -t vc --no-cache$#)
2.6 (:run () #$podman run --name vc --replace -dt -v $HOME/src:/home/vc/src:z -p 8888:8888 vc$#))
2.7+ ;; (git ()
2.8+ ;; (:build () #$podman build -f Containerfile.git -t git --no-cache$#)
2.9+ ;; (:run () #$podman run --name git --replace -dt -v $HOME/src/packy:/home/vc/packy:z -p 8889:80 git$#))
2.10 (dev ()
2.11 (:build () #$podman build -f Containerfile.dev -t dev --no-cache$#)
2.12 (:run () #$podman run --name dev --replace -dt dev$#))