changeset 10: |
2e30626743f3 |
parent 9: |
58539a178562 |
child 11: |
e3e55e6b2f64 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Wed, 19 Jun 2024 19:25:21 -0400 |
files: |
Containerfile.box Containerfile.core Containerfile.dev Containerfile.operator |
description: |
mv box |
1.1--- a/Containerfile.box Wed Jun 19 17:36:52 2024 -0400
1.2+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3@@ -1,42 +0,0 @@
1.4-FROM localhost/archlinux:latest
1.5-RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy sbcl clang lld liburing libxkbcommon --noconfirm
1.6-# custom
1.7-ARG DEV=dev
1.8-ARG DEV_HOME=/home/${DEV}
1.9-ARG ID=808
1.10-# stage0
1.11-RUN mkdir -p /usr/share/lisp /usr/local/share/lisp /usr/local/share/rust
1.12-COPY .stash/bin/ /usr/local/bin/
1.13-COPY .stash/lib/ /usr/local/lib/
1.14-COPY .stash/include/ /usr/local/include/
1.15-COPY .stash/share/ /usr/local/share/
1.16-COPY .stash/src/ /usr/local/src/
1.17-WORKDIR /usr/local/src
1.18-RUN hg clone https://vc.compiler.company/comp/infra
1.19-WORKDIR infra
1.20-ENV CARGO_HOME="/usr/local/share/rust/cargo"
1.21-ENV RUSTUP_HOME="/usr/local/share/rust/rustup"
1.22-# stage1
1.23-ENV PATH="$PATH:/usr/local/share/rust/cargo/bin"
1.24-RUN skel run install-rocksdb-pack
1.25-RUN skel run install-emacs-mini-pack
1.26-RUN skel make tree-sitter
1.27-RUN skel make tree-sitter-langs
1.28-RUN useradd --system -s /usr/bin/bash -u ${ID} -m ${DEV}
1.29-RUN groupadd -g 128 engineer -U ${DEV}
1.30-RUN groupadd -g 256 operator -U ${DEV}
1.31-RUN chown -R ${DEV}:engineer /usr/local/share/
1.32-RUN chown -R ${DEV}:engineer /usr/local/src/
1.33-RUN chown -R ${DEV}:engineer /usr/local/bin/
1.34-RUN chown -R ${DEV}:engineer /usr/local/etc/
1.35-RUN chown -R ${DEV}:engineer /usr/local/man/
1.36-USER ${DEV}
1.37-RUN mkdir ${DEV_HOME}/.stash
1.38-RUN skel make quicklisp
1.39-RUN skel make rustup
1.40-RUN rustup default nightly
1.41-RUN rustup component add --toolchain nightly rust-src rust-analyzer rustc-dev llvm-tools-preview
1.42-WORKDIR ${DEV_HOME}
1.43-RUN rm -rf /usr/local/src/*
1.44-ENV DEV=${DEV}
1.45-ENV DEV_ID=${ID}
1.46\ No newline at end of file
2.1--- a/Containerfile.core Wed Jun 19 17:36:52 2024 -0400
2.2+++ b/Containerfile.core Wed Jun 19 19:25:21 2024 -0400
2.3@@ -1,4 +1,4 @@
2.4-ARG IMAGE=localhost/box
2.5+ARG IMAGE=localhost/dev
2.6 ARG VERSION=latest
2.7 FROM ${IMAGE}:${VERSION}
2.8 RUN hg clone https://vc.compiler.company/comp/core
3.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2+++ b/Containerfile.dev Wed Jun 19 19:25:21 2024 -0400
3.3@@ -0,0 +1,42 @@
3.4+FROM localhost/archlinux:latest
3.5+RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy sbcl clang lld liburing libxkbcommon --noconfirm
3.6+# custom
3.7+ARG DEV=dev
3.8+ARG DEV_HOME=/home/${DEV}
3.9+ARG ID=808
3.10+# stage0
3.11+RUN mkdir -p /usr/share/lisp /usr/local/share/lisp /usr/local/share/rust
3.12+COPY .stash/bin/ /usr/local/bin/
3.13+COPY .stash/lib/ /usr/local/lib/
3.14+COPY .stash/include/ /usr/local/include/
3.15+COPY .stash/share/ /usr/local/share/
3.16+COPY .stash/src/ /usr/local/src/
3.17+WORKDIR /usr/local/src
3.18+RUN hg clone https://vc.compiler.company/comp/infra
3.19+WORKDIR infra
3.20+ENV CARGO_HOME="/usr/local/share/rust/cargo"
3.21+ENV RUSTUP_HOME="/usr/local/share/rust/rustup"
3.22+# stage1
3.23+ENV PATH="$PATH:/usr/local/share/rust/cargo/bin"
3.24+RUN skel run install-rocksdb-pack
3.25+RUN skel run install-emacs-mini-pack
3.26+RUN skel make tree-sitter
3.27+RUN skel make tree-sitter-langs
3.28+RUN useradd --system -s /usr/bin/bash -u ${ID} -m ${DEV}
3.29+RUN groupadd -g 128 engineer -U ${DEV}
3.30+RUN groupadd -g 256 operator -U ${DEV}
3.31+RUN chown -R ${DEV}:engineer /usr/local/share/
3.32+RUN chown -R ${DEV}:engineer /usr/local/src/
3.33+RUN chown -R ${DEV}:engineer /usr/local/bin/
3.34+RUN chown -R ${DEV}:engineer /usr/local/etc/
3.35+RUN chown -R ${DEV}:engineer /usr/local/man/
3.36+USER ${DEV}
3.37+RUN mkdir ${DEV_HOME}/.stash
3.38+RUN skel make quicklisp
3.39+RUN skel make rustup
3.40+RUN rustup default nightly
3.41+RUN rustup component add --toolchain nightly rust-src rust-analyzer rustc-dev llvm-tools-preview
3.42+WORKDIR ${DEV_HOME}
3.43+RUN rm -rf /usr/local/src/*
3.44+ENV DEV=${DEV}
3.45+ENV DEV_ID=${ID}
3.46\ No newline at end of file
4.1--- a/Containerfile.operator Wed Jun 19 17:36:52 2024 -0400
4.2+++ b/Containerfile.operator Wed Jun 19 19:25:21 2024 -0400
4.3@@ -1,2 +1,2 @@
4.4-FROM localhost/box:latest
4.5+FROM localhost/dev:latest
4.6 RUN /usr/local/src/infra/scripts/wg-gen-keys.sh private.key public.key
4.7\ No newline at end of file