Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README and add Dockerfile #79

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Techno-coder
Copy link

This adds a Dockerfile for building under Docker. The README.rdoc has been updated to reflect building under Docker or manually.

@coveralls
Copy link

coveralls commented Feb 14, 2020

Coverage Status

Coverage remained the same at 33.071% when pulling 3ac4e4e on Techno-coder:add-docker into 97d96ac on NZOI:master.

@tom93 tom93 self-requested a review February 14, 2020 09:47
# Execution invocation:
# Privileged mode is required for control groups
# Must be invoked with '--network host' for port exposure
# docker run --privileged --network host -it nztrain:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-p / --expose should also be suitable no?

rm /var/run/redis/redis.pid; \
service postgresql stop

CMD service redis start; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we are better to run redis/postgres outside this container and tell the app where to find them via env vars - in host and bridge (default iirc) - means this script can be vastly simplified and we can take advantsge oh GH actions having coomunity support for booting these services

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants