changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / Containerfile.box

changeset 155: a616542e54d0
parent: 42dad35b9a1b
child: 8cb50da6f544
author: Richard Westhaver <ellis@rwest.io>
date: Sat, 27 Jan 2024 20:13:27 -0500
permissions: -rw-r--r--
description: nushell moves
1 FROM infra/archlinux
2 VOLUME /store
3 VOLUME /stash
4 # custom
5 ARG DEV=dev
6 ARG DEV_HOME=/home/${DEV}
7 ARG ID=808
8 # stage0
9 RUN mkdir -p /usr/share/lisp /usr/local/share/lisp
10 WORKDIR /usr/local/src
11 RUN hg clone https://vc.compiler.company/comp/infra
12 RUN hg clone https://vc.compiler.company/comp/core
13 WORKDIR infra
14 RUN make build
15 ENV CARGO_HOME="/usr/local/share/cargo"
16 ENV RUSTUP_HOME="/usr/local/share/rustup"
17 # stage1
18 RUN make rustup-install
19 ENV PATH="$PATH:/usr/local/share/cargo/bin"
20 RUN rustup update && rustup default nightly
21 RUN sh scripts/install-nushell-pack.sh
22 RUN sh scripts/install-emacs-pack.sh
23 RUN sh scripts/install-sbcl-pack.sh
24 RUN sh scripts/install-rocksdb-pack.sh
25 RUN sh scripts/install-cargo-tools.sh
26 RUN make quicklisp-install
27 RUN make tree-sitter-langs-install
28 ADD etc/sbclrc /etc/sbclrc
29 RUN make core-install
30 RUN cd .. && rm -rf infra core
31 ADD etc/skel/* /etc/skel/
32 ADD etc/shells /etc/
33 RUN useradd --system -s /usr/local/bin/nu -u ${ID} -k /etc/skel -m ${DEV}
34 RUN groupadd -g 128 engineer -U ${DEV}
35 RUN groupadd -g 256 operator -U ${DEV}
36 USER ${DEV}
37 WORKDIR ${DEV_HOME}
38 RUN hg clone https://vc.compiler.company/comp/infra
39 ENV DEV_USER=${DEV}
40 ENV DEV_ID=${ID}
41 ENTRYPOINT ["/usr/local/bin/nu"]
42 CMD ["-i"]