Skip to content

Commit 387f502

Browse files
authored
Merge pull request #3056 from sachilles/upgrade-to-17.7.0
Upgrade to 17.7.0
2 parents fe05745 + 6021bab commit 387f502

14 files changed

+68
-61
lines changed

Changelog.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22

3-
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.
3+
This file only reflects the changes that are made in this image. Please refer to the upstream GitLab [CHANGELOG](https://
4+
gitlab.com/gitlab-org/gitlab-foss/blob/master/CHANGELOG.md) for the list of changes in GitLab.
5+
6+
**17.7.0**
7+
8+
- gitlab: upgrade CE to v17.7.0
9+
- gitaly: upgrade to v17.7.0
10+
- gitlab-pages: upgrade to v17.7.0
11+
- ubuntu: upgrade to jammy-20240911.1
12+
- update healthcheck for postgresql
413

514
**17.6.3**
615

Dockerfile

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
FROM ubuntu:focal-20241011
1+
FROM ubuntu:jammy-20240911.1
22

3-
ARG VERSION=17.6.3
3+
ARG VERSION=17.7.0
44

55
ENV GITLAB_VERSION=${VERSION} \
66
RUBY_VERSION=3.2.6 \
77
RUBY_SOURCE_SHA256SUM="d9cb65ecdf3f18669639f2638b63379ed6fbb17d93ae4e726d4eb2bf68a48370" \
88
RUBYGEMS_VERSION=3.5.14 \
99
GOLANG_VERSION=1.23.5 \
1010
GITLAB_SHELL_VERSION=14.39.0 \
11-
GITLAB_PAGES_VERSION=17.6.3 \
12-
GITALY_SERVER_VERSION=17.6.3 \
11+
GITLAB_PAGES_VERSION=17.7.0 \
12+
GITALY_SERVER_VERSION=17.7.0 \
1313
GITLAB_USER="git" \
1414
GITLAB_HOME="/home/git" \
1515
GITLAB_LOG_DIR="/var/log/gitlab" \
@@ -32,11 +32,9 @@ RUN apt-get update \
3232

3333
RUN set -ex && \
3434
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
35-
&& echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main" >> /etc/apt/sources.list \
36-
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \
37-
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu focal main" >> /etc/apt/sources.list \
35+
&& echo "deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy main" >> /etc/apt/sources.list \
3836
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
39-
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
37+
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
4038
&& wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | apt-key add - \
4139
&& echo 'deb https://deb.nodesource.com/node_20.x nodistro main' > /etc/apt/sources.list.d/nodesource.list \
4240
&& wget --quiet -O - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
@@ -46,12 +44,13 @@ RUN set -ex && \
4644
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
4745
sudo supervisor logrotate locales curl \
4846
nginx openssh-server postgresql-contrib redis-tools \
49-
postgresql-client-13 postgresql-client-14 postgresql-client-15 postgresql-client-16 \
47+
postgresql-client-13 postgresql-client-14 postgresql-client-15 postgresql-client-16 postgresql-client-17 \
5048
python3 python3-docutils nodejs yarn gettext-base graphicsmagick \
51-
libpq5 zlib1g libyaml-0-2 libssl1.1 \
52-
libgdbm6 libreadline8 libncurses5 libffi7 \
53-
libxml2 libxslt1.1 libcurl4 libicu66 libre2-dev tzdata unzip libimage-exiftool-perl \
54-
libmagic1 \
49+
libpq5 zlib1g libyaml-dev libssl-dev libgdbm-dev libre2-dev \
50+
libreadline-dev libncurses5-dev libffi-dev curl openssh-server libxml2-dev libxslt-dev \
51+
libcurl4-openssl-dev libicu-dev libkrb5-dev rsync python3-docutils pkg-config cmake \
52+
runit-systemd \
53+
tzdata unzip libimage-exiftool-perl libmagic1 \
5554
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
5655
&& locale-gen en_US.UTF-8 \
5756
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sameersbn/gitlab:17.6.3
1+
# sameersbn/gitlab:17.7.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

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

129129
```bash
130-
docker pull sameersbn/gitlab:17.6.3
130+
docker pull sameersbn/gitlab:17.7.0
131131
```
132132

