File tree Expand file tree Collapse file tree 9 files changed +34
-62
lines changed Expand file tree Collapse file tree 9 files changed +34
-62
lines changed Original file line number Diff line number Diff line change 1
- FROM ocaml/opam:debian
1
+ FROM ocaml/opam:debian-ocaml-4.14
2
2
3
3
WORKDIR /home/opam
4
4
Original file line number Diff line number Diff line change 1
- FROM ocaml/opam:debian
1
+ FROM ocaml/opam:debian-ocaml-4.14
2
2
3
3
WORKDIR /home/opam
4
4
Original file line number Diff line number Diff line change 1
- FROM ocaml/opam2 :alpine
1
+ FROM ocaml/opam :alpine-ocaml-4.14
2
2
3
3
WORKDIR /home/opam
4
4
5
- RUN opam switch 4.09 \
6
- && eval "$(opam env)" \
7
- && opam remote set-url default https://opam.ocaml.org \
5
+ RUN opam remote set-url default https://opam.ocaml.org \
8
6
&& opam repo add bap git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing --all \
9
7
&& opam update \
10
- && opam depext --install bap --yes -j 1 \
11
- && opam clean -acrs \
12
- && rm -rf /home/opam/.opam/4.0[2-8] \
13
- && rm -rf /home/opam/.opam/4.09/.opam-switch/sources/* \
14
- && rm -rf /home/opam/opam-repository \
15
- && sudo apk add py-pip \
16
- && sudo pip install bap
8
+ && opam depext --install bap --yes -j 1
9
+
17
10
18
11
ENTRYPOINT ["opam" , "config" , "exec" , "--" ]
Original file line number Diff line number Diff line change 1
- FROM archlinux:latest
1
+ FROM ocaml/opam:archlinux-ocaml-4.14
2
2
3
- RUN pacman -Syu --noconfirm && pacman -S sudo --noconfirm \
4
- && useradd -m bap \
5
- && echo 'bap ALL=(ALL:ALL) NOPASSWD:ALL' > /etc/sudoers.d/bap \
6
- && su bap
7
-
8
- USER bap
9
- WORKDIR /home/bap
10
-
11
- RUN sudo pacman -S --noconfirm m4 git unzip make curl wget \
12
- diffutils patch make gcc pkgconfig llvm python2 \
13
- which clang radare2 \
14
- && wget https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh \
15
- && echo "" | sudo sh install.sh \
16
- && opam init --comp=4.09.1 --disable-sandboxing --yes \
17
- && eval "$(opam env)" \
18
- && opam repo add bap git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing --all \
19
- && opam update \
20
- && opam install bap --yes -j 1 \
21
- && opam clean -acrs \
22
- && rm -rf /home/opam/.opam/4.09.1/.opam-switch/sources/*
3
+ RUN opam remote set-url default https://opam.ocaml.org \
4
+ && opam repo add bap-testing git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing --all \
5
+ && opam update \
6
+ && opam depext --install bap --yes -j 1 \
7
+ && opam clean -acrs
23
8
24
9
ENTRYPOINT ["opam" , "config" , "exec" , "--" ]
Original file line number Diff line number Diff line change 1
- FROM ocaml/opam:debian
1
+ FROM ocaml/opam:debian-ocaml-4.14
2
2
3
3
WORKDIR /home/opam
4
4
5
5
RUN opam remote set-url default https://opam.ocaml.org \
6
- && opam repo add bap-testing git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing --all \
6
+ && opam repo add bap-testing git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing --all \
7
7
&& opam update \
8
8
&& opam depext --install bap --yes -j 1 \
9
9
&& opam clean -acrs
Original file line number Diff line number Diff line change 1
- FROM ocaml/opam2 :fedora
1
+ FROM ocaml/opam :fedora-ocaml-4.14
2
2
3
3
WORKDIR /home/opam
4
4
5
- RUN opam switch 4.09 \
6
- && eval "$(opam env)" \
7
- && opam remote set-url default https://opam.ocaml.org \
8
- && opam repo add bap git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing --all \
5
+ RUN opam remote set-url default https://opam.ocaml.org \
6
+ && opam repo add bap-testing git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing --all \
9
7
&& opam update \
10
8
&& opam depext --install bap --yes -j 1 \
11
- && opam clean -acrs \
12
- && rm -rf /home/opam/.opam/4.0[2-8,10] \
13
- && rm -rf /home/opam/.opam/4.09/.opam-switch/sources/* \
14
- && rm -rf /home/opam/opam-repository
9
+ && opam clean -acrs
15
10
16
11
ENTRYPOINT ["opam" , "config" , "exec" , "--" ]
Original file line number Diff line number Diff line change 1
- FROM ocaml/opam2 :ubuntu-18.04
1
+ FROM ocaml/opam :ubuntu-18.04-ocaml-4.14
2
2
3
3
WORKDIR /home/opam
4
4
@@ -7,15 +7,10 @@ RUN sudo apt-get update \
7
7
&& sudo add-apt-repository ppa:ivg/ghidra -y \
8
8
&& sudo apt-get install libghidra-dev -y \
9
9
&& sudo apt-get install libghidra-data -y \
10
- && opam switch 4.09 \
11
- && eval "$(opam env)" \
12
10
&& opam remote set-url default https://opam.ocaml.org \
13
11
&& opam repo add bap git+https://github.com/BinaryAnalysisPlatform/opam-repository --all \
14
12
&& opam update \
15
13
&& opam depext --install bap-extra --yes -j 1 \
16
- && opam clean -acrs \
17
- && rm -rf /home/opam/.opam/4.0[2-8,10] \
18
- && rm -rf /home/opam/.opam/4.09/.opam-switch/sources/* \
19
- && rm -rf /home/opam/opam-repository
14
+ && opam clean -acrs
20
15
21
16
ENTRYPOINT ["opam" , "config" , "exec" , "--" ]
Original file line number Diff line number Diff line change
1
+ FROM ocaml/opam:ubuntu-24.04-ocaml-4.14
2
+
3
+ WORKDIR /home/opam
4
+
5
+ RUN opam remote set-url default https://opam.ocaml.org \
6
+ && opam repo add bap git+https://github.com/BinaryAnalysisPlatform/opam-repository --all \
7
+ && opam update \
8
+ && opam depext --install bap --yes -j 1 \
9
+ && opam clean -acrs
10
+
11
+ ENTRYPOINT ["opam" , "config" , "exec" , "--" ]
Original file line number Diff line number Diff line change 1
- FROM ocaml/opam2 :ubuntu-16.04
1
+ FROM ocaml/opam :ubuntu-16.04-ocaml-4.14
2
2
3
3
WORKDIR /home/opam
4
4
5
- RUN sudo apt-get update && sudo apt-get install --yes python-pip \
6
- && opam switch 4.09 \
7
- && eval "$(opam env)" \
8
- && opam remote set-url default https://opam.ocaml.org \
5
+ RUN opam remote set-url default https://opam.ocaml.org \
9
6
&& opam repo add bap git+https://github.com/BinaryAnalysisPlatform/opam-repository --all \
10
7
&& opam update \
11
8
&& opam depext --install bap --yes -j 1 \
12
- && opam clean -acrs \
13
- && rm -rf /home/opam/.opam/4.0[2-8,10] \
14
- && rm -rf /home/opam/.opam/4.09/.opam-switch/sources/* \
15
- && rm -rf /home/opam/opam-repository \
16
- && sudo pip install bap
9
+ && opam clean -acrs
17
10
18
11
ENTRYPOINT ["opam" , "config" , "exec" , "--" ]
You can’t perform that action at this time.
0 commit comments