Skip to content

Commit 0c759a4

Browse files
authored
Merge pull request #2596 from sachilles/upgrade-to-15.1.0
Upgrade GitLab CE to 15.1.0
2 parents b34d48a + 5c9c5ca commit 0c759a4

14 files changed

+165
-44
lines changed

Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This file only reflects the changes that are made in this image. Please refer to the upstream GitLab [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-foss/blob/master/CHANGELOG.md) for the list of changes in GitLab.
44

5+
**15.1.0**
6+
7+
- gitlab: upgrade CE to v15.1.0
8+
- gitaly: upgrade to v15.1.0
9+
- gitlab-shell: upgrade to v14.7.4
10+
- gitlab-pages: upgrade to v1.59.0
11+
512
**15.0.3**
613
- gitlab: upgrade CE to v15.0.3
714
- gitaly: upgrade to v15.0.3

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM ubuntu:focal-20220531
22

3-
ARG VERSION=15.0.3
3+
ARG VERSION=15.1.0
44

55
ENV GITLAB_VERSION=${VERSION} \
66
RUBY_VERSION=2.7.6 \
77
RUBY_SOURCE_SHA256SUM="e7203b0cc09442ed2c08936d483f8ac140ec1c72e37bb5c401646b7866cb5d10" \
88
GOLANG_VERSION=1.17.11 \
9-
GITLAB_SHELL_VERSION=14.3.0 \
10-
GITLAB_PAGES_VERSION=1.58.0 \
11-
GITALY_SERVER_VERSION=15.0.3 \
9+
GITLAB_SHELL_VERSION=14.7.4 \
10+
GITLAB_PAGES_VERSION=1.59.0 \
11+
GITALY_SERVER_VERSION=15.1.0 \
1212
GITLAB_USER="git" \
1313
GITLAB_HOME="/home/git" \
1414
GITLAB_LOG_DIR="/var/log/gitlab" \

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sameersbn/gitlab:15.0.3
1+
# sameersbn/gitlab:15.1.0
22

