Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change config to build from Fig to DockerCompose #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Docker Bugzilla

Configure a running Bugzilla system using Docker

[docker](https://docs.docker.com/installation/) |
[docker-compose](https://docs.docker.com/compose/install/) |
[windows](http://docs.docker.com/installation/windows/) |
[vagrant](https://docs.vagrantup.com/v2/getting-started/)

## Features

* Running latest Centos
Expand All @@ -12,19 +17,17 @@ Configure a running Bugzilla system using Docker
* 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
## How to install Docker and DockerCompose

### Linux

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

2. Visit [Fig][fig] to install Fig for managing Docker containers.
2. Visit [DockerCompose][docker-compose] and get docker compose up and running on your system.

### OSX

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

2. Visit [Fig][fig] to install Fig for managing multiple related Docker containers.
2. Visit [Docker Compose][docker-compose] and get docker compose up and running on your system.

3. Start boot2docker in a terminal once it is installed. Ensure that you run the
export DOCKER_HOST=... lines when prompted:
Expand All @@ -34,7 +37,7 @@ $ boot2docker start
$ export DOCKER_HOST=tcp://192.168.59.103:2375
```

### Windows
### Windows ( DEPRECATED, it needs to be updated )

1. Install the [Windows boot2docker installer][windows]
2. Run the "Boot2Docker Start" shortcut on the startmenu (this inits the VM,
Expand Down Expand Up @@ -99,15 +102,15 @@ To build a fresh image, just change to the directory containing the checked out
files and run the below command:

```bash
$ fig build
$ docker-compose build
```

## How to start Bugzilla Docker image

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

```bash
$ fig up
$ docker-compose up
```

This will stay in the foreground and you will see the output from `supervisord`. You
Expand All @@ -116,9 +119,9 @@ 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:

```bash
$ fig stop
$ fig start
$ fig rm
$ docker-compose stop
$ docker-compose start
$ docker-compose rm
```

## How to access the Bugzilla container
Expand Down Expand Up @@ -152,6 +155,6 @@ numbers for ssh and httpd.
* Enable memcached

[docker]: https://docs.docker.com/installation/
[docker-compose]: https://docs.docker.com/compose/install/
[windows]: http://docs.docker.com/installation/windows/
[fig]: http://www.fig.sh
[vagrant]: https://docs.vagrantup.com/v2/getting-started/
[vagrant]: https://docs.vagrantup.com/v2/getting-started/
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '2'
services:
bugzilla:
build: .
ports:
- "8080:80"
- "2222:22"
- "5900:5900"
6 changes: 0 additions & 6 deletions fig.yml

This file was deleted.