# HG changeset patch # User Richard Westhaver # Date 1721958363 14400 # Node ID 29aa38f88ee6cf4efe2d4c993e09a83ed3569929 # Parent fc675ca6075b8b044fcea46e56643ef4437be354 operator/core diff -r fc675ca6075b -r 29aa38f88ee6 Containerfile.core --- a/Containerfile.core Mon Jul 22 21:01:19 2024 -0400 +++ b/Containerfile.core Thu Jul 25 21:46:03 2024 -0400 @@ -1,5 +1,6 @@ -ARG IMAGE=localhost/dev +ARG IMAGE=localhost/operator ARG VERSION=latest FROM ${IMAGE}:${VERSION} -RUN hg clone https://vc.compiler.company/comp/core -WORKDIR core \ No newline at end of file +RUN hg clone https://vc.compiler.company/comp/core .stash/core +WORKDIR .stash/core +ENTRYPOINT ["skel"] \ No newline at end of file diff -r fc675ca6075b -r 29aa38f88ee6 Containerfile.dev --- a/Containerfile.dev Mon Jul 22 21:01:19 2024 -0400 +++ b/Containerfile.dev Thu Jul 25 21:46:03 2024 -0400 @@ -1,5 +1,5 @@ FROM localhost/archlinux:latest -RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy sbcl llvm clang lld liburing libxkbcommon --noconfirm +RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy llvm clang lld liburing libxkbcommon --noconfirm ARG DEV=dev ARG DEV_HOME=/home/${DEV} ARG DEV_ID=808 @@ -16,7 +16,7 @@ RUN chown -R ${DEV}:engineer /usr/local/man/ RUN ssh-keygen -A USER ${DEV} -RUN mkdir ${DEV_HOME}/.stash +RUN mkdir -p ${DEV_HOME}/.stash/lisp WORKDIR ${DEV_HOME}/.stash RUN hg clone https://vc.compiler.company/comp/infra WORKDIR infra diff -r fc675ca6075b -r 29aa38f88ee6 Containerfile.operator --- a/Containerfile.operator Mon Jul 22 21:01:19 2024 -0400 +++ b/Containerfile.operator Thu Jul 25 21:46:03 2024 -0400 @@ -1,10 +1,16 @@ FROM localhost/dev:latest +USER root +RUN usermod -l operator --move-home --home /home/operator ${DEV} +RUN echo "operator ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/operator # yuck +USER operator +WORKDIR /home/operator RUN hg clone https://vc.compiler.company/comp/infra .stash/infra RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key WORKDIR .stash/infra -USER root RUN skel make tmp -RUN skel run install-emacs-mini-pack +RUN sudo skel run install-emacs-mini-pack RUN skel clean -WORKDIR ${DEV_HOME} -USER ${DEV} \ No newline at end of file +WORKDIR /home/operator +RUN cd .stash/home && hg up operator && homer install +ENV DEV=operator +ENV DEV_HOME=/home/operator \ No newline at end of file