-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/.git |
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,22 @@ | ||
FROM ubuntu | ||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y opam build-essential libgmp-dev z3 pkg-config zlib1g-dev | ||
RUN mkdir /etc/sudoers.d/ && \ | ||
echo 'opam ALL=(ALL:ALL) NOPASSWD:ALL' > /etc/sudoers.d/opam && \ | ||
chmod 440 /etc/sudoers.d/opam && \ | ||
chown root:root /etc/sudoers.d/opam && \ | ||
adduser --disabled-password --gecos '' opam && \ | ||
passwd -l opam && \ | ||
chown -R opam:opam /home/opam | ||
USER opam | ||
ENV HOME /home/opam | ||
WORKDIR /home/opam | ||
RUN opam init --disable-sandboxing | ||
RUN eval `opam env` && \ | ||
opam repository add rems https://github.com/rems-project/opam-repository.git && \ | ||
opam install -y sail | ||
COPY --chown=opam docker_entry_point.sh /home/opam/ | ||
RUN chmod +x docker_entry_point.sh | ||
WORKDIR /data | ||
ENTRYPOINT ["/home/opam/docker_entry_point.sh"] |
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,2 @@ | ||
#!/bin/sh | ||
eval `opam env` && sail $* |