Name: opensnp.org-docker
Owner: openSNP
Description: null
Created: 2015-10-11 10:04:15.0
Updated: 2017-06-09 10:44:05.0
Pushed: 2018-01-09 18:05:00.0
Homepage: https://opensnp.org/
Size: 30
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Currently two images - a opensnp.org-docker image and a dev image. The opensnp.org-docker image in the root folder pulls all gems and other dependencies. The dev image adds a few dummy files so that you can run the image in a local container.
Start the docker server (screen/tmux/service if your system supports that)
docker daemon
Then in the root folder:
docker build -t opensnp.org-docker .
This builds the opensnp.org-docker image and sets the name to opensnp.org-docker. This step takes ~10 minutes since it installs all dependencies and gems.
Then to build the dev image:
cd dev_image
docker build -t dev .
To see all images:
docker images
This should show two images, one named opensnp.org-docker and one named dev.
Now you can either build a container based on the dev image or on the opensnp.org-docker image.
docker run dev
To run with environmental variables, in this case setting FOO to bar:
docker run -e FOO=bar dev