Docker Ubuntu Systemd
This Dockerfile can build containers capable to use systemd.
Howto
-
adjust files
env.config
andenv.deploy
-
set/export
BUILD_DIST
-
Build the container:
make build
-
Build and publish the container:
make release
-
Publish a container to docker-hub, includes login to the hub:
make publish
-
Run the container:
make run
-
Build and run the container:
make up
-
Stop the running container:
make stop
-
Build the container with differnt config and deploy file:
make cnf=env2.config dpl=env2.deploy build
-
Examples:
BUILD_DIST=xenial make build-nc publish-latest
BUILD_DIST=bionic make release
for r in bionic focal devel {18,20}.04; do echo "${r}"; BUILD_DIST="${r}" make release; done
License
GNU General Public License v3.0
Author Information
Sources
This work is based on the great work of many people, e.g. robertdebock and geerlingguy