Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/grahampugh/docker-mwa2

A Docker Container for Greg Neagle's MunkiWebAdmin2 web service
https://github.com/grahampugh/docker-mwa2

docker-container munki munkiwebadmin2

Last synced: 2 months ago
JSON representation

A Docker Container for Greg Neagle's MunkiWebAdmin2 web service

Awesome Lists containing this project

README

        

docker-mwa2
==========

This Docker container runs [MunkiWebAdmin2](https://github.com/munki/mwa2).
The container expects that your munki repo is mounted in `/munki_repo`.

To retain data, you should also create a folder on your host for the SQLite database
to store its data.

In order to function fully, munki-tools needs to be accessible (specifically,
the `makecatalogs` command). This is achievable
by running a munki container and linking it.

Several options, such as the timezone and admin password are customisable using environment variables.

---

# Munki container

You can run a linked munki container as follows:

```bash
docker run -d --restart=always --name="munki" -v $MUNKI_REPO:/munki_repo \
-p 8000:80 -h munki groob/docker-munki
```

This exposes the Munki repository at http://your-host:8000/repo. You could change the port 8000 to 80 if you are not running an existing web service on port 80.

The official guide on [linking containers](https://docs.docker.com/userguide/dockerlinks/) is very helpful.

---

# Image Creation

If you want to edit this container in any way, you can clone this repository, make your edits, and then build it as follows:

```
$ docker build -t grahamrpugh/mwa2 .
```

---

# Running the MunkiWebAdmin2 Container

Run the following command. You need to set the host values of `$MUNKI_REPO` and
`$MWA2_DB` either in a script or by altering the command:

```bash
docker run -d --restart=always --name mwa2 \
-p 8000:8000 \
-v $MUNKI_REPO:/munki_repo \
-v $MWA2_DB:/mwa2-db \
grahamrpugh/mwa2
```

The default admin username is `admin` and the default password is `password`.