changeset 26: |
29aa38f88ee6 |
parent 25: |
fc675ca6075b |
child 27: |
058ae6eb8c06 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Thu, 25 Jul 2024 21:46:03 -0400 |
files: |
Containerfile.core Containerfile.dev Containerfile.operator |
description: |
operator/core |
1.1--- a/Containerfile.core Mon Jul 22 21:01:19 2024 -0400
1.2+++ b/Containerfile.core Thu Jul 25 21:46:03 2024 -0400
1.3@@ -1,5 +1,6 @@
1.4-ARG IMAGE=localhost/dev
1.5+ARG IMAGE=localhost/operator
1.6 ARG VERSION=latest
1.7 FROM ${IMAGE}:${VERSION}
1.8-RUN hg clone https://vc.compiler.company/comp/core
1.9-WORKDIR core
1.10\ No newline at end of file
1.11+RUN hg clone https://vc.compiler.company/comp/core .stash/core
1.12+WORKDIR .stash/core
1.13+ENTRYPOINT ["skel"]
1.14\ No newline at end of file
2.1--- a/Containerfile.dev Mon Jul 22 21:01:19 2024 -0400
2.2+++ b/Containerfile.dev Thu Jul 25 21:46:03 2024 -0400
2.3@@ -1,5 +1,5 @@
2.4 FROM localhost/archlinux:latest
2.5-RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy sbcl llvm clang lld liburing libxkbcommon --noconfirm
2.6+RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy llvm clang lld liburing libxkbcommon --noconfirm
2.7 ARG DEV=dev
2.8 ARG DEV_HOME=/home/${DEV}
2.9 ARG DEV_ID=808
2.10@@ -16,7 +16,7 @@
2.11 RUN chown -R ${DEV}:engineer /usr/local/man/
2.12 RUN ssh-keygen -A
2.13 USER ${DEV}
2.14-RUN mkdir ${DEV_HOME}/.stash
2.15+RUN mkdir -p ${DEV_HOME}/.stash/lisp
2.16 WORKDIR ${DEV_HOME}/.stash
2.17 RUN hg clone https://vc.compiler.company/comp/infra
2.18 WORKDIR infra
3.1--- a/Containerfile.operator Mon Jul 22 21:01:19 2024 -0400
3.2+++ b/Containerfile.operator Thu Jul 25 21:46:03 2024 -0400
3.3@@ -1,10 +1,16 @@
3.4 FROM localhost/dev:latest
3.5+USER root
3.6+RUN usermod -l operator --move-home --home /home/operator ${DEV}
3.7+RUN echo "operator ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/operator # yuck
3.8+USER operator
3.9+WORKDIR /home/operator
3.10 RUN hg clone https://vc.compiler.company/comp/infra .stash/infra
3.11 RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key
3.12 WORKDIR .stash/infra
3.13-USER root
3.14 RUN skel make tmp
3.15-RUN skel run install-emacs-mini-pack
3.16+RUN sudo skel run install-emacs-mini-pack
3.17 RUN skel clean
3.18-WORKDIR ${DEV_HOME}
3.19-USER ${DEV}
3.20\ No newline at end of file
3.21+WORKDIR /home/operator
3.22+RUN cd .stash/home && hg up operator && homer install
3.23+ENV DEV=operator
3.24+ENV DEV_HOME=/home/operator
3.25\ No newline at end of file