changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / containers/Containerfile.box

changeset 231: 077285a41626
parent: 290f6f651c37
child: 8b62bc1ae25c
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 26 May 2024 19:00:09 +0000
permissions: -rw-r--r--
description: get-sk.sh
1 FROM localhost/archlinux:latest
2 RUN --network=host pacman -Sy uutils-coreutils sysstat iotop imagemagick giflib libgccjit libxaw snappy sbcl liburing libxkbcommon nuklear --noconfirm
3 # VOLUME /opt/store
4 # VOLUME /opt/stash
5 # custom
6 ARG DEV=dev
7 ARG DEV_HOME=/home/${DEV}
8 ARG ID=808
9 # stage0
10 RUN mkdir -p /usr/share/lisp /usr/local/share/lisp
11 WORKDIR /usr/local/src
12 RUN hg clone https://vc.compiler.company/comp/infra
13 RUN hg clone https://vc.compiler.company/comp/core
14 WORKDIR infra
15 RUN mkdir .stash
16 RUN scripts/get-sk.sh
17 ENV CARGO_HOME="/usr/local/share/cargo"
18 ENV RUSTUP_HOME="/usr/local/share/rustup"
19 # stage1
20 RUN .stash/sk make rustup-install
21 ENV PATH="$PATH:/usr/local/share/cargo/bin"
22 RUN rustup update
23 # dev rustc components
24 RUN rustup default nightly
25 RUN rustup component add --toolchain nightly rust-src rust-analyzer rustc-dev llvm-tools-preview
26 # RUN sh scripts/install-nushell-pack.sh
27 # RUN sh scripts/install-emacs-pack.sh
28 # RUN sh scripts/install-sbcl-pack.sh
29 # RUN sh scripts/install-rocksdb-pack.sh
30 # RUN sh scripts/install-cargo-tools.sh
31 RUN .stash/sk make sbcl-install
32 RUN .stash/sk make quicklisp-install
33 RUN make tree-sitter-install
34 RUN make tree-sitter-langs-install
35 RUN make emacs-build-mini
36 RUN make emacs-install
37 RUN .stash/sk make rocksdb
38 RUN make rocksdb-install
39 #ADD etc/sbclrc /etc/sbclrc
40 #COPY etc/skel/ /etc/skel/
41 #ADD etc/shells /etc/
42 RUN useradd --system -s /usr/bin/bash -u ${ID} -k /etc/skel -m ${DEV}
43 RUN groupadd -g 128 engineer -U ${DEV}
44 RUN groupadd -g 256 operator -U ${DEV}
45 # RUN make core-install
46 WORKDIR /usr/local/src
47 RUN cp -rf core/lisp /usr/local/share/lisp/core
48 RUN rm -rf ./*
49 RUN chown -R ${DEV}:engineer /usr/local/share/
50 RUN chown -R ${DEV}:engineer /usr/local/src/
51 RUN chown -R ${DEV}:engineer /usr/local/bin/
52 RUN chown -R ${DEV}:engineer /usr/local/etc/
53 RUN chown -R ${DEV}:engineer /usr/local/man/
54 USER ${DEV}
55 WORKDIR ${DEV_HOME}
56 RUN hg clone https://vc.compiler.company/comp/infra
57 RUN hg clone https://vc.compiler.company/comp/core
58 ENV DEV=${DEV}
59 ENV DEV_ID=${ID}