Skip to content

Commit f7ae422

Browse files
authored
Merge pull request #585 from sachilles/upgrade-to-5.0.13
Upgrade Redmine to 5.0.13
2 parents 0079ded + 3fdb57d commit f7ae422

10 files changed

+42
-38
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
**5.0.12**
4+
- redmine upgrade to v5.0.12
5+
- Update to ubuntu:focal-20250404
6+
37
**5.0.12**
48
- redmine upgrade to v5.0.12
59

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:focal-20241011 AS add-apt-repositories
1+
FROM ubuntu:focal-20250404 AS add-apt-repositories
22

33
RUN apt-get update \
44
&& DEBIAN_FRONTEND=noninteractive apt-get install -y wget gnupg2 \
@@ -13,13 +13,13 @@ RUN apt-get update \
1313
&& apt-key adv --keyserver keyserver.ubuntu.com --recv B7B3B788A8D3785C \
1414
&& echo "deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7" >> /etc/apt/sources.list
1515

16-
FROM ubuntu:focal-20241011
16+
FROM ubuntu:focal-20250404
1717

1818
LABEL maintainer="[email protected]"
1919

2020
# bundler 2.4.22 is the last version that supports ruby 2.7
2121
ENV RUBY_VERSION=2.7 \
22-
REDMINE_VERSION=5.0.12 \
22+
REDMINE_VERSION=5.0.13 \
2323
REDMINE_USER="redmine" \
2424
REDMINE_HOME="/home/redmine" \
2525
REDMINE_LOG_DIR="/var/log/redmine" \

