Sign inSign up

radeksimko/cobbler

By radeksimko

Updated over 7 years ago

Image
0

2.2K

radeksimko/cobbler repository overview

docker-cobbler

Docker image for Cobbler.

Purpose

The main motivation behind this Docker image was to have an image that can be used as a target when running Terraform Cobbler Provider acceptance tests.

Do NOT run anywhere near production, but feel free to fork and create your own production-ready image, and/or contribute back.

Endpoints

How

How to Pull
docker pull radeksimko/cobbler
How to Build

In case you prefer to build things yourselves for any reason:

docker build . -t radeksimko/cobbler
How to Launch
docker run -d \
	--cap-add SYS_ADMIN \
	-p 443:443 \
	--name cobbler \
	radeksimko/cobbler
How to Stop Gracefully
docker exec -i cobbler /usr/sbin/init 0
How to import OS
docker exec -ti cobbler wget -O /tmp/ubuntu-14.04-server-amd64 http://old-releases.ubuntu.com/releases/14.04.2/ubuntu-14.04-server-amd64.iso
docker exec -i cobbler 7z x -o/workspace/ubuntu /tmp/ubuntu-14.04-server-amd64
docker exec -i cobbler cobbler import --name Ubuntu-14.04 --breed ubuntu --os-version=trusty --path /workspace/ubuntu
docker exec -i cobbler cobbler sync

Why

systemd

Most Docker images avoid systemd when there's a single process to launch inside the container. Unfortunately Cobbler requires more than a single process, hence there's need for a service manager such as systemd inside the container.

Making systemd work inside Docker requires non-trivial changes in the image and the way it runs.

Tag summary

Content type

Image

Digest

Size

163.8 MB

Last updated

over 7 years ago

docker pull radeksimko/cobbler