tehtbl / docker-ubuntu

Container to test Ansible roles in, including capabilities to use systemd facilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Ubuntu Systemd

This Dockerfile can build containers capable to use systemd.

Howto

  • adjust files env.config and env.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

@tehtbl

Sources

This work is based on the great work of many people, e.g. robertdebock and geerlingguy

About

Container to test Ansible roles in, including capabilities to use systemd facilities.

License:GNU General Public License v3.0


Languages

Language:Makefile 81.3%Language:Dockerfile 18.7%