-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jonathan Cormier <[email protected]>
- Loading branch information
Showing
8 changed files
with
39 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ Dockerfile to build a [Redmine](http://www.redmine.org/) container image. | |
|
||
## Version | ||
|
||
Current Version: **sameersbn/redmine:4.2.11-1** | ||
Current Version: **sameersbn/redmine:4.2.11-2** | ||
|
||
*P.S.: If your installation depends on various third party plugins, please stick with 2.6.xx series to avoid breakage.* | ||
|
||
|
@@ -105,7 +105,7 @@ docker pull sameersbn/redmine:latest | |
Since version `2.4.2`, the image builds are being tagged. You can now pull a particular version of redmine by specifying the version number. For example, | ||
|
||
```bash | ||
docker pull sameersbn/redmine:4.2.11-1 | ||
docker pull sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
Alternately you can build the image yourself. | ||
|
@@ -143,7 +143,7 @@ docker run --name=redmine -d \ | |
--env='REDMINE_PORT=10083' \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
**NOTE**: Please allow a minute or two for the Redmine application to start. | ||
|
@@ -190,7 +190,7 @@ Volumes can be mounted in docker by specifying the **'-v'** option in the docker | |
docker run --name=redmine -it --rm \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
## Database | ||
|
@@ -241,7 +241,7 @@ docker run --name=redmine -it --rm \ | |
--env='DB_USER=redmine' --env='DB_PASS=password' \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
This will initialize the redmine database and after a couple of minutes your redmine instance should be ready to use. | ||
|
@@ -287,7 +287,7 @@ We are now ready to start the redmine application. | |
docker run --name=redmine -it --rm --link=mysql-redmine:mysql \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
Here the image will also automatically fetch the `DB_NAME`, `DB_USER` and `DB_PASS` variables from the mysql container as they are specified in the `docker run` command for the mysql container. This is made possible using the magic of docker links and works with the following images: | ||
|
@@ -318,7 +318,7 @@ docker run --name=redmine -it --rm \ | |
--env='DB_USER=redmine' --env='DB_PASS=password' \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
This will initialize the redmine database and after a couple of minutes your redmine instance should be ready to use. | ||
|
@@ -364,7 +364,7 @@ We are now ready to start the redmine application. | |
docker run --name=redmine -it --rm --link=postgresql-redmine:postgresql \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
Here the image will also automatically fetch the `DB_NAME`, `DB_USER` and `DB_PASS` variables from the postgresql container as they are specified in the `docker run` command for the postgresql container. This is made possible using the magic of docker links and works with the following images: | ||
|
@@ -387,7 +387,7 @@ The image can be configured to use an external memcached server. The memcached s | |
```bash | ||
docker run --name=redmine -it --rm \ | ||
--env='MEMCACHE_HOST=192.168.1.100' --env='MEMCACHE_PORT=11211' \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
### Linking to Memcached Container | ||
|
@@ -406,7 +406,7 @@ Now you can link memcached to the redmine image: | |
|
||
```bash | ||
docker run --name=redmine -it --rm --link=memcached-redmine:memcached \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
|
@@ -420,7 +420,7 @@ docker run --name=redmine -it --rm \ | |
--env='[email protected]' --env='SMTP_PASS=PASSWORD' \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
If you are not using google mail, then please configure the SMTP host and port using the `SMTP_HOST` and `SMTP_PORT` configuration parameters. | ||
|
@@ -503,7 +503,7 @@ docker run --name=redmine -d \ | |
--env='REDMINE_PORT=10445' --env='REDMINE_HTTPS=true' \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
In this configuration, any requests made over the plain http protocol will automatically be redirected to use the https protocol. However, this is not optimal when using a load balancer. | ||
|
@@ -522,7 +522,7 @@ docker run --name=redmine -d \ | |
--env='NGINX_HSTS_MAXAGE=2592000' | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
If you want to completely disable HSTS set `NGINX_HSTS_ENABLED` to `false`. | ||
|
@@ -542,7 +542,7 @@ docker run --name=redmine -d --publish=10083:80 \ | |
--env='REDMINE_HTTPS=true' \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
### Deploy to a subdirectory (relative url root) | ||
|
@@ -556,7 +556,7 @@ docker run --name=redmine -d --publish=10083:80 \ | |
--env='REDMINE_RELATIVE_URL_ROOT=/redmine' \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
Redmine will now be accessible at the `/redmine` path, e.g. `http://www.example.com/redmine`. | ||
|
@@ -586,7 +586,7 @@ Also the container processes seem to be executed as the host's user/group `1000` | |
```bash | ||
docker run --name=redmine -it --rm [options] \ | ||
--env="USERMAP_UID=500" --env="USERMAP_GID=500" \ | ||
sameersbn/redmine:4.2.11-1 | ||
sameersbn/redmine:4.2.11-2 | ||
``` | ||
|
||
### Available Configuration Parameters | ||
|
@@ -741,7 +741,7 @@ cd /srv/docker/redmine/redmine/plugins | |
wget http://goo.gl/iJcvCP -O - | sh | ||
``` | ||
|
||
*Please Note: this [plugin install script](https://gist.github.com/sameersbn/dd24dfdd13bc4.2.11-1a5) is not maintained and you would need to fix it if required (especially broken links)* | ||
*Please Note: this [plugin install script](https://gist.github.com/sameersbn/dd24dfdd13bc4.2.11-2a5) is not maintained and you would need to fix it if required (especially broken links)* | ||
|
||
### Reloading plugins for development | ||
|
||
|
@@ -760,7 +760,7 @@ To uninstall plugins you need to first tell redmine about the plugin you need to | |
docker run --name=redmine -it --rm \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 \ | ||
sameersbn/redmine:4.2.11-2 \ | ||
app:rake redmine:plugins:migrate NAME=plugin_name VERSION=0 | ||
``` | ||
|
||
|
@@ -778,7 +778,7 @@ For example, to remove the recurring tasks plugin: | |
docker run --name=redmine -it --rm \ | ||
--volume=/srv/docker/redmine/redmine:/home/redmine/data \ | ||
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \ | ||
sameersbn/redmine:4.2.11-1 \ | ||
sameersbn/redmine:4.2.11-2 \ | ||
app:rake redmine:plugins:migrate NAME=recurring_tasks VERSION=0 | ||
rm -rf /srv/docker/redmine/redmine/plugins/recurring_tasks | ||
``` | ||
|
@@ -858,7 +858,7 @@ Relaunch the container with the `app:backup:create` argument. | |
|
||
```bash | ||
docker run --name redmine -it --rm [OPTIONS] \ | ||
sameersbn/redmine:4.2.11-1 app:backup:create | ||
sameersbn/redmine:4.2.11-2 app:backup:create | ||
``` | ||
|
||
The backup will be created in the `backups/` folder of the [Data Store](#data-store). You can change the location using the `REDMINE_BACKUPS_DIR` configuration parameter. | ||
|
@@ -889,7 +889,7 @@ Relaunch the container with the `app:backup:restore` argument. Ensure you launch | |
```bash | ||
docker run --name redmine -it --rm [OPTIONS] \ | ||
sameersbn/redmine:4.2.11-1 app:backup:restore | ||
sameersbn/redmine:4.2.11-2 app:backup:restore | ||
``` | ||
A list of existing backups will be displayed. Select a backup you wish to restore. | ||
|
@@ -898,7 +898,7 @@ To avoid this interaction you can specify the backup filename using the `BACKUP` | |
```bash | ||
docker run --name redmine -it --rm [OPTIONS] \ | ||
sameersbn/redmine:4.2.11-1 app:backup:restore BACKUP=1417624827_redmine_backup.tar | ||
sameersbn/redmine:4.2.11-2 app:backup:restore BACKUP=1417624827_redmine_backup.tar | ||
``` | ||
## Automated backups | ||
|
@@ -917,7 +917,7 @@ The `app:rake` command allows you to run redmine rake tasks. To run a rake task | |
```bash | ||
docker run --name=redmine -d [OPTIONS] \ | ||
sameersbn/redmine:4.2.11-1 app:rake redmine:email:test[admin] | ||
sameersbn/redmine:4.2.11-2 app:rake redmine:email:test[admin] | ||
``` | ||
You can also use `docker exec` to run rake tasks on running redmine instance. For example, | ||
|
@@ -930,7 +930,7 @@ Similarly, to remove uploaded files left unattached | |
```bash | ||
docker run --name=redmine -d [OPTIONS] \ | ||
sameersbn/redmine:4.2.11-1 app:rake redmine:attachments:prune | ||
sameersbn/redmine:4.2.11-2 app:rake redmine:attachments:prune | ||
``` | ||
Or, | ||
|
@@ -948,7 +948,7 @@ To upgrade to newer redmine releases, simply follow this 4 step upgrade procedur | |
- **Step 1**: Update the docker image. | ||
```bash | ||
docker pull sameersbn/redmine:4.2.11-1 | ||
docker pull sameersbn/redmine:4.2.11-2 | ||
``` | ||
- **Step 2**: Stop and remove the currently running image | ||
|
@@ -970,7 +970,7 @@ Replace `x.x.x` with the version you are upgrading from. For example, if you are | |
- **Step 4**: Start the image | ||
```bash | ||
docker run --name=redmine -d [OPTIONS] sameersbn/redmine:4.2.11-1 | ||
docker run --name=redmine -d [OPTIONS] sameersbn/redmine:4.2.11-2 | ||
``` | ||
## Shell Access | ||
|
@@ -985,10 +985,10 @@ docker exec -it redmine bash | |
## Upgrading to next redmine release | ||
* Commands to run to update image to next redmine release, examples are from 4.2.11-1 to 4.2.11-1 | ||
* Commands to run to update image to next redmine release, examples are from 4.2.11-2 to 4.2.11-2 | ||
```bash | ||
sed -i 's/4.2.11-1/4.2.11-1/g' VERSION README.md docker-compose-mysql.yml docker-compose-ssl.yml docker-compose-sqlite3.yml docker-compose-mariadb.yml Dockerfile docker-compose.yml | ||
sed -i 's/4.2.11-2/4.2.11-2/g' VERSION README.md docker-compose-mysql.yml docker-compose-ssl.yml docker-compose-sqlite3.yml docker-compose-mariadb.yml Dockerfile docker-compose.yml | ||
vim Changelog.md # Update change log | ||
sudo rm -rf /srv/docker/redmine/ # Clean old run | ||
docker-compose down | ||
|
@@ -1002,7 +1002,7 @@ git push origin --tags | |
``` | ||
* Open https://github.com/sameersbn/docker-redmine/releases and Draft new release | ||
* Select tag 4.2.11-1 and set release title to 4.2.11-1 | ||
* Select tag 4.2.11-2 and set release title to 4.2.11-2 | ||
* Publish release | ||
* Check https://quay.io/repository/sameersbn/redmine?tab=info and https://hub.docker.com/r/sameersbn/redmine/builds for build progress | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.2.11-1 | ||
4.2.11-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters