changelog shortlog graph tags branches files raw help

Mercurial > infra > pod / changeset: add alpine-infra

changeset 16: c5379e794140
parent 15: 21250ff5559c
child 17: 576882e9345a
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 07 Jul 2024 18:41:54 -0400
files: Containerfile.alpine Containerfile.alpine-infra Containerfile.worker skelfile
description: add alpine-infra
     1.1--- a/Containerfile.alpine	Sun Jul 07 15:10:40 2024 -0400
     1.2+++ b/Containerfile.alpine	Sun Jul 07 18:41:54 2024 -0400
     1.3@@ -1,2 +1,3 @@
     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
     1.7+RUN apk update
     1.8+RUN apk add --no-cache openssh mercurial wireguard-tools liburing libc6-compat coreutils
     2.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2+++ b/Containerfile.alpine-infra	Sun Jul 07 18:41:54 2024 -0400
     2.3@@ -0,0 +1,11 @@
     2.4+FROM localhost/alpine:latest
     2.5+RUN apk add --no-cache build-base zstd-dev sbcl git make linux-headers pkgconf m4 perl
     2.6+RUN hg clone https://vc.compiler.company/comp/infra
     2.7+WORKDIR infra
     2.8+RUN ./check.sh
     2.9+RUN mkdir -pv .stash/src
    2.10+RUN ./scripts/get-sbcl.sh && cd .stash/src/sbcl && echo \""2.4.6:$(git rev-parse --short HEAD)"\" > version.lisp-expr && ./make.sh --dynamic-space-size=8Gb --fancy && sh make-shared-library.sh && INSTALL_ROOT=/usr/local sh install.sh
    2.11+RUN ./scripts/get-rocksdb.sh && cd .stash/src/rocksdb && make shared_lib DISABLE_JEMALLOC=1 && make install-shared && cp -r include/* /usr/local/include/
    2.12+RUN ./scripts/dist-sbcl-binary.sh
    2.13+RUN ./scripts/dist-rocksdb-binary.sh
    2.14+# RUN ./scripts/quicklisp-install.sh
     3.1--- a/Containerfile.worker	Sun Jul 07 15:10:40 2024 -0400
     3.2+++ b/Containerfile.worker	Sun Jul 07 18:41:54 2024 -0400
     3.3@@ -1,25 +1,26 @@
     3.4 FROM localhost/alpine:latest
     3.5-# VOLUME /opt/store
     3.6-# VOLUME /opt/stash
     3.7-ARG ID=908
     3.8+ARG WORKER_ID=908
     3.9 ARG WORKER=worker
    3.10 ARG WORKER_HOME=/home/${WORKER}
    3.11-# TODO: build sbcl for musl
    3.12-RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf m4 mercurial
    3.13-RUN mkdir -p /usr/share/lisp /usr/local/share/lisp
    3.14-# COPY .stash/bin/ /usr/local/bin/
    3.15-# COPY .stash/lib/ /usr/local/lib/
    3.16-# COPY .stash/include/ /usr/local/include/
    3.17-# COPY .stash/share/ /usr/local/share/
    3.18-# COPY .stash/src/ /usr/local/src/
    3.19-# WORKDIR /usr/local/src/sbcl
    3.20+RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf m4 mercurial llvm
    3.21+RUN mkdir -pv /usr/share/lisp /usr/local/share/lisp
    3.22+RUN addgroup -g 128 engineer
    3.23+RUN addgroup -g 256 operator
    3.24+RUN addgroup -g 512 worker
    3.25+RUN adduser -D -u ${WORKER_ID} -G worker ${WORKER}
    3.26+RUN chown -R ${WORKER_ID}:worker /usr/local/
    3.27+RUN mkdir -pv ${WORKER_HOME}/.stash
    3.28+WORKDIR /usr/local/src
    3.29+RUN hg clone https://vc.compiler.company/comp/infra
    3.30+WORKDIR infra
    3.31 ENV CARGO_HOME="/usr/local/share/cargo"
    3.32 ENV RUSTUP_HOME="/usr/local/share/rustup"
    3.33 ENV PATH="$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin"
    3.34-RUN adduser -D -u ${ID} ${WORKER}
    3.35+# RUN ./bootstrap.sh
    3.36+# WORKDIR ${WORKER_HOME}
    3.37+# RUN rm -rf /usr/local/src/*
    3.38 USER ${WORKER}
    3.39-WORKDIR ${WORKER_HOME}
    3.40 ENV WORKER=${WORKER}
    3.41-ENV WORKER_ID=${ID}
    3.42+ENV WORKER_ID=${WORKER_ID}
    3.43 ENV WORKER_HOME=${WORKER_HOME}
    3.44 ENTRYPOINT ["sh"]
    3.45\ No newline at end of file
     4.1--- a/skelfile	Sun Jul 07 15:10:40 2024 -0400
     4.2+++ b/skelfile	Sun Jul 07 18:41:54 2024 -0400
     4.3@@ -7,4 +7,10 @@
     4.4 ((all ())
     4.5  (dev () #$podman build -f Containerfile.dev$#))
     4.6 :components
     4.7-((:containerfile "dev"))
     4.8+((:containerfile "scratch")
     4.9+ (:containerfile "alpine")
    4.10+ (:containerfile "archlinux")
    4.11+ (:containerfile "ubuntu")
    4.12+ (:containerfile "dev")
    4.13+ (:containerfile "operator")
    4.14+ (:containerfile "worker"))