README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Dockerfile to build a [Redmine](http://www.redmine.org/) container image.
6060

6161
## Version
6262

63-
Current Version: **sameersbn/redmine:5.0.12**
63+
Current Version: **sameersbn/redmine:5.0.13**
6464

6565
_P.S.: If your installation depends on various third party plugins, please stick with 2.6.xx series to avoid breakage._
6666

@@ -108,7 +108,7 @@ docker pull sameersbn/redmine:latest
108108
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,
109109

110110
```bash
111-
docker pull sameersbn/redmine:5.0.12
111+
docker pull sameersbn/redmine:5.0.13
112112
```
113113

114114
Alternately you can build the image yourself.
@@ -146,7 +146,7 @@ docker run --name=redmine -d \
146146
--env='REDMINE_PORT=10083' \
147147
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
148148
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
149-
sameersbn/redmine:5.0.12
149+
sameersbn/redmine:5.0.13
150150
```
151151

152152
**NOTE**: Please allow a minute or two for the Redmine application to start.
@@ -193,7 +193,7 @@ Volumes can be mounted in docker by specifying the **'-v'** option in the docker
193193
docker run --name=redmine -it --rm \
194194
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
195195
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
196-
sameersbn/redmine:5.0.12
196+
sameersbn/redmine:5.0.13
197197
```
198198

199199
## Database
@@ -244,7 +244,7 @@ docker run --name=redmine -it --rm \
244244
--env='DB_USER=redmine' --env='DB_PASS=password' \
245245
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
246246
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
247-
sameersbn/redmine:5.0.12
247+
sameersbn/redmine:5.0.13
248248
```
249249

250250
This will initialize the redmine database and after a couple of minutes your redmine instance should be ready to use.
@@ -290,7 +290,7 @@ We are now ready to start the redmine application.
290290
docker run --name=redmine -it --rm --link=mysql-redmine:mysql \
291291
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
292292
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
293-
sameersbn/redmine:5.0.12
293+
sameersbn/redmine:5.0.13
294294
```
295295

296296
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:
@@ -321,7 +321,7 @@ docker run --name=redmine -it --rm \
321321
--env='DB_USER=redmine' --env='DB_PASS=password' \
322322
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
323323
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
324-
sameersbn/redmine:5.0.12
324+
sameersbn/redmine:5.0.13
325325
```
326326

327327
This will initialize the redmine database and after a couple of minutes your redmine instance should be ready to use.
@@ -367,7 +367,7 @@ We are now ready to start the redmine application.
367367
docker run --name=redmine -it --rm --link=postgresql-redmine:postgresql \
368368
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
369369
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
370-
sameersbn/redmine:5.0.12
370+
sameersbn/redmine:5.0.13
371371
```
372372

373373
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:
@@ -390,7 +390,7 @@ _Assuming that the memcached server host is 192.168.1.100_
390390
```bash
391391
docker run --name=redmine -it --rm \
392392
--env='MEMCACHE_HOST=192.168.1.100' --env='MEMCACHE_PORT=11211' \
393-
sameersbn/redmine:5.0.12
393+
sameersbn/redmine:5.0.13
394394
```
395395

396396
### Linking to Memcached Container
@@ -409,7 +409,7 @@ Now you can link memcached to the redmine image:
409409

410410
```bash
411411
docker run --name=redmine -it --rm --link=memcached-redmine:memcached \
412-
sameersbn/redmine:5.0.12
412+
sameersbn/redmine:5.0.13
413413
```
414414

415415
### Mail
@@ -423,7 +423,7 @@ docker run --name=redmine -it --rm \
423423
--env='[email protected]' --env='SMTP_PASS=PASSWORD' \
424424
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
425425
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
426-
sameersbn/redmine:5.0.12
426+
sameersbn/redmine:5.0.13
427427
```
428428

429429
If you are not using google mail, then please configure the SMTP host and port using the `SMTP_HOST` and `SMTP_PORT` configuration parameters.
@@ -509,7 +509,7 @@ docker run --name=redmine -d \
509509
--env='REDMINE_PORT=10445' --env='REDMINE_HTTPS=true' \
510510
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
511511
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
512-
sameersbn/redmine:5.0.12
512+
sameersbn/redmine:5.0.13
513513
```
514514

515515
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.
@@ -528,7 +528,7 @@ docker run --name=redmine -d \
528528
--env='NGINX_HSTS_MAXAGE=2592000'
529529
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
530530
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
531-
sameersbn/redmine:5.0.12
531+
sameersbn/redmine:5.0.13
532532
```
533533

534534
If you want to completely disable HSTS set `NGINX_HSTS_ENABLED` to `false`.
@@ -548,7 +548,7 @@ docker run --name=redmine -d --publish=10083:80 \
548548
--env='REDMINE_HTTPS=true' \
549549
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
550550
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
551-
sameersbn/redmine:5.0.12
551+
sameersbn/redmine:5.0.13
552552
```
553553

554554
### Deploy to a subdirectory (relative url root)
@@ -562,7 +562,7 @@ docker run --name=redmine -d --publish=10083:80 \
562562
--env='REDMINE_RELATIVE_URL_ROOT=/redmine' \
563563
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
564564
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
565-
sameersbn/redmine:5.0.12
565+
sameersbn/redmine:5.0.13
566566
```
567567

568568
Redmine will now be accessible at the `/redmine` path, e.g. `http://www.example.com/redmine`.
@@ -593,7 +593,7 @@ Also the container processes seem to be executed as the host's user/group `1000`
593593
```bash
594594
docker run --name=redmine -it --rm [options] \
595595
--env="USERMAP_UID=500" --env="USERMAP_GID=500" \
596-
sameersbn/redmine:5.0.12
596+
sameersbn/redmine:5.0.13
597597
```
598598

599599
### Available Configuration Parameters
@@ -766,7 +766,7 @@ To uninstall plugins you need to first tell redmine about the plugin you need to
766766
docker run --name=redmine -it --rm \
767767
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
768768
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
769-
sameersbn/redmine:5.0.12 \
769+
sameersbn/redmine:5.0.13 \
770770
app:rake redmine:plugins:migrate NAME=plugin_name VERSION=0
771771
```
772772

@@ -784,7 +784,7 @@ For example, to remove the recurring tasks plugin:
784784
docker run --name=redmine -it --rm \
785785
--volume=/srv/docker/redmine/redmine:/home/redmine/data \
786786
--volume=/srv/docker/redmine/redmine-logs:/var/log/redmine/ \
787-
sameersbn/redmine:5.0.12 \
787+
sameersbn/redmine:5.0.13 \
788788
app:rake redmine:plugins:migrate NAME=recurring_tasks VERSION=0
789789
rm -rf /srv/docker/redmine/redmine/plugins/recurring_tasks
790790
```
@@ -864,7 +864,7 @@ Relaunch the container with the `app:backup:create` argument.
864864

865865
```bash
866866
docker run --name redmine -it --rm [OPTIONS] \
867-
sameersbn/redmine:5.0.12 app:backup:create
867+
sameersbn/redmine:5.0.13 app:backup:create
868868
```
869869

870870
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.
@@ -895,7 +895,7 @@ Relaunch the container with the `app:backup:restore` argument. Ensure you launch
895895
896896
```bash
897897
docker run --name redmine -it --rm [OPTIONS] \
898-
sameersbn/redmine:5.0.12 app:backup:restore
898+
sameersbn/redmine:5.0.13 app:backup:restore
899899
```
900900
901901
A list of existing backups will be displayed. Select a backup you wish to restore.
@@ -904,7 +904,7 @@ To avoid this interaction you can specify the backup filename using the `BACKUP`
904904
905905
```bash
906906
docker run --name redmine -it --rm [OPTIONS] \
907-
sameersbn/redmine:5.0.12 app:backup:restore BACKUP=1417624827_redmine_backup.tar
907+
sameersbn/redmine:5.0.13 app:backup:restore BACKUP=1417624827_redmine_backup.tar
908908
```
909909
910910
## Automated backups
@@ -923,7 +923,7 @@ The `app:rake` command allows you to run redmine rake tasks. To run a rake task
923923
924924
```bash
925925
docker run --name=redmine -d [OPTIONS] \
926-
sameersbn/redmine:5.0.12 app:rake redmine:email:test[admin]
926+
sameersbn/redmine:5.0.13 app:rake redmine:email:test[admin]
927927
```
928928
929929
You can also use `docker exec` to run rake tasks on running redmine instance. For example,
@@ -936,7 +936,7 @@ Similarly, to remove uploaded files left unattached
936936
937937
```bash
938938
docker run --name=redmine -d [OPTIONS] \
939-
sameersbn/redmine:5.0.12 app:rake redmine:attachments:prune
939+
sameersbn/redmine:5.0.13 app:rake redmine:attachments:prune
940940
```
941941
942942
Or,
@@ -954,7 +954,7 @@ To upgrade to newer redmine releases, simply follow this 4 step upgrade procedur
954954
- **Step 1**: Update the docker image.
955955
956956
```bash
957-
docker pull sameersbn/redmine:5.0.12
957+
docker pull sameersbn/redmine:5.0.13
958958
```
959959
960960
- **Step 2**: Stop and remove the currently running image
@@ -976,7 +976,7 @@ Replace `x.x.x` with the version you are upgrading from. For example, if you are
976976
- **Step 4**: Start the image
977977
978978
```bash
979-
docker run --name=redmine -d [OPTIONS] sameersbn/redmine:5.0.12
979+
docker run --name=redmine -d [OPTIONS] sameersbn/redmine:5.0.13
980980
```
981981
982982
When an upgrade is in progress the variable `REDMINE_WAS_UPDATED` will be defined and set to `yes`. This allows easy integration of individual upgrade-steps via `entrypoint.custom.sh`.
@@ -993,10 +993,10 @@ docker exec -it redmine bash
993993
994994
## Upgrading to next redmine release
995995
996-
- Commands to run to update image to next redmine release, examples are from 5.0.4 to 5.0.12
996+
- Commands to run to update image to next redmine release, examples are from 5.0.4 to 5.0.13
997997
998998
```bash
999-
sed -i 's/5.0.9/5.0.12/g' VERSION README.md docker-compose-memcached.yml docker-compose-mysql.yml docker-compose-ssl.yml docker-compose-sqlite3.yml docker-compose-mariadb.yml Dockerfile docker-compose.yml
999+
sed -i 's/5.0.4/5.0.13/g' VERSION README.md docker-compose-memcached.yml docker-compose-mysql.yml docker-compose-ssl.yml docker-compose-sqlite3.yml docker-compose-mariadb.yml Dockerfile docker-compose.yml
10001000
vim Changelog.md # Update change log
10011001
sudo rm -rf /srv/docker/redmine/ # Clean old run
10021002
docker-compose down
@@ -1010,7 +1010,7 @@ git push origin --tags
10101010
```
10111011
10121012
- Open https://github.com/sameersbn/docker-redmine/releases and Draft new release
1013-
- Select tag 5.0.12 and set release title to 5.0.12
1013+
- Select tag 5.0.13 and set release title to 5.0.13
10141014
- Publish release
10151015
- Check https://quay.io/repository/sameersbn/redmine?tab=info and https://hub.docker.com/r/sameersbn/redmine/builds for build progress
10161016

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.12
1+
5.0.13

docker-compose-mariadb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313

1414
redmine:
1515
build: ./
16-
image: sameersbn/redmine:5.0.12
16+
image: sameersbn/redmine:5.0.13
1717
depends_on:
1818
- database
1919
environment:

docker-compose-memcached.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818

1919
redmine:
2020
build: ./
21-
image: sameersbn/redmine:5.0.12
21+
image: sameersbn/redmine:5.0.13
2222
depends_on:
2323
- postgresql
2424
- memcached

docker-compose-mysql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212

1313
redmine:
1414
build: ./
15-
image: sameersbn/redmine:5.0.12
15+
image: sameersbn/redmine:5.0.13
1616
depends_on:
1717
- mysql
1818
environment:

docker-compose-sqlite3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '2'
33
services:
44
redmine:
55
build: ./
6-
image: sameersbn/redmine:5.0.12
6+
image: sameersbn/redmine:5.0.13
77
environment:
88
- TZ=Asia/Kolkata
99

docker-compose-ssl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212

1313
redmine:
1414
build: ./
15-
image: sameersbn/redmine:5.0.12
15+
image: sameersbn/redmine:5.0.13
1616
depends_on:
1717
- postgresql
1818
environment:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
start_period: 10s
1818
redmine:
1919
build: ./
20-
image: sameersbn/redmine:5.0.12
20+
image: sameersbn/redmine:5.0.13
2121
depends_on:
2222
postgresql:
2323
condition: service_healthy

0 commit comments

Comments
 (0)