nsupdate.info
nsupdate.info copied to clipboard
Add Dockerfile config
This adds the ability to create docker images for this project.
You probably want to change the maintainer names in the Makefile
and the build/Dockerfile
to your dockerhub user.
Use make test
to run a local dev build of the project while developing and testing the image.
When ready, tag the current version using git and run make prod
to create a production image ready to be pushed to the docker registry.
Originally based on the work done by: https://github.com/KebinuChiousu/docker-nsupdate
Not sure I want that because I can't maintain it (I don't use docker).
@elnappo what do you think?
We could move it into a /contrib
folder?
Could this live inside a misc/contrib/docker/
directory?
Done, PR updated!
Quick instructions on how to use:
- install docker
-
cd misc/contrib/docker
-
make test
-> build and run a dev version -
docker ps
-> service will be running on a random port, check the output and try to open on localhost to see if it works -
git tag -a 0.12.0
thenmake
-> build a prod version (make sure to tag first to get a nice name) -
docker login
thenmake release
-> release on docker registry
@elnappo can you review also?