forked from BinaryAnalysisPlatform/bap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates CI tools (BinaryAnalysisPlatform#787)
* updates CI tools This PR adds 7 docker files and 3 vagrant files that are using in our CI system to test bap installability. Also this PR updates our `opam-release.sh` script, that is now capable of performing the whole update procedure of the OPAM repo in fully automated way (you need to create only PR manually) * adds a script to delete all non-master packages it keeps the conf-* packages so far, but probably we can get rid of them too, they all landed up in the upstream long time ago, and most likely we do not need to update them often, neither do they point to the git repositories.
- Loading branch information
Showing
14 changed files
with
319 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ocaml/opam:debian | ||
MAINTAINER Ivan Gotovchits <[email protected]> | ||
RUN sudo apt-get -y update && sudo apt-get -y install \ | ||
llvm-3.8-dev \ | ||
git \ | ||
libcurl4-gnutls-dev \ | ||
libgmp-dev \ | ||
zlib1g-dev \ | ||
binutils-multiarch \ | ||
clang \ | ||
time | ||
RUN opam init --auto-setup --comp=4.05.0 --yes | ||
RUN eval `opam config env` | ||
RUN LLVM_CONFIG=llvm-config-3.8 opam install conf-bap-llvm --yes | ||
RUN opam install conf-binutils | ||
RUN git clone https://github.com/binaryanalysisplatform/bap | ||
RUN opam pin add bap ./bap --yes | ||
RUN sudo apt-get install python-pip --yes | ||
RUN sudo pip install bap | ||
RUN opam install merlin ocp-indent --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ocaml/opam:debian | ||
MAINTAINER Ivan Gotovchits <[email protected]> | ||
RUN sudo apt-get -y update && sudo apt-get -y install \ | ||
llvm-3.8-dev \ | ||
git \ | ||
libcurl4-gnutls-dev \ | ||
libgmp-dev \ | ||
zlib1g-dev \ | ||
binutils-multiarch \ | ||
clang | ||
RUN opam init --auto-setup --comp=4.05.0 --yes | ||
RUN opam repo add bap git://github.com/BinaryAnalysisPlatform/opam-repository#testing | ||
RUN LLVM_CONFIG=llvm-config-3.8 opam install conf-bap-llvm --yes | ||
RUN OPAMJOBS=16 opam install bap --yes | ||
RUN sudo apt-get install python-pip --yes | ||
RUN sudo pip install bap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ocaml/opam:debian | ||
MAINTAINER Ivan Gotovchits <[email protected]> | ||
RUN sudo apt-get -y update && sudo apt-get -y install \ | ||
llvm-3.8-dev \ | ||
git \ | ||
libcurl4-gnutls-dev \ | ||
libgmp-dev \ | ||
zlib1g-dev \ | ||
binutils-multiarch \ | ||
clang | ||
RUN opam init --auto-setup --comp=4.05.0 --yes | ||
RUN opam repo add bap git://github.com/BinaryAnalysisPlatform/opam-repository#bap-1.4 | ||
RUN LLVM_CONFIG=llvm-config-3.8 opam install conf-bap-llvm --yes | ||
RUN OPAMJOBS=16 opam install bap --yes | ||
RUN sudo apt-get install python-pip --yes | ||
RUN sudo pip install bap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ubuntu:trusty | ||
MAINTAINER Ivan Gotovchits <[email protected]> | ||
RUN apt-get -y update && apt-get -y install \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
libx11-dev \ | ||
m4 \ | ||
pkg-config \ | ||
python-pip \ | ||
software-properties-common \ | ||
sudo \ | ||
unzip \ | ||
wget | ||
RUN add-apt-repository --yes ppa:avsm/ppa && apt-get update && apt-get -y install \ | ||
ocaml \ | ||
ocaml-native-compilers \ | ||
opam | ||
RUN useradd -m bap && echo "bap:bap" | chpasswd && adduser bap sudo | ||
RUN sed -i.bkp -e \ | ||
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \ | ||
/etc/sudoers | ||
USER bap | ||
WORKDIR /home/bap | ||
RUN opam init --auto-setup --comp=4.05.0 --yes | ||
RUN opam repo add bap git://github.com/BinaryAnalysisPlatform/opam-repository#bap-1.4 | ||
RUN opam update | ||
RUN OPAMJOBS=1 opam depext --install bap --yes | ||
RUN sudo pip install bap | ||
ENTRYPOINT ["opam", "config", "exec", "--"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:xenial | ||
MAINTAINER Ivan Gotovchits <[email protected]> | ||
RUN apt-get -y update && apt-get -y install \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
libx11-dev \ | ||
m4 \ | ||
pkg-config \ | ||
python-pip \ | ||
software-properties-common \ | ||
sudo \ | ||
unzip \ | ||
wget | ||
RUN apt-get -y install opam | ||
RUN useradd -m bap && echo "bap:bap" | chpasswd && adduser bap sudo | ||
RUN sed -i.bkp -e \ | ||
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \ | ||
/etc/sudoers | ||
USER bap | ||
WORKDIR /home/bap | ||
RUN opam init --auto-setup --comp=4.05.0 --yes | ||
RUN opam repo add bap git://github.com/BinaryAnalysisPlatform/opam-repository#testing | ||
RUN opam update | ||
RUN OPAMJOBS=1 opam depext --install bap --yes | ||
RUN sudo pip install bap | ||
ENTRYPOINT ["opam", "config", "exec", "--"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:xenial | ||
MAINTAINER Ivan Gotovchits <[email protected]> | ||
RUN apt-get -y update && apt-get -y install \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
libx11-dev \ | ||
m4 \ | ||
pkg-config \ | ||
python-pip \ | ||
software-properties-common \ | ||
sudo \ | ||
unzip \ | ||
wget | ||
RUN apt-get -y install opam | ||
RUN useradd -m bap && echo "bap:bap" | chpasswd && adduser bap sudo | ||
RUN sed -i.bkp -e \ | ||
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \ | ||
/etc/sudoers | ||
USER bap | ||
WORKDIR /home/bap | ||
RUN opam init --auto-setup --comp=4.05.0 --yes | ||
RUN opam repo add bap git://github.com/BinaryAnalysisPlatform/opam-repository#bap-1.4 | ||
RUN opam update | ||
RUN OPAMJOBS=1 opam depext --install bap --yes | ||
RUN sudo pip install bap | ||
ENTRYPOINT ["opam", "config", "exec", "--"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.