Coder Social home page Coder Social logo

docker-bugzilla-dev'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
  • Code resides in /var/www/html/bugzilla and can be updated, diffed, and branched using standard git commands

How to install Docker

Visit Docker and get Docker up and running on your system. Optionally you could install Docker Compose to help with setting up a new container.

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:

$ docker-compose build

How to start Bugzilla Docker image

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

$ docker-compose 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:

$ docker-compose stop
$ docker-compose start
$ docker-compose rm

How to access the Bugzilla container

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

The Administrator login is admin and the password is password. You can use the Administrator account to creat other users, add products or components, etc.

You can also login to the container using docker exec -it bugzilla-dev su - bugzilla command. 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 httpd and vnc.

TODO

  • Enable SSL support.

docker-bugzilla-dev's People

Contributors

dklawren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-bugzilla-dev's Issues

Increase MySQL Startup timer

This is a duplicate post from: https://hub.docker.com/r/bugzilla/bugzilla-dev/ since I believe the fix is a configuration change in this project...

Update (also on the Docker Hub page):

Trying to investigate a little more, but I'm pretty sure that the issue is due to the 5 second sleep timer in bugzilla_config.sh (line 13). I think that is not always enough time to start up MySQL. I recommend increasing that timer to something like 15 seconds.


I tried to build the image myself and saw some SQL errors during the build process. Further investigation revealed that bugzilla_config.sh either did not run or resulted in a failure, since the "bugs" user had no access to the MySQL database.

I just checked the build output for this image (at https://hub.docker.com/r/bugzilla/bugzilla-dev/builds/bqbnynadqi7gcdzd6bjjw99/) and the following is present:

161101 21:48:30 mysqld_safe Logging to '/var/lib/mysql/mysql-error.log'.
161101 21:48:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
�[91mERROR 2002 (HY000)�[0m�[91m: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
�[0m�[91mERROR 2002 (HY000)�[0m�[91m: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

which is a symptom of the same problem.

Further in the build output is:

[91mThere was an error connecting to MySQL:

    Access denied for user 'bugs'@'localhost' (using password: YES)

This might have several reasons:

* MySQL is not running.
* MySQL is running, but there is a problem either in the
  server configuration or the database access rights. Read the Bugzilla
  Guide in the doc directory. The section about database configuration
  should help.
* Your password for the 'bugs' user, specified in $db_pass, is 
  incorrect, in './localconfig'.
* There is a subtle problem with Perl, DBI, or MySQL. Make
  sure all settings in './localconfig' are correct. If all else fails, set
  '$db_check' to 0.

which is also a symptom of the same issue.

As a sanity check, I rebuilt the image:

  docker build --no-cache -t bugzilla/bugzilla-dev .
  docker-compose up -d

and this time I did not see those errors, and Bugzilla was available. Then I started with a clean environment and ran them again - again, with success. I'm not sure what caused the inconsistency, but I suspect it has to do with an existing bugzilla image being on the box doing the building. I think if you don't use the --no-cache flag, and you have done a docker pull bugzilla/bugzilla-dev in the past, the build breaks.

Anyway, I'm up and running from doing my own build, but, please make sure the image hosted by Docker Hub is working - seems like you can't just trust if the build log says "Success".

Changing url base for remote hosting not working

I changed the urlbase field inside /var/www/html/bugzilla/data/params.json to my http://{{mypublicip}}/bugzilla

But now both Apache home page and {{mypublic}}/bugzilla is not loading.

Is there any other approach with which I can get this working ?

Is this repository active?

I see a docker image which is 3 years old and upon trying it out I get a bunch of random failures.

First I was getting a 500 b/c the DB was unreachable.

Then I tried bugzilla_config.sh inside the running container which seems to create a DB schema (which I thought was already created) but still failures.

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.