133133
You can also pull the `latest` tag which is built from the repository *HEAD*
@@ -198,7 +198,7 @@ docker run --name gitlab -d \
198198
--env 'GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alpha-numeric-string' \
199199
--env 'GITLAB_SECRETS_ENCRYPTED_SETTINGS_KEY_BASE=long-and-random-alpha-numeric-string' \
200200
--volume /srv/docker/gitlab/gitlab:/home/git/data \
201-
sameersbn/gitlab:17.6.3
201+
sameersbn/gitlab:17.7.0
202202
```
203203

204204
*Please refer to [Available Configuration Parameters](#available-configuration-parameters) to understand `GITLAB_PORT` and other configuration options*
@@ -233,7 +233,7 @@ Volumes can be mounted in docker by specifying the `-v` option in the docker run
233233
```bash
234234
docker run --name gitlab -d \
235235
--volume /srv/docker/gitlab/gitlab:/home/git/data \
236-
sameersbn/gitlab:17.6.3
236+
sameersbn/gitlab:17.7.0
237237
```
238238

239239
### Database
@@ -292,7 +292,7 @@ docker run --name gitlab -d \
292292
--env 'DB_NAME=gitlabhq_production' \
293293
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
294294
--volume /srv/docker/gitlab/gitlab:/home/git/data \
295-
sameersbn/gitlab:17.6.3
295+
sameersbn/gitlab:17.7.0
296296
```
297297

298298
##### Linking to PostgreSQL Container
@@ -336,7 +336,7 @@ We are now ready to start the GitLab application.
336336
```bash
337337
docker run --name gitlab -d --link gitlab-postgresql:postgresql \
338338
--volume /srv/docker/gitlab/gitlab:/home/git/data \
339-
sameersbn/gitlab:17.6.3
339+
sameersbn/gitlab:17.7.0
340340
```
341341

342342
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:
@@ -375,7 +375,7 @@ The image can be configured to use an external redis server. The configuration s
375375
```bash
376376
docker run --name gitlab -it --rm \
377377
--env 'REDIS_HOST=192.168.1.100' --env 'REDIS_PORT=6379' \
378-
sameersbn/gitlab:17.6.3
378+
sameersbn/gitlab:17.7.0
379379
```
380380

381381
#### Linking to Redis Container
@@ -402,7 +402,7 @@ We are now ready to start the GitLab application.
402402

403403
```bash
404404
docker run --name gitlab -d --link gitlab-redis:redisio \
405-
sameersbn/gitlab:17.6.3
405+
sameersbn/gitlab:17.7.0
406406
```
407407

408408
#### Mail
@@ -415,7 +415,7 @@ If you are using Gmail then all you need to do is:
415415
docker run --name gitlab -d \
416416
--env '[email protected]' --env 'SMTP_PASS=PASSWORD' \
417417
--volume /srv/docker/gitlab/gitlab:/home/git/data \
418-
sameersbn/gitlab:17.6.3
418+
sameersbn/gitlab:17.7.0
419419
```
420420

421421
Please refer the [Available Configuration Parameters](#available-configuration-parameters) section for the list of SMTP parameters that can be specified.
@@ -435,7 +435,7 @@ docker run --name gitlab -d \
435435
--env '[email protected]' --env 'IMAP_PASS=PASSWORD' \
436436
--env 'GITLAB_INCOMING_EMAIL_ADDRESS=USER+%{key}@gmail.com' \
437437
--volume /srv/docker/gitlab/gitlab:/home/git/data \
438-
sameersbn/gitlab:17.6.3
438+
sameersbn/gitlab:17.7.0
439439
```
440440

