-
-
Save edwintorok/b8bf92acc6ba9aecadcb25f0f492e8e2 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
sudo docker build --pull -t myapp . | |
sudo -E docker run -it -e USER="$USER" -e LOGNAME="$LOGNAME" -e SSH_AUTH_SOCK="$SSH_AUTH_SOCK" -v ~/.ssh:/home/opam/.ssh:ro -v "$SSH_AUTH_SOCK":"$SSH_AUTH_SOCK" myapp |
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
FROM ocaml/opam:debian | |
COPY install.sh /home/opam/ | |
ENTRYPOINT ["/home/opam/install.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
#!/bin/sh | |
export OPAMYES=true | |
export OPAMJOBS=8 | |
opam remote add example.com git+ssh://git.example.com/home/git/opamrepo.git | |
opam depext -u -i myapp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment