Git Product home page Git Product logo

docker-bugzilla's Introduction

Docker Bugzilla

Configure a running Bugzilla system using Docker

Features

  • Running latest Centos
  • Preconfigured with initial data and test product
  • Running Apache2 and MySQL Community Server 5.6
  • Openssh server so you can ssh in to the system to make changes
  • Code resides in /home/bugzilla/devel/htdocs/bugzilla and can be updated, diffed, and branched using standard git commands

How to install Docker and Fig

Linux

  1. Visit Docker and get docker up and running on your system.

  2. Visit Fig to install Fig for managing Docker containers.

OSX

  1. Visit Docker and get docker up and running on your system.

  2. Visit Fig to install Fig for managing multiple related Docker containers.

  3. Start boot2docker in a terminal once it is installed. Ensure that you run the export DOCKER_HOST=... lines when prompted:

$ boot2docker start
$ export DOCKER_HOST=tcp://192.168.59.103:2375

Windows

  1. Install the Windows boot2docker installer
  2. Run the "Boot2Docker Start" shortcut on the startmenu (this inits the VM, starts it and connects to it)
  3. Run the following in the boot2docker VM as a one-off:
echo 'alias fig='"'"'docker run --rm -it \
        -v $(pwd):/app \
        -v /var/run/docker.sock:/var/run/docker.sock \
        -e FIG_PROJECT_NAME=$(basename $(pwd)) \
        dduportal/fig'"'" >> /home/docker/.ashrc
  1. Logout from the VM (ctrl+D)

Then all you need to do on later occasions is:

  1. Re-run "Boot2Docker Start" or from the console just enter:
boot2docker start && boot2docker ssh
  1. cd /c/Users/Username/src/bugzilla/contrib/docker (paths under c:\Users are automatically mapped by boot2docker from the client into the VM)
  2. fig build (and so on)`

Important boot2docker Notes

Due to an issue with installation of certain packages in Centos7 and the default storage driver (AUFS) used by boot2docker, we need to change the driver to devicemapper for the image build process to complete properly.

To do so, once you have boot2docker installed and the VM running, but before performing the build process, do:

$ boot2docker ssh
Boot2Docker version 1.4.1, build master : 86f7ec8 - Tue Dec 16 23:11:29 UTC 2014
Docker version 1.4.1, build 5bc2ff8
docker@boot2docker:~$ echo 'EXTRA_ARGS="--storage-driver=devicemapper"' | sudo tee -a /var/lib/boot2docker/profile
docker@boot2docker:~$ sudo /etc/init.d/docker restart

Also before building, you will need to change value in the checksetup_answers.txt file to match the IP address of the boot2docker VM. You can find the IP address by running boot2docker 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/';

How to build Bugzilla Docker image

To build a fresh image, just change to the directory containing the checked out files and run the below command:

$ fig build

How to start Bugzilla Docker image

To start a new container (or rerun your last container) you simply do:

$ fig up

This 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:

$ fig stop
$ fig start
$ fig rm

How to access the Bugzilla container

If you are using Linux, you can simply point your browser to http://localhost:8080/bugzilla to see the the Bugzilla home page.

If using boot2docker, you will need to use the IP address of the VM. You can find the IP address using the boot2docker ip command. For example:

$ boot2docker ip
192.168.59.103

So would then point your browser to http://192.168.59.103:8080/bugzilla.

The Administrator username is [email protected] and the password is password. You can use the Administrator account to creat other users, add products or components, etc.

You can also ssh into the container using ssh bugzilla@localhost -p2222 command. The password is bugzilla. You can run multiple containers but you will need to give each one a different name/hostname as well as non-conflicting ports numbers for ssh and httpd.

TODO

  • Enable SSL support.
  • Enable memcached

docker-bugzilla's People

Contributors

dklawren avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.