441441
Please refer the [Available Configuration Parameters](#available-configuration-parameters) section for the list of IMAP parameters that can be specified.
@@ -519,7 +519,7 @@ docker run --name gitlab -d \
519519
--env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_PORT=10443' \
520520
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
521521
--volume /srv/docker/gitlab/gitlab:/home/git/data \
522-
sameersbn/gitlab:17.6.3
522+
sameersbn/gitlab:17.7.0
523523
```
524524

525525
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.
@@ -535,7 +535,7 @@ docker run --name gitlab -d \
535535
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
536536
--env 'NGINX_HSTS_MAXAGE=2592000' \
537537
--volume /srv/docker/gitlab/gitlab:/home/git/data \
538-
sameersbn/gitlab:17.6.3
538+
sameersbn/gitlab:17.7.0
539539
```
540540

541541
If you want to completely disable HSTS set `NGINX_HSTS_ENABLED` to `false`.
@@ -558,7 +558,7 @@ docker run --name gitlab -d \
558558
--env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_PORT=443' \
559559
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
560560
--volume /srv/docker/gitlab/gitlab:/home/git/data \
561-
sameersbn/gitlab:17.6.3
561+
sameersbn/gitlab:17.7.0
562562
```
563563

564564
Again, drop the `--env 'SSL_SELF_SIGNED=true'` option if you are using CA certified SSL certificates.
@@ -606,7 +606,7 @@ Let's assume we want to deploy our application to '/git'. GitLab needs to know t
606606
docker run --name gitlab -it --rm \
607607
--env 'GITLAB_RELATIVE_URL_ROOT=/git' \
608608
--volume /srv/docker/gitlab/gitlab:/home/git/data \
609-
sameersbn/gitlab:17.6.3
609+
sameersbn/gitlab:17.7.0
610610
```
611611

612612
GitLab will now be accessible at the `/git` path, e.g. `http://www.example.com/git`.
@@ -812,14 +812,14 @@ Also the container processes seem to be executed as the host's user/group `1000`
812812
```bash
813813
docker run --name gitlab -it --rm [options] \
814814
--env "USERMAP_UID=$(id -u git)" --env "USERMAP_GID=$(id -g git)" \
815-
sameersbn/gitlab:17.6.3
815+
sameersbn/gitlab:17.7.0
816816
```
817817

818818
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:
819819

820820
```bash
821821
docker run --name gitlab -d [OPTIONS] \
822-
sameersbn/gitlab:17.6.3 app:sanitize
822+
sameersbn/gitlab:17.7.0 app:sanitize
823823
```
824824

825825
#### Piwik
@@ -2562,7 +2562,7 @@ Execute the rake task to create a backup.
25622562

25632563
```bash
25642564
docker run --name gitlab -it --rm [OPTIONS] \
2565-
sameersbn/gitlab:17.6.3 app:rake gitlab:backup:create
2565+
sameersbn/gitlab:17.7.0 app:rake gitlab:backup:create
25662566
```
25672567

25682568
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.
@@ -2597,14 +2597,14 @@ you need to prepare the database:
25972597

25982598
```bash
25992599
docker run --name gitlab -it --rm [OPTIONS] \
2600-
sameersbn/gitlab:17.6.3 app:rake db:setup
2600+
sameersbn/gitlab:17.7.0 app:rake db:setup
26012601
```
26022602

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

26052605
```bash
26062606
docker run --name gitlab -it --rm [OPTIONS] \
2607-
sameersbn/gitlab:17.6.3 app:rake gitlab:backup:restore
2607+
sameersbn/gitlab:17.7.0 app:rake gitlab:backup:restore
26082608
```
26092609

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

26142614
```bash
26152615
docker run --name gitlab -it --rm [OPTIONS] \
2616-
sameersbn/gitlab:17.6.3 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
2616+
sameersbn/gitlab:17.7.0 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
26172617
```
26182618

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

26632663
```bash
26642664
docker run --name gitlab -it --rm [OPTIONS] \
2665-
sameersbn/gitlab:17.6.3 app:rake gitlab:env:info
2665+
sameersbn/gitlab:17.7.0 app:rake gitlab:env:info
26662666
```
26672667

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

26762676
```bash
26772677
docker run --name gitlab -it --rm [OPTIONS] \
2678-
sameersbn/gitlab:17.6.3 app:rake gitlab:import:repos
2678+
sameersbn/gitlab:17.7.0 app:rake gitlab:import:repos
26792679
```
26802680

26812681
Or
@@ -2706,7 +2706,7 @@ Copy all the **bare** git repositories to the `repositories/` directory of the [
27062706

27072707
```bash
27082708
docker run --name gitlab -it --rm [OPTIONS] \
2709-
sameersbn/gitlab:17.6.3 app:rake gitlab:import:repos
2709+
sameersbn/gitlab:17.7.0 app:rake gitlab:import:repos
27102710
```
27112711

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

27312731
> **Note**
27322732
>
2733-
> Upgrading to `sameersbn/gitlab:17.6.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.
2733+
> Upgrading to `sameersbn/gitlab:17.7.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.
27342734

27352735
- **Step 1**: Update the docker image.
27362736

27372737
```bash
2738-
docker pull sameersbn/gitlab:17.6.3
2738+
docker pull sameersbn/gitlab:17.7.0
27392739
```
27402740

27412741
- **Step 2**: Stop and remove the currently running image
@@ -2761,7 +2761,7 @@ Replace `x.x.x` with the version you are upgrading from. For example, if you are
27612761
> **Note**: Since Gitlab 13.7 you need to provide the `GITLAB_SECRETS_ENCRYPTED_SETTINGS_KEY_BASE` parameter while starting the image. If not provided, the key will be generated by gitlab. So you can start the image without setting this parameter. But you will lose the key when you shutting down the container without taking a backup of `secrets.yml`.
27622762

27632763
```bash
2764-
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:17.6.3
2764+
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:17.7.0
27652765
```
27662766

27672767
### Shell Access
@@ -2799,7 +2799,7 @@ version: '2.3'
27992799
28002800
services:
28012801
gitlab:
2802-
image: sameersbn/gitlab:17.6.3
2802+
image: sameersbn/gitlab:17.7.0
28032803
healthcheck:
28042804
test: ["CMD", "/usr/local/sbin/healthcheck"]
28052805
interval: 1m

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.6.3
1+
17.7.0

assets/build/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export GOROOT PATH
2121

2222
BUILD_DEPENDENCIES="gcc g++ make patch pkg-config cmake paxctl \
2323
libc6-dev \
24-
libpq-dev zlib1g-dev libyaml-dev libssl-dev \
24+
libpq-dev zlib1g-dev libssl-dev \
2525
libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
2626
libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev \
2727
gettext libkrb5-dev \

assets/build/patches/gitlabhq/0003-fix_preinstall.mjs-to-avoid-removing-node_modules_dir.patch

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
diff --git a/scripts/frontend/preinstall.mjs b/scripts/frontend/preinstall.mjs
2-
index 09d980344eac..b1514e803b75 100644
2+
index e86525cd20d2..f849c423f1b6 100644
33
--- a/scripts/frontend/preinstall.mjs
44
+++ b/scripts/frontend/preinstall.mjs
5-
@@ -1,6 +1,6 @@
6-
import { dirname, join } from 'node:path';
7-
import { fileURLToPath } from 'node:url';
5+
@@ -1,5 +1,5 @@
6+
import { join } from 'node:path';
87
-import { readFile, rm } from 'node:fs/promises';
98
+import { readdir, readFile, rm, stat } from 'node:fs/promises';
109

11-
const ROOT_PATH = join(dirname(fileURLToPath(import.meta.url)), '..', '..');
10+
const ROOT_PATH = join(import.meta.dirname, '..', '..');
1211
const NODE_MODULES = join(ROOT_PATH, 'node_modules');
13-
@@ -55,5 +55,14 @@ if (!arraysHaveSameItems(prevTopLevelPatterns, currentTopLevelPatterns)) {
12+
@@ -54,5 +54,14 @@ if (!arraysHaveSameItems(prevTopLevelPatterns, currentTopLevelPatterns)) {
1413
console.error(
1514
'[WARNING] package.json changed significantly. Removing node_modules to be sure there are no problems.',
1615
);

assets/runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ gitlab_finalize_database_parameters() {
149149

150150
gitlab_check_database_connection() {
151151

152-
prog=$(find /usr/lib/postgresql/ -name pg_isready -type f | sort | tail -n1)
152+
prog=$(command -v pg_isready)
153153
prog="${prog} -h ${DB_HOST} -p ${DB_PORT} -U ${DB_USER} -d ${DB_NAME} -t 1"
154154

155155
timeout=60

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

0 commit comments

Comments
 (0)