mirror of
https://github.com/chenasraf/opensnp.org-docker.git
synced 2026-05-18 01:49:07 +00:00
New README
This commit is contained in:
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Docker images for opensnp.org
|
||||
|
||||
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.
|
||||
|
||||
# How to build the images
|
||||
|
||||
In a screen session:
|
||||
|
||||
docker daemon
|
||||
|
||||
to run the docker server. 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
|
||||
|
||||
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.
|
||||
|
||||
# Building the dev container
|
||||
|
||||
docker create dev
|
||||
docker run dev
|
||||
|
||||
Reference in New Issue
Block a user