# HG changeset patch # User Richard Westhaver # Date 1720392114 14400 # Node ID c5379e7941408318e9dfc2f4f3a92377156d90fd # Parent 21250ff5559ce53aa8ae64c231f08853f3123734 add alpine-infra diff -r 21250ff5559c -r c5379e794140 Containerfile.alpine --- a/Containerfile.alpine Sun Jul 07 15:10:40 2024 -0400 +++ b/Containerfile.alpine Sun Jul 07 18:41:54 2024 -0400 @@ -1,2 +1,3 @@ FROM alpine:latest -RUN apk add --no-cache openssh mercurial wireguard-tools liburing libc6-compat coreutils \ No newline at end of file +RUN apk update +RUN apk add --no-cache openssh mercurial wireguard-tools liburing libc6-compat coreutils diff -r 21250ff5559c -r c5379e794140 Containerfile.alpine-infra --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Containerfile.alpine-infra Sun Jul 07 18:41:54 2024 -0400 @@ -0,0 +1,11 @@ +FROM localhost/alpine:latest +RUN apk add --no-cache build-base zstd-dev sbcl git make linux-headers pkgconf m4 perl +RUN hg clone https://vc.compiler.company/comp/infra +WORKDIR infra +RUN ./check.sh +RUN mkdir -pv .stash/src +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 +RUN ./scripts/get-rocksdb.sh && cd .stash/src/rocksdb && make shared_lib DISABLE_JEMALLOC=1 && make install-shared && cp -r include/* /usr/local/include/ +RUN ./scripts/dist-sbcl-binary.sh +RUN ./scripts/dist-rocksdb-binary.sh +# RUN ./scripts/quicklisp-install.sh diff -r 21250ff5559c -r c5379e794140 Containerfile.worker --- a/Containerfile.worker Sun Jul 07 15:10:40 2024 -0400 +++ b/Containerfile.worker Sun Jul 07 18:41:54 2024 -0400 @@ -1,25 +1,26 @@ FROM localhost/alpine:latest -# VOLUME /opt/store -# VOLUME /opt/stash -ARG ID=908 +ARG WORKER_ID=908 ARG WORKER=worker ARG WORKER_HOME=/home/${WORKER} -# TODO: build sbcl for musl -RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf m4 mercurial -RUN mkdir -p /usr/share/lisp /usr/local/share/lisp -# COPY .stash/bin/ /usr/local/bin/ -# COPY .stash/lib/ /usr/local/lib/ -# COPY .stash/include/ /usr/local/include/ -# COPY .stash/share/ /usr/local/share/ -# COPY .stash/src/ /usr/local/src/ -# WORKDIR /usr/local/src/sbcl +RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf m4 mercurial llvm +RUN mkdir -pv /usr/share/lisp /usr/local/share/lisp +RUN addgroup -g 128 engineer +RUN addgroup -g 256 operator +RUN addgroup -g 512 worker +RUN adduser -D -u ${WORKER_ID} -G worker ${WORKER} +RUN chown -R ${WORKER_ID}:worker /usr/local/ +RUN mkdir -pv ${WORKER_HOME}/.stash +WORKDIR /usr/local/src +RUN hg clone https://vc.compiler.company/comp/infra +WORKDIR infra ENV CARGO_HOME="/usr/local/share/cargo" ENV RUSTUP_HOME="/usr/local/share/rustup" ENV PATH="$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin" -RUN adduser -D -u ${ID} ${WORKER} +# RUN ./bootstrap.sh +# WORKDIR ${WORKER_HOME} +# RUN rm -rf /usr/local/src/* USER ${WORKER} -WORKDIR ${WORKER_HOME} ENV WORKER=${WORKER} -ENV WORKER_ID=${ID} +ENV WORKER_ID=${WORKER_ID} ENV WORKER_HOME=${WORKER_HOME} ENTRYPOINT ["sh"] \ No newline at end of file diff -r 21250ff5559c -r c5379e794140 skelfile --- a/skelfile Sun Jul 07 15:10:40 2024 -0400 +++ b/skelfile Sun Jul 07 18:41:54 2024 -0400 @@ -7,4 +7,10 @@ ((all ()) (dev () #$podman build -f Containerfile.dev$#)) :components -((:containerfile "dev")) +((:containerfile "scratch") + (:containerfile "alpine") + (:containerfile "archlinux") + (:containerfile "ubuntu") + (:containerfile "dev") + (:containerfile "operator") + (:containerfile "worker"))