changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.box

changeset 1: 0d37b97f681e
parent: 98aa8d30816a
child: ebe8eace7f0a
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 16 Jun 2024 00:18:07 -0400
permissions: -rw-r--r--
description: box updates
1 FROM localhost/archlinux:latest
2 RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy sbcl liburing libxkbcommon --noconfirm
3 # custom
4 ARG DEV=dev
5 ARG DEV_HOME=/home/${DEV}
6 ARG ID=808
7 # stage0
8 RUN mkdir -p /usr/share/lisp /usr/local/share/lisp
9 WORKDIR /usr/local/src
10 RUN hg clone https://vc.compiler.company/comp/infra
11 RUN hg clone https://vc.compiler.company/comp/core
12 WORKDIR infra
13 ENV CARGO_HOME="/usr/local/share/cargo"
14 ENV RUSTUP_HOME="/usr/local/share/rustup"
15 # stage1
16 RUN ./bootstrap.sh
17 ENV PATH="$PATH:/usr/local/share/cargo/bin"
18 RUN skel make rustup
19 RUN rustup update
20 # dev rustc components
21 RUN rustup default nightly
22 RUN rustup component add --toolchain nightly rust-src rust-analyzer rustc-dev llvm-tools-preview
23 # RUN skel make tree-sitter
24 # RUN skel make tree-sitter-langs
25 #ADD etc/sbclrc /etc/sbclrc
26 #COPY etc/skel/ /etc/skel/
27 #ADD etc/shells /etc/
28 RUN useradd --system -s /usr/bin/bash -u ${ID} -k /etc/skel -m ${DEV}
29 RUN groupadd -g 128 engineer -U ${DEV}
30 RUN groupadd -g 256 operator -U ${DEV}
31 RUN chown -R ${DEV}:engineer /usr/local/share/
32 RUN chown -R ${DEV}:engineer /usr/local/src/
33 RUN chown -R ${DEV}:engineer /usr/local/bin/
34 RUN chown -R ${DEV}:engineer /usr/local/etc/
35 RUN chown -R ${DEV}:engineer /usr/local/man/
36 WORKDIR /usr/local/src
37 USER ${DEV}
38 RUN cp -rf core/lisp /usr/local/share/lisp/core
39 RUN rm -rf ./*
40 WORKDIR ${DEV_HOME}
41 RUN mkdir .stash
42 RUN hg clone https://vc.compiler.company/comp/infra
43 RUN hg clone https://vc.compiler.company/comp/core
44 ENV DEV=${DEV}
45 ENV DEV_ID=${ID}