Skip to content

Docker container for Bugzilla 5.0 relying on a database container

License

Notifications You must be signed in to change notification settings

gameldar/bugzilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bugzilla - Docker Container

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).

Steps

1. Create a data-only container

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.

2. Create a PostgreSQL container

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

3. Start the Bugzilla container

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.

About

Docker container for Bugzilla 5.0 relying on a database container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •