changelog shortlog graph tags branches files raw help

Mercurial > infra > pod / changeset: init

changeset 0: 98aa8d30816a
child 1: 0d37b97f681e
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 14 Jun 2024 19:15:37 +0000
files: Containerfile.alpine Containerfile.archlinux Containerfile.archriscv Containerfile.base Containerfile.box Containerfile.fedora.arm64v8 Containerfile.mail Containerfile.operator Containerfile.ubuntu Containerfile.vc Containerfile.vc-runner Containerfile.worker
description: init
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/Containerfile.alpine	Fri Jun 14 19:15:37 2024 +0000
     1.3@@ -0,0 +1,2 @@
     1.4+FROM alpine:latest
     1.5+RUN apk add --no-cache openssh mercurial wireguard-tools liburing libc6-compat coreutils
     1.6\ No newline at end of file
     2.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2+++ b/Containerfile.archlinux	Fri Jun 14 19:15:37 2024 +0000
     2.3@@ -0,0 +1,4 @@
     2.4+FROM archlinux:latest
     2.5+RUN --network=host pacman-key --init
     2.6+RUN --network=host pacman-key --populate archlinux
     2.7+RUN --network=host pacman -Syu base-devel less uutils-coreutils openssh mercurial git sqlite btrfs-progs liburing wireguard-tools clang tree-sitter libxcb glibc openssl zstd --noconfirm
     2.8\ No newline at end of file
     3.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2+++ b/Containerfile.archriscv	Fri Jun 14 19:15:37 2024 +0000
     3.3@@ -0,0 +1,2 @@
     3.4+FROM --platform=linux/riscv64 riscfive/archlinux
     3.5+RUN pacman -Syu
     3.6\ No newline at end of file
     5.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2+++ b/Containerfile.box	Fri Jun 14 19:15:37 2024 +0000
     5.3@@ -0,0 +1,52 @@
     5.4+FROM localhost/archlinux:latest
     5.5+RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy sbcl liburing libxkbcommon --noconfirm
     5.6+# custom
     5.7+ARG DEV=dev
     5.8+ARG DEV_HOME=/home/${DEV}
     5.9+ARG ID=808
    5.10+# stage0
    5.11+RUN mkdir -p /usr/share/lisp /usr/local/share/lisp
    5.12+WORKDIR /usr/local/src
    5.13+RUN hg clone https://vc.compiler.company/comp/infra
    5.14+RUN hg clone https://vc.compiler.company/comp/core
    5.15+WORKDIR infra
    5.16+ENV CARGO_HOME="/usr/local/share/cargo"
    5.17+ENV RUSTUP_HOME="/usr/local/share/rustup"
    5.18+# stage1
    5.19+RUN ./bootstrap.sh
    5.20+ENV PATH="$PATH:/usr/local/share/cargo/bin"
    5.21+RUN .stash/bin/sk make rustup
    5.22+RUN rustup update
    5.23+# dev rustc components
    5.24+RUN rustup default nightly
    5.25+RUN rustup component add --toolchain nightly rust-src rust-analyzer rustc-dev llvm-tools-preview
    5.26+RUN .stash/bin/sk make sbcl
    5.27+RUN .stash/bin/sk make quicklisp
    5.28+RUN .stash/bin/sk make sbcl-install
    5.29+RUN .stash/bin/sk make tree-sitter
    5.30+RUN .stash/bin/sk make tree-sitter-langs
    5.31+RUN .stash/bin/sk make emacs-mini
    5.32+RUN .stash/bin/sk make emacs-install
    5.33+RUN .stash/bin/sk make rocksdb
    5.34+RUN .stash/bin/sk make rocksdb-install
    5.35+#ADD etc/sbclrc /etc/sbclrc
    5.36+#COPY etc/skel/ /etc/skel/
    5.37+#ADD etc/shells /etc/
    5.38+RUN useradd --system -s /usr/bin/bash -u ${ID} -k /etc/skel -m ${DEV}
    5.39+RUN groupadd -g 128 engineer -U ${DEV}
    5.40+RUN groupadd -g 256 operator -U ${DEV}
    5.41+# RUN make core-install
    5.42+WORKDIR /usr/local/src
    5.43+RUN cp -rf core/lisp /usr/local/share/lisp/core
    5.44+RUN rm -rf ./*
    5.45+RUN chown -R ${DEV}:engineer /usr/local/share/
    5.46+RUN chown -R ${DEV}:engineer /usr/local/src/
    5.47+RUN chown -R ${DEV}:engineer /usr/local/bin/
    5.48+RUN chown -R ${DEV}:engineer /usr/local/etc/
    5.49+RUN chown -R ${DEV}:engineer /usr/local/man/
    5.50+USER ${DEV}
    5.51+WORKDIR ${DEV_HOME}
    5.52+RUN hg clone https://vc.compiler.company/comp/infra
    5.53+RUN hg clone https://vc.compiler.company/comp/core
    5.54+ENV DEV=${DEV}
    5.55+ENV DEV_ID=${ID}
    5.56\ No newline at end of file
     6.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2+++ b/Containerfile.fedora.arm64v8	Fri Jun 14 19:15:37 2024 +0000
     6.3@@ -0,0 +1,1 @@
     6.4+FROM arm64v8/fedora:latest
     6.5\ No newline at end of file
     7.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2+++ b/Containerfile.mail	Fri Jun 14 19:15:37 2024 +0000
     7.3@@ -0,0 +1,1 @@
     7.4+FROM stalwartlabs/mail-server:latest
     7.5\ No newline at end of file
     8.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2+++ b/Containerfile.operator	Fri Jun 14 19:15:37 2024 +0000
     8.3@@ -0,0 +1,2 @@
     8.4+FROM localhost/box:latest
     8.5+RUN infra/scripts/wg-gen-keys.sh private.key public.key
     8.6\ No newline at end of file
     9.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2+++ b/Containerfile.ubuntu	Fri Jun 14 19:15:37 2024 +0000
     9.3@@ -0,0 +1,3 @@
     9.4+FROM ubuntu:latest
     9.5+RUN apt-get update
     9.6+RUN apt -y install git ssh python3-pip mercurial
    10.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2+++ b/Containerfile.vc	Fri Jun 14 19:15:37 2024 +0000
    10.3@@ -0,0 +1,4 @@
    10.4+FROM octobus/heptapod:latest
    10.5+RUN gitlab-ctl upgrade
    10.6+# TODO: configure instance here, pull from comp/etc
    10.7+# COPY etc/gitlab/gitlab.rb /etc/gitlab/gitlab.rb
    10.8\ No newline at end of file
    11.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2+++ b/Containerfile.vc-runner	Fri Jun 14 19:15:37 2024 +0000
    11.3@@ -0,0 +1,8 @@
    11.4+FROM localhost/worker:latest
    11.5+USER root
    11.6+RUN curl -L --output /usr/local/bin/gitlab-runner https://download.heptapod.net/runner/runner/latest/binaries/heptapod-runner-linux-amd64
    11.7+ARG RUNNER_TOKEN
    11.8+RUN chmod +x /usr/local/bin/gitlab-runner
    11.9+RUN echo ${WORKER_USER}
   11.10+RUN echo ${WORKER_HOME}
   11.11+RUN gitlab-runner install --user=${WORKER_USER} --working-directory=${WORKER_HOME}
   11.12\ No newline at end of file
    12.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2+++ b/Containerfile.worker	Fri Jun 14 19:15:37 2024 +0000
    12.3@@ -0,0 +1,30 @@
    12.4+FROM localhost/alpine:latest
    12.5+# VOLUME /opt/store
    12.6+# VOLUME /opt/stash
    12.7+# ADD etc/skel/* /etc/skel/
    12.8+ARG ID=908
    12.9+ARG WORKER=worker
   12.10+ARG WORKER_HOME=/home/${WORKER}
   12.11+# TODO: build sbcl for musl
   12.12+RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf clang m4 tree-sitter sbcl
   12.13+RUN mkdir /usr/share/lisp
   12.14+RUN mkdir /usr/local/share/lisp
   12.15+WORKDIR /usr/local/src
   12.16+RUN hg clone https://vc.compiler.company/comp/infra
   12.17+RUN hg clone https://vc.compiler.company/comp/core
   12.18+WORKDIR infra
   12.19+RUN scripts/get-sk.sh
   12.20+ENV CARGO_HOME="/usr/local/share/cargo"
   12.21+ENV RUSTUP_HOME="/usr/local/share/rustup"
   12.22+ENV PATH="$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin"
   12.23+# RUN sk make sbcl sbcl-install quicklisp rustup tree-sitter-langs rocksdb
   12.24+RUN make sbcl-install-gencgc
   12.25+RUN make quicklisp-install
   12.26+RUN make rocksdb-install
   12.27+RUN adduser -D -u ${ID} -k /etc/skel ${WORKER}
   12.28+USER ${WORKER}
   12.29+WORKDIR ${WORKER_HOME}
   12.30+ENV WORKER=${WORKER}
   12.31+ENV WORKER_ID=${ID}
   12.32+ENV WORKER_HOME=${WORKER_HOME}
   12.33+ENTRYPOINT ["sh"]
   12.34\ No newline at end of file