Skip to content

Instantly share code, notes, and snippets.

@edwintorok
Created April 11, 2016 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwintorok/b8bf92acc6ba9aecadcb25f0f492e8e2 to your computer and use it in GitHub Desktop.
Save edwintorok/b8bf92acc6ba9aecadcb25f0f492e8e2 to your computer and use it in GitHub Desktop.
#!/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
FROM ocaml/opam:debian
COPY install.sh /home/opam/
ENTRYPOINT ["/home/opam/install.sh"]
#!/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