This Docker container runs MunkiWebAdmin. The container expects a linked PostgreSQL database container and that your munki repo is mounted in /munki_repo
573
This Docker container runs MunkiWebAdmin. The container expects a linked PostgreSQL database container and that your munki repo is mounted in /munki_repo
Several options, such as the timezone and admin password are customizable using environment variables.
#Postgres container You must run the PostgreSQL container before running the munkiwebadmin container. Currently there is support only for PostgreSQL. I use the stackbrew postgres container from the Docker Hub, but you can use your own. The app container expects the following environment variables to connect to a database:
See this blog post for an example workflow using the postgres container. The setup_db.sh script in the GitHub repo will create the database tables for you. The official guide on linking containers is also very helpful.
$ docker pull postgres
$ docker run --name="postgres-munkiwebadmin" -d postgres
# Edit the setup.db script from the github repo to change the database name, user and password before running it.
$ ./setup_db.sh
#Image Creation
$ docker build -t="groob/munkiwebadmin" .
#Running the MunkiWebAdmin Container
$ docker run -d --name="munkiwebadmin" \
-p 80:80 \
--link postgres-munkiwebadmin:db \
-v /tmp/munki_repo:/munki_repo \
-e ADMIN_PASS=pass \
-e DB_NAME=munkiwebadmin \
-e DB_USER=admin \
-e DB_PASS=password \
groob/munkiwebadmin
This assumes your Munki repo is mounted at /tmp/munki_repo.
#TODO
Content type
Image
Digest
sha256:ac9977948…
Size
294.3 MB
Last updated
almost 10 years ago
Requires Docker Desktop 4.37.1 or later.