Bugzilla v5.0rc3 with a (Postgresql) Database Container and data-volume.
This is mostly based upon dklawren/docker-bugzilla and hbokh/docker-jira-postgresql. It has been changed so that the database is installed in a linked container and can be configured when the container is started. By default (and currently the only configuration I've tested) this expects a Postgresql database.
The following are a modification of the original instructions, Docker has moved on a bit since this was done (e.g. docker-compose would manage most of this).
Create a data-only container from Busybox (very small footprint) and name it "bugzilla_datastore": docker run -v /data --name=bugzilla_datastore -d busybox echo "PSQL Data"
NOTE: data-only containers don't have to run / be active to be used.
Any database container should work. I've tested with the official postgresql container.
The container can be run with the following (remembering to use the volume "bugzilla_datastore". Environment variables can be changed to whatever you like:
podman run --pod bugzilla --name postgresql -e POSTGRES_PASSWORD=bugs -e POSTGRES_USER=bugs -e POSTGRES_DB=bugs --volumes-from bugzilla_datastore postgres
The bugzilla container can be started now. The following environment variables are available at instantiation of the container:
[email protected]
ADMIN_PASSWORD=password
BUGS_DB_DRIVER=Pg
BUGS_DB_HOST=localhost
BUGS_DB_NAME=bugs
BUGS_DB_PASS=bugs
BUGS_DB_USER=bugs
BUGS_CONTEXT=http://localhost:8080
The container can be run with:
docker run -d --name bugzilla -p 8080:80 -e [email protected] --link postgresql:db gameldar/bugzilla
Bugzilla will start up and be available on http://localhost:8080/bugzilla/. You can then log in with the ADMIN_EMAIL and ADMIN_PASSWORD values and away you go.