Helge Rausch 05ae540a7f Fix CRON environment (#28)
CRON seems to only be able to access the environment variables if given access to `/etc/container_environment*`. This is necessary for the rake tasks run by CRON to be able to do their jobs. Herewith, we shall grant access by adding the  `app` user to the `docker_env` group. ✍️
2023-01-05 13:20:12 +01:00
2023-01-04 11:56:17 +01:00
2018-01-09 10:04:59 -08:00
2015-10-29 09:04:07 +01:00
2022-11-23 15:09:34 +01:00
2023-01-05 13:20:12 +01:00
2018-04-02 21:05:30 +02:00
2022-11-23 15:09:34 +01:00

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

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.

Building the dev container

docker run dev

To run with environmental variables, in this case setting FOO to bar:

docker run -e FOO=bar dev
Description
No description provided
Readme 94 KiB
Languages
Dockerfile 71.3%
Shell 28.7%