33
[![CircleCI](https://circleci.com/gh/sameersbn/docker-gitlab/tree/master.svg?style=svg)](https://circleci.com/gh/sameersbn/docker-gitlab/tree/master)
44

@@ -125,7 +125,7 @@ Your docker host needs to have 1GB or more of available RAM to run GitLab. Pleas
125125
Automated builds of the image are available on [Dockerhub](https://hub.docker.com/r/sameersbn/gitlab) and is the recommended method of installation.
126126

127127
```bash
128-
docker pull sameersbn/gitlab:15.0.3
128+
docker pull sameersbn/gitlab:15.1.0
129129
```
130130

131131
You can also pull the `latest` tag which is built from the repository *HEAD*
@@ -194,7 +194,7 @@ docker run --name gitlab -d \
194194
--env 'GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alpha-numeric-string' \
195195
--env 'GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alpha-numeric-string' \
196196
--volume /srv/docker/gitlab/gitlab:/home/git/data \
197-
sameersbn/gitlab:15.0.3
197+
sameersbn/gitlab:15.1.0
198198
```
199199

200200
*Please refer to [Available Configuration Parameters](#available-configuration-parameters) to understand `GITLAB_PORT` and other configuration options*
@@ -229,7 +229,7 @@ Volumes can be mounted in docker by specifying the `-v` option in the docker run
229229
```bash
230230
docker run --name gitlab -d \
231231
--volume /srv/docker/gitlab/gitlab:/home/git/data \
232-
sameersbn/gitlab:15.0.3
232+
sameersbn/gitlab:15.1.0
233233
```
234234

235235
### Database
@@ -264,7 +264,7 @@ docker run --name gitlab -d \
264264
--env 'DB_NAME=gitlabhq_production' \
265265
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
266266
--volume /srv/docker/gitlab/gitlab:/home/git/data \
267-
sameersbn/gitlab:15.0.3
267+
sameersbn/gitlab:15.1.0
268268
```
269269

270270
##### Linking to PostgreSQL Container
@@ -308,7 +308,7 @@ We are now ready to start the GitLab application.
308308
```bash
309309
docker run --name gitlab -d --link gitlab-postgresql:postgresql \
310310
--volume /srv/docker/gitlab/gitlab:/home/git/data \
311-
sameersbn/gitlab:15.0.3
311+
sameersbn/gitlab:15.1.0
312312
```
313313

314314
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:
@@ -347,7 +347,7 @@ The image can be configured to use an external redis server. The configuration s
347347
```bash
348348
docker run --name gitlab -it --rm \
349349
--env 'REDIS_HOST=192.168.1.100' --env 'REDIS_PORT=6379' \
350-
sameersbn/gitlab:15.0.3
350+
sameersbn/gitlab:15.1.0
351351
```
352352

353353
#### Linking to Redis Container
@@ -374,7 +374,7 @@ We are now ready to start the GitLab application.
374374

375375
```bash
376376
docker run --name gitlab -d --link gitlab-redis:redisio \
377-
sameersbn/gitlab:15.0.3
377+
sameersbn/gitlab:15.1.0
378378
```
379379

380380
#### Mail
@@ -387,7 +387,7 @@ If you are using Gmail then all you need to do is:
387387
docker run --name gitlab -d \
388388
--env '[email protected]' --env 'SMTP_PASS=PASSWORD' \
389389
--volume /srv/docker/gitlab/gitlab:/home/git/data \
390-
sameersbn/gitlab:15.0.3
390+
sameersbn/gitlab:15.1.0
391391
```
392392

393393
Please refer the [Available Configuration Parameters](#available-configuration-parameters) section for the list of SMTP parameters that can be specified.
@@ -407,7 +407,7 @@ docker run --name gitlab -d \
407407
--env '[email protected]' --env 'IMAP_PASS=PASSWORD' \
408408
--env 'GITLAB_INCOMING_EMAIL_ADDRESS=USER+%{key}@gmail.com' \
409409
--volume /srv/docker/gitlab/gitlab:/home/git/data \
410-
sameersbn/gitlab:15.0.3
410+
sameersbn/gitlab:15.1.0
411411
```
412412

413413
Please refer the [Available Configuration Parameters](#available-configuration-parameters) section for the list of IMAP parameters that can be specified.
@@ -491,7 +491,7 @@ docker run --name gitlab -d \
491491
--env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_PORT=10443' \
492492
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
493493
--volume /srv/docker/gitlab/gitlab:/home/git/data \
494-
sameersbn/gitlab:15.0.3
494+
sameersbn/gitlab:15.1.0
495495
```
496496

497497
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.
@@ -507,7 +507,7 @@ docker run --name gitlab -d \
507507
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
508508
--env 'NGINX_HSTS_MAXAGE=2592000' \
509509
--volume /srv/docker/gitlab/gitlab:/home/git/data \
510-
sameersbn/gitlab:15.0.3
510+
sameersbn/gitlab:15.1.0
511511
```
512512

513513
If you want to completely disable HSTS set `NGINX_HSTS_ENABLED` to `false`.
@@ -530,7 +530,7 @@ docker run --name gitlab -d \
530530
--env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_PORT=443' \
531531
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
532532
--volume /srv/docker/gitlab/gitlab:/home/git/data \
533-
sameersbn/gitlab:15.0.3
533+
sameersbn/gitlab:15.1.0
534534
```
535535

536536
Again, drop the `--env 'SSL_SELF_SIGNED=true'` option if you are using CA certified SSL certificates.
@@ -578,7 +578,7 @@ Let's assume we want to deploy our application to '/git'. GitLab needs to know t
578578
docker run --name gitlab -it --rm \
579579
--env 'GITLAB_RELATIVE_URL_ROOT=/git' \
580580
--volume /srv/docker/gitlab/gitlab:/home/git/data \
581-
sameersbn/gitlab:15.0.3
581+
sameersbn/gitlab:15.1.0
582582
```
583583

584584
GitLab will now be accessible at the `/git` path, e.g. `http://www.example.com/git`.
@@ -758,14 +758,14 @@ Also the container processes seem to be executed as the host's user/group `1000`
758758
```bash
759759
docker run --name gitlab -it --rm [options] \
760760
--env "USERMAP_UID=$(id -u git)" --env "USERMAP_GID=$(id -g git)" \
761-
sameersbn/gitlab:15.0.3
761+
sameersbn/gitlab:15.1.0
762762
```
763763

764764
When changing this mapping, all files and directories in the mounted data volume `/home/git/data` have to be re-owned by the new ids. This can be achieved automatically using the following command:
765765

766766
```bash
767767
docker run --name gitlab -d [OPTIONS] \
768-
sameersbn/gitlab:15.0.3 app:sanitize
768+
sameersbn/gitlab:15.1.0 app:sanitize
769769
```
770770

771771
#### Piwik
@@ -2407,7 +2407,7 @@ Execute the rake task to create a backup.
24072407

24082408
```bash
24092409
docker run --name gitlab -it --rm [OPTIONS] \
2410-
sameersbn/gitlab:15.0.3 app:rake gitlab:backup:create
2410+
sameersbn/gitlab:15.1.0 app:rake gitlab:backup:create
24112411
```
24122412

24132413
A backup will be created in the backups folder of the [Data Store](#data-store). You can change the location of the backups using the `GITLAB_BACKUP_DIR` configuration parameter.
@@ -2442,14 +2442,14 @@ you need to prepare the database:
24422442

24432443
```bash
24442444
docker run --name gitlab -it --rm [OPTIONS] \
2445-
sameersbn/gitlab:15.0.3 app:rake db:setup
2445+
sameersbn/gitlab:15.1.0 app:rake db:setup
24462446
```
24472447

24482448
Execute the rake task to restore a backup. Make sure you run the container in interactive mode `-it`.
24492449

24502450
```bash
24512451
docker run --name gitlab -it --rm [OPTIONS] \
2452-
sameersbn/gitlab:15.0.3 app:rake gitlab:backup:restore
2452+
sameersbn/gitlab:15.1.0 app:rake gitlab:backup:restore
24532453
```
24542454

24552455
The list of all available backups will be displayed in reverse chronological order. Select the backup you want to restore and continue.
@@ -2458,7 +2458,7 @@ To avoid user interaction in the restore operation, specify the timestamp, date
24582458

24592459
```bash
24602460
docker run --name gitlab -it --rm [OPTIONS] \
2461-
sameersbn/gitlab:15.0.3 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
2461+
sameersbn/gitlab:15.1.0 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
24622462
```
24632463

24642464
When using `docker-compose` you may use the following command to execute the restore.
@@ -2507,7 +2507,7 @@ The `app:rake` command allows you to run gitlab rake tasks. To run a rake task s
25072507

25082508
```bash
25092509
docker run --name gitlab -it --rm [OPTIONS] \
2510-
sameersbn/gitlab:15.0.3 app:rake gitlab:env:info
2510+
sameersbn/gitlab:15.1.0 app:rake gitlab:env:info
25112511
```
25122512

25132513
You can also use `docker exec` to run raketasks on running gitlab instance. For example,
@@ -2520,7 +2520,7 @@ Similarly, to import bare repositories into GitLab project instance
25202520

25212521
```bash
25222522
docker run --name gitlab -it --rm [OPTIONS] \
2523-
sameersbn/gitlab:15.0.3 app:rake gitlab:import:repos
2523+
sameersbn/gitlab:15.1.0 app:rake gitlab:import:repos
25242524
```
25252525

25262526
Or
@@ -2551,7 +2551,7 @@ Copy all the **bare** git repositories to the `repositories/` directory of the [
25512551

25522552
```bash
25532553
docker run --name gitlab -it --rm [OPTIONS] \
2554-
sameersbn/gitlab:15.0.3 app:rake gitlab:import:repos
2554+
sameersbn/gitlab:15.1.0 app:rake gitlab:import:repos
25552555
```
25562556

25572557
Watch the logs and your repositories should be available into your new gitlab container.
@@ -2575,12 +2575,12 @@ To upgrade to newer gitlab releases, simply follow this 4 step upgrade procedure
25752575

25762576
> **Note**
25772577
>
2578-
> Upgrading to `sameersbn/gitlab:15.0.3` from `sameersbn/gitlab:7.x.x` can cause issues. It is therefore required that you first upgrade to `sameersbn/gitlab:8.0.5-1` before upgrading to `sameersbn/gitlab:8.1.0` or higher.
2578+
> Upgrading to `sameersbn/gitlab:15.1.0` from `sameersbn/gitlab:7.x.x` can cause issues. It is therefore required that you first upgrade to `sameersbn/gitlab:8.0.5-1` before upgrading to `sameersbn/gitlab:8.1.0` or higher.
25792579
25802580
- **Step 1**: Update the docker image.
25812581

25822582
```bash
2583-
docker pull sameersbn/gitlab:15.0.3
2583+
docker pull sameersbn/gitlab:15.1.0
25842584
```
25852585

25862586
- **Step 2**: Stop and remove the currently running image
@@ -2605,7 +2605,7 @@ Replace `x.x.x` with the version you are upgrading from. For example, if you are
26052605
> **Note**: Since GitLab `8.11.0` you need to provide the `GITLAB_SECRETS_SECRET_KEY_BASE` and `GITLAB_SECRETS_OTP_KEY_BASE` parameters while starting the image. These should initially both have the same value as the contents of the `/home/git/data/.secret` file. See [Available Configuration Parameters](#available-configuration-parameters) for more information on these parameters.
26062606
26072607
```bash
2608-
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:15.0.3
2608+
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:15.1.0
26092609
```
26102610

26112611
### Shell Access
@@ -2643,7 +2643,7 @@ version: '2.3'
26432643

26442644
services:
26452645
gitlab:
2646-
image: sameersbn/gitlab:15.0.3
2646+
image: sameersbn/gitlab:15.1.0
26472647
healthcheck:
26482648
test: ["CMD", "/usr/local/sbin/healthcheck"]
26492649
interval: 1m

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15.0.3
1+
15.1.0
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# HINT: This file is identical to the corresponding configuration file from the
2+
# upstream repository, where the additional defined entries for `geo` had to be
3+
# removed. Otherwise, it is not possible to build the image, since the build
4+
# will fail with the error message:
5+
#
6+
# > rake aborted!
7+
# > ERROR: This installation of GitLab uses unsupported database names in 'config/database.yml': geo. The only supported ones are main, ci.
8+
#
9+
# This adjustment is hopefully only a temporary workaround (see
10+
# <https://github.com/sameersbn/docker-gitlab/pull/2596>).
11+
12+
#
13+
# PRODUCTION
14+
#
15+
production:
16+
main:
17+
adapter: postgresql
18+
encoding: unicode
19+
database: gitlabhq_production
20+
username: git
21+
password: "secure password"
22+
host: localhost
23+
# load_balancing:
24+
# hosts:
25+
# - host1.example.com
26+
# - host2.example.com
27+
# discover:
28+
# nameserver: 1.2.3.4
29+
# port: 8600
30+
# record: secondary.postgresql.service.consul
31+
# interval: 300
32+
# geo:
33+
# adapter: postgresql
34+
# encoding: unicode
35+
# database: gitlabhq_geo_production
36+
# username: git
37+
# password: "secure password"
38+
# host: localhost
39+
40+
#
41+
# Development specific
42+
#
43+
development:
44+
main:
45+
adapter: postgresql
46+
encoding: unicode
47+
database: gitlabhq_development
48+
username: postgres
49+
password: "secure password"
50+
host: localhost
51+
variables:
52+
statement_timeout: 15s
53+
# geo:
54+
# adapter: postgresql
55+
# encoding: unicode
56+
# database: gitlabhq_geo_development
57+
# username: postgres
58+
# password: "secure password"
59+
# host: localhost
60+
61+
#
62+
# Staging specific
63+
#
64+
staging:
65+
main:
66+
adapter: postgresql
67+
encoding: unicode
68+
database: gitlabhq_staging
69+
username: git
70+
password: "secure password"
71+
host: localhost
72+
# geo:
73+
# adapter: postgresql
74+
# encoding: unicode
75+
# database: gitlabhq_geo_staging
76+
# username: git
77+
# password: "secure password"
78+
# host: localhost
79+
80+
# Warning: The database defined as "test" will be erased and
81+
# re-generated from your development database when you run "rake".
82+
# Do not set this db to the same as development or production.
83+
test: &test
84+
main:
85+
adapter: postgresql
86+
encoding: unicode
87+
database: gitlabhq_test
88+
username: postgres
89+
password:
90+
host: localhost
91+
prepared_statements: false
92+
variables:
93+
statement_timeout: 15s
94+
# geo:
95+
# adapter: postgresql
96+
# encoding: unicode
97+
# database: gitlabhq_geo_test
98+
# username: postgres
99+
# password:
100+
# host: localhost

assets/build/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ chown -R ${GITLAB_USER}: ${GITLAB_HOME}
187187
# gitlab.yml and database.yml are required for `assets:precompile`
188188
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/resque.yml.example ${GITLAB_INSTALL_DIR}/config/resque.yml
189189
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/gitlab.yml.example ${GITLAB_INSTALL_DIR}/config/gitlab.yml
190-
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/database.yml.postgresql ${GITLAB_INSTALL_DIR}/config/database.yml
190+
#
191+
# Temporary workaround, see <https://github.com/sameersbn/docker-gitlab/pull/2596>
192+
#
193+
# exec_as_git cp ${GITLAB_INSTALL_DIR}/config/database.yml.postgresql ${GITLAB_INSTALL_DIR}/config/database.yml
194+
exec_as_git cp ${GITLAB_BUILD_DIR}/config/database.yml.postgresql ${GITLAB_INSTALL_DIR}/config/database.yml
191195

192196
# Installs nodejs packages required to compile webpack
193197
exec_as_git yarn install --production --pure-lockfile

contrib/docker-swarm/docker-compose.yml

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

2323
gitlab:
2424
restart: always
25-
image: sameersbn/gitlab:15.0.3
25+
image: sameersbn/gitlab:15.1.0
2626
depends_on:
2727
- redis
2828
- postgresql

0 commit comments

Comments
 (0)