Skip to content

Commit a60c707

Browse files
authored
[devcontainer] install ocmal stuff (#4798)
For gc proposal spec test
1 parent 520410d commit a60c707

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ ENV TZ=Asia/Shanghai
1212
RUN apt-get update \
1313
&& apt-get upgrade -y
1414

15-
RUN apt-get install -y apt-transport-https apt-utils build-essential \
16-
ca-certificates ccache clang-format-14 curl file g++-multilib git gnupg \
17-
libgcc-12-dev lib32gcc-12-dev libzstd-dev lsb-release \
18-
ninja-build ocaml ocamlbuild \
19-
python3-venv python3-pip \
20-
software-properties-common tree tzdata \
21-
unzip valgrind vim wget zip --no-install-recommends \
22-
&& apt-get clean -y \
23-
&& rm -rf /var/lib/apt/lists/*
15+
RUN apt-get update \
16+
&& apt-get install -y apt-transport-https apt-utils build-essential \
17+
ca-certificates ccache clang-format-14 curl file g++-multilib git gnupg \
18+
libgcc-12-dev lib32gcc-12-dev libzstd-dev lsb-release \
19+
ninja-build ocaml ocamlbuild opam \
20+
python3-venv python3-pip \
21+
software-properties-common tree tzdata \
22+
unzip valgrind vim wget zip --no-install-recommends
2423

2524
WORKDIR /opt
2625

.devcontainer/finalize.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ echo "Running finalize script..."
33
#
44
# Python Package Installation
55
#
6+
echo "--- Installing Python Dependencies\n"
67

78
# Upgrade pip first
89
python3 -m pip install --no-cache-dir --break-system-packages --upgrade pip
910
# Install required packages
1011
pip3 install --no-cache-dir --break-system-packages -r .devcontainer/requirements.txt
1112

13+
echo "--- Installing Ocaml stuff\n"
14+
opam init --yes --shell-setup
15+
eval $(opam env --switch=default)
16+
opam install --yes dune menhir
17+
1218
echo "Finalize script completed. ✅"

0 commit comments

Comments
 (0)