A make script used to build, tag and publish containers
Years ago I ran into the Makefile this project is based on, I've tried to find the original author. But with no succes. If you are the original author please let me know.
Creating, building and maintaining docker containers is tideous and pretty much the same every time. Automation is key here ;-) I almost always use Alpine linux as a base. So that is what's included.
- clone the repository
- Add your program to the app directory
- Add extra packages in the Dockerfile
- Change the entrypoint.sh to start your app
- run
make build
This will build your container - run
make run
This will start the container - run
make publish
if you want to publish it to a repository - run
make buildinc build
if you run local and want to auto increase the build count
If you just run make, all commands will be shown.
Check the files:
- config.env
- deploy.env
- Dockerfile
- entrypoint.sh
You can change the url using:
git remote set-url origin new.git.url/here
The are to some extent documented.
Happy coding. Matijs