Sign inSign up

danielneto/maas

By danielneto

Updated about 7 years ago

Simple MaaS (Metal as a Service) region controller

Image
0

256

danielneto/maas repository overview

Docker MAAS

Dockerfile to create a simple MAAS (Metal as a Service) region controller image.

The timezone is set to Sao Paulo.

Disable SELinux

if you have SELinux running, set it to Permissive or Disable it (reboot required)

$ sudo setenforce Permissive

Maybe, there is a way to make it work with SELinux, but I'm lazy ;-)

How to run

Now whitout giving extra privileges:

$ sudo docker run -td --name maas \
--security-opt seccomp=unconfined \
--tmpfs /run --tmpfs /run/lock \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
danielneto/maas

But, if you don't care about giving privileges to a container:

$ sudo docker run -td --privileged --name maas -v /sys/fs/cgroup:/sys/fs/cgroup:ro danielneto/maas

Persisting MAAS information

To persist the MAAS information (configurations and databases) you can create
volumes and use them as mount points in your container.
So, even if you remove the container (or it crashes somehow), you keep the
files inside those volumes.

$ sudo docker volume create maas-etc
$ sudo docker volume create maas-var

And then run

$ sudo docker run -td --name maas \
--mount source=maas-etc,target=/etc \
--mount source=maas-var,target=/var \
--security-opt seccomp=unconfined \
--tmpfs /run --tmpfs /run/lock \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
danielneto/maas

Tag summary

Content type

Image

Digest

Size

199.2 MB

Last updated

about 7 years ago

docker pull danielneto/maas