Skip to content

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