Skip to content

Commit fc33f9e

Browse files
committed
Upgrade GitLab CE to 16.1.2
1 parent 2f2ac04 commit fc33f9e

11 files changed

+50
-43
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+
**16.1.2**
6+
7+
- gitlab: upgrade CE to v16.1.2
8+
- gitaly: upgrade to v16.1.2
9+
- gitlab-pages: upgrade to v16.1.2
10+
- ubuntu: upgrade to focal-20230624
11+
512
**16.1.1**
613

714
- gitlab: upgrade CE to v16.1.1

Dockerfile

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

3-
ARG VERSION=16.1.1
3+
ARG VERSION=16.1.2
44

55
ENV GITLAB_VERSION=${VERSION} \
66
RUBY_VERSION=3.0.6 \
77
RUBY_SOURCE_SHA256SUM="6e6cbd490030d7910c0ff20edefab4294dfcd1046f0f8f47f78b597987ac683e" \
88
GOLANG_VERSION=1.20.5 \
99
GITLAB_SHELL_VERSION=14.23.0 \
10-
GITLAB_PAGES_VERSION=16.1.1 \
11-
GITALY_SERVER_VERSION=16.1.1 \
10+
GITLAB_PAGES_VERSION=16.1.2 \
11+
GITALY_SERVER_VERSION=16.1.2 \
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:16.1.1
1+
# sameersbn/gitlab:16.1.2
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:16.1.1
128+
docker pull sameersbn/gitlab:16.1.2
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:16.1.1
197+
sameersbn/gitlab:16.1.2
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:16.1.1
232+
sameersbn/gitlab:16.1.2
233233
```
234234

235235
### Database
@@ -287,7 +287,7 @@ docker run --name gitlab -d \
287287
--env 'DB_NAME=gitlabhq_production' \
288288
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
289289
--volume /srv/docker/gitlab/gitlab:/home/git/data \
290-
sameersbn/gitlab:16.1.1
290+
sameersbn/gitlab:16.1.2
291291
```
292292

293293
##### Linking to PostgreSQL Container
@@ -331,7 +331,7 @@ We are now ready to start the GitLab application.
331331
```bash
332332
docker run --name gitlab -d --link gitlab-postgresql:postgresql \
333333
--volume /srv/docker/gitlab/gitlab:/home/git/data \
334-
sameersbn/gitlab:16.1.1
334+
sameersbn/gitlab:16.1.2
335335
```
336336

337337
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:
@@ -370,7 +370,7 @@ The image can be configured to use an external redis server. The configuration s
370370
```bash
371371
docker run --name gitlab -it --rm \
372372
--env 'REDIS_HOST=192.168.1.100' --env 'REDIS_PORT=6379' \
373-
sameersbn/gitlab:16.1.1
373+
sameersbn/gitlab:16.1.2
374374
```
375375

376376
#### Linking to Redis Container
@@ -397,7 +397,7 @@ We are now ready to start the GitLab application.
397397

398398
```bash
399399
docker run --name gitlab -d --link gitlab-redis:redisio \
400-
sameersbn/gitlab:16.1.1
400+
sameersbn/gitlab:16.1.2
401401
```
402402

403403
#### Mail
@@ -410,7 +410,7 @@ If you are using Gmail then all you need to do is:
410410
docker run --name gitlab -d \
411411
--env '[email protected]' --env 'SMTP_PASS=PASSWORD' \
412412
--volume /srv/docker/gitlab/gitlab:/home/git/data \
413-
sameersbn/gitlab:16.1.1
413+
sameersbn/gitlab:16.1.2
414414
```
415415

416416
Please refer the [Available Configuration Parameters](#available-configuration-parameters) section for the list of SMTP parameters that can be specified.
@@ -430,7 +430,7 @@ docker run --name gitlab -d \
430430
--env '[email protected]' --env 'IMAP_PASS=PASSWORD' \
431431
--env 'GITLAB_INCOMING_EMAIL_ADDRESS=USER+%{key}@gmail.com' \
432432
--volume /srv/docker/gitlab/gitlab:/home/git/data \
433-
sameersbn/gitlab:16.1.1
433+
sameersbn/gitlab:16.1.2
434434
```
435435

436436
Please refer the [Available Configuration Parameters](#available-configuration-parameters) section for the list of IMAP parameters that can be specified.
@@ -514,7 +514,7 @@ docker run --name gitlab -d \
514514
--env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_PORT=10443' \
515515
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
516516
--volume /srv/docker/gitlab/gitlab:/home/git/data \
517-
sameersbn/gitlab:16.1.1
517+
sameersbn/gitlab:16.1.2
518518
```
519519

520520
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.
@@ -530,7 +530,7 @@ docker run --name gitlab -d \
530530
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
531531
--env 'NGINX_HSTS_MAXAGE=2592000' \
532532
--volume /srv/docker/gitlab/gitlab:/home/git/data \
533-
sameersbn/gitlab:16.1.1
533+
sameersbn/gitlab:16.1.2
534534
```
535535

536536
If you want to completely disable HSTS set `NGINX_HSTS_ENABLED` to `false`.
@@ -553,7 +553,7 @@ docker run --name gitlab -d \
553553
--env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_PORT=443' \
554554
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
555555
--volume /srv/docker/gitlab/gitlab:/home/git/data \
556-
sameersbn/gitlab:16.1.1
556+
sameersbn/gitlab:16.1.2
557557
```
558558

559559
Again, drop the `--env 'SSL_SELF_SIGNED=true'` option if you are using CA certified SSL certificates.
@@ -601,7 +601,7 @@ Let's assume we want to deploy our application to '/git'. GitLab needs to know t
601601
docker run --name gitlab -it --rm \
602602
--env 'GITLAB_RELATIVE_URL_ROOT=/git' \
603603
--volume /srv/docker/gitlab/gitlab:/home/git/data \
604-
sameersbn/gitlab:16.1.1
604+
sameersbn/gitlab:16.1.2
605605
```
606606

607607
GitLab will now be accessible at the `/git` path, e.g. `http://www.example.com/git`.
@@ -783,14 +783,14 @@ Also the container processes seem to be executed as the host's user/group `1000`
783783
```bash
784784
docker run --name gitlab -it --rm [options] \
785785
--env "USERMAP_UID=$(id -u git)" --env "USERMAP_GID=$(id -g git)" \
786-
sameersbn/gitlab:16.1.1
786+
sameersbn/gitlab:16.1.2
787787
```
788788

789789
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:
790790

791791
```bash
792792
docker run --name gitlab -d [OPTIONS] \
793-
sameersbn/gitlab:16.1.1 app:sanitize
793+
sameersbn/gitlab:16.1.2 app:sanitize
794794
```
795795

796796
#### Piwik
@@ -2448,7 +2448,7 @@ Execute the rake task to create a backup.
24482448

24492449
```bash
24502450
docker run --name gitlab -it --rm [OPTIONS] \
2451-
sameersbn/gitlab:16.1.1 app:rake gitlab:backup:create
2451+
sameersbn/gitlab:16.1.2 app:rake gitlab:backup:create
24522452
```
24532453

24542454
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.
@@ -2483,14 +2483,14 @@ you need to prepare the database:
24832483

24842484
```bash
24852485
docker run --name gitlab -it --rm [OPTIONS] \
2486-
sameersbn/gitlab:16.1.1 app:rake db:setup
2486+
sameersbn/gitlab:16.1.2 app:rake db:setup
24872487
```
24882488

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

24912491
```bash
24922492
docker run --name gitlab -it --rm [OPTIONS] \
2493-
sameersbn/gitlab:16.1.1 app:rake gitlab:backup:restore
2493+
sameersbn/gitlab:16.1.2 app:rake gitlab:backup:restore
24942494
```
24952495

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

25002500
```bash
25012501
docker run --name gitlab -it --rm [OPTIONS] \
2502-
sameersbn/gitlab:16.1.1 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
2502+
sameersbn/gitlab:16.1.2 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
25032503
```
25042504

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

25492549
```bash
25502550
docker run --name gitlab -it --rm [OPTIONS] \
2551-
sameersbn/gitlab:16.1.1 app:rake gitlab:env:info
2551+
sameersbn/gitlab:16.1.2 app:rake gitlab:env:info
25522552
```
25532553

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

25622562
```bash
25632563
docker run --name gitlab -it --rm [OPTIONS] \
2564-
sameersbn/gitlab:16.1.1 app:rake gitlab:import:repos
2564+
sameersbn/gitlab:16.1.2 app:rake gitlab:import:repos
25652565
```
25662566

25672567
Or
@@ -2592,7 +2592,7 @@ Copy all the **bare** git repositories to the `repositories/` directory of the [
25922592

25932593
```bash
25942594
docker run --name gitlab -it --rm [OPTIONS] \
2595-
sameersbn/gitlab:16.1.1 app:rake gitlab:import:repos
2595+
sameersbn/gitlab:16.1.2 app:rake gitlab:import:repos
25962596
```
25972597

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

26172617
> **Note**
26182618
>
2619-
> Upgrading to `sameersbn/gitlab:16.1.1` 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.
2619+
> Upgrading to `sameersbn/gitlab:16.1.2` 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.
26202620
26212621
- **Step 1**: Update the docker image.
26222622

26232623
```bash
2624-
docker pull sameersbn/gitlab:16.1.1
2624+
docker pull sameersbn/gitlab:16.1.2
26252625
```
26262626

26272627
- **Step 2**: Stop and remove the currently running image
@@ -2646,7 +2646,7 @@ Replace `x.x.x` with the version you are upgrading from. For example, if you are
26462646
> **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.
26472647
26482648
```bash
2649-
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:16.1.1
2649+
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:16.1.2
26502650
```
26512651

26522652
### Shell Access
@@ -2684,7 +2684,7 @@ version: '2.3'
26842684

26852685
services:
26862686
gitlab:
2687-
image: sameersbn/gitlab:16.1.1
2687+
image: sameersbn/gitlab:16.1.2
26882688
healthcheck:
26892689
test: ["CMD", "/usr/local/sbin/healthcheck"]
26902690
interval: 1m

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.1.1
1+
16.1.2

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:16.1.1
25+
image: sameersbn/gitlab:16.1.2
2626
depends_on:
2727
- redis
2828
- postgresql

docker-compose.swarm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ services:
6363
- traefik-public
6464

6565
gitlab:
66-
image: sameersbn/gitlab:16.1.1
66+
image: sameersbn/gitlab:16.1.2
6767
depends_on:
6868
- redis
6969
- postgresql

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:16.1.1
25+
image: sameersbn/gitlab:16.1.2
2626
depends_on:
2727
- redis
2828
- postgresql

docs/container_registry.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ docker stop registry gitlab && docker rm registry gitlab
289289
Execute the rake task with a removeable container.
290290
```bash
291291
docker run --name gitlab -it --rm [OPTIONS] \
292-
sameersbn/gitlab:16.1.1 app:rake gitlab:backup:create
292+
sameersbn/gitlab:16.1.2 app:rake gitlab:backup:create
293293
```
294294
## Restoring Backups
295295

@@ -305,7 +305,7 @@ Execute the rake task to restore a backup. Make sure you run the container in in
305305

306306
```bash
307307
docker run --name gitlab -it --rm [OPTIONS] \
308-
sameersbn/gitlab:16.1.1 app:rake gitlab:backup:restore
308+
sameersbn/gitlab:16.1.2 app:rake gitlab:backup:restore
309309
```
310310

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

315315
```bash
316316
docker run --name gitlab -it --rm [OPTIONS] \
317-
sameersbn/gitlab:16.1.1 app:rake gitlab:backup:restore BACKUP=1417624827
317+
sameersbn/gitlab:16.1.2 app:rake gitlab:backup:restore BACKUP=1417624827
318318
```
319319

320320
# Upgrading from an existing GitLab installation
@@ -325,7 +325,7 @@ If you want enable this feature for an existing instance of GitLab you need to d
325325
- **Step 1**: Update the docker image.
326326

327327
```bash
328-
docker pull sameersbn/gitlab:16.1.1
328+
docker pull sameersbn/gitlab:16.1.2
329329
```
330330

331331
- **Step 2**: Stop and remove the currently running image
@@ -378,7 +378,7 @@ docker run --name gitlab -d [PREVIOUS_OPTIONS] \
378378
--env 'GITLAB_REGISTRY_CERT_PATH=/certs/registry-auth.crt' \
379379
--env 'GITLAB_REGISTRY_KEY_PATH=/certs/registry-auth.key' \
380380
--link registry:registry
381-
sameersbn/gitlab:16.1.1
381+
sameersbn/gitlab:16.1.2
382382
```
383383

384384

docs/docker-compose-keycloak.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:16.1.1
25+
image: sameersbn/gitlab:16.1.2
2626
depends_on:
2727
- redis
2828
- postgresql

docs/docker-compose-registry.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:16.1.1
25+
image: sameersbn/gitlab:16.1.2
2626
volumes:
2727
- gitlab-data:/home/git/data:Z
2828
- gitlab-logs:/var/log/gitlab

kubernetes/gitlab-rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
spec:
1515
containers:
1616
- name: gitlab
17-
image: sameersbn/gitlab:16.1.1
17+
image: sameersbn/gitlab:16.1.2
1818
env:
1919
- name: TZ
2020
value: Asia/Kolkata

0 commit comments

Comments
 (0)