-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: master
Are you sure you want to change the base?
Conversation
6671709
to
ed87856
Compare
# 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 |
There was a problem hiding this comment.
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; \ |
There was a problem hiding this comment.
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
This adds a
Dockerfile
for building under Docker. TheREADME.rdoc
has been updated to reflect building under Docker or manually.