Configure a running Bugzilla system using Docker
- Running latest Centos
- Preconfigured with initial data and test product
- Running Apache2 and MySQL Community Server 5.6
- Code resides in `/home/bugzilla/devel/htdocs/bugzilla and can be updated, diffed, and branched using standard git commands
- Visit Docker and get docker up and running on your system.
Before building, you will need to change value in the checksetup_answers.txtfile to match the IP address of the Docker Machine VM. You can find the IP address by runningdocker-machine ip`.
For example, using a text editor, change the following line in
checksetup_answers.txt from:
$answer{'urlbase'} = 'http://localhost:8080/bugzilla/';
to
$answer{'urlbase'} = 'http://192.168.59.103:8080/bugzilla/';
To build a fresh image, just change to the directory containing the checked out files and run the below command:
$ docker-compose buildTo start a new container (or rerun your last container) you simply do:
$ docker-compose upThis will stay in the foreground and you will see the output from supervisord. You
can use the -d option to run the container in the background.
To stop, start or remove the container that was created from the last run, you can do:
$ docker-compose stop
$ docker-compose start
$ docker-compose rmIf you are using Linux, you can simply point your browser to
http://localhost:8080/bugzilla to see the the Bugzilla home page.
If using Docker Machine, you will need to use the IP address of the VM. You can
find the IP address using the docker-machine ip command. For example:
$ docker-machine ip
192.168.59.103So would then point your browser to http://192.168.59.103:8080/bugzilla.
The Administrator username is admin@bugzilla.org and the password is password.
You can use the Administrator account to creat other users, add products or
components, etc.
You can also shell into the container using docker exec command. You will need to
determine the container name or ID of the running container. Here is an example:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2522438509d3 master_bugzilla "/usr/bin/supervisord" 38 seconds ago Up 37 seconds 5900/tcp, 0.0.0.0:8080->80/tcp master_bugzilla_1
$ docker exec -it master_bugzilla_1 su - bugzlla
Last login: Thu Jan 21 14:24:06 UTC 2016
[bugzilla@2522438509d3 ~]$- Enable SSL support.