Skip to content

Commit b35d4f2

Browse files
authored
Merge branch 'sameersbn:master' into omniauth-oidc
2 parents 8b477f0 + 30af35c commit b35d4f2

File tree

13 files changed

+73
-56
lines changed

13 files changed

+73
-56
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ jobs:
269269
release:
270270
executor:
271271
name: go/default
272-
tag: '1.14'
272+
tag: '1.22'
273273
steps:
274274
- checkout
275275
- run:
276276
name: Installing github-release tool
277-
command: go get github.com/meterup/github-release
277+
command: go install github.com/meterup/github-release@latest
278278
- run:
279279
name: Creating github release
280280
command: |

Changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
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+
**17.1.1**
6+
7+
- gitlab: upgrade CE to v17.1.1
8+
- gitaly: upgrade to v17.1.1
9+
- gitlab-pages: upgrade to v17.1.1
10+
11+
**17.1.0**
12+
13+
- gitlab: upgrade CE to v17.1.0
14+
- gitaly: upgrade to v17.1.0
15+
- gitlab-pages: upgrade to v17.1.0
16+
- gitlab-shell: upgrade to v14.36.0
17+
518
**17.0.2**
619

720
- gitlab: upgrade CE to v17.0.2

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
FROM ubuntu:focal-20240530
22

3-
ARG VERSION=17.0.2
3+
ARG VERSION=17.1.1
44

55
ENV GITLAB_VERSION=${VERSION} \
66
RUBY_VERSION=3.2.4 \
77
RUBY_SOURCE_SHA256SUM="c72b3c5c30482dca18b0f868c9075f3f47d8168eaf626d4e682ce5b59c858692" \
8+
RUBYGEMS_VERSION=3.5.14 \
89
GOLANG_VERSION=1.22.4 \
9-
GITLAB_SHELL_VERSION=14.35.0 \
10-
GITLAB_PAGES_VERSION=17.0.2 \
11-
GITALY_SERVER_VERSION=17.0.2 \
10+
GITLAB_SHELL_VERSION=14.36.0 \
11+
GITLAB_PAGES_VERSION=17.1.1 \
12+
GITALY_SERVER_VERSION=17.1.1 \
1213
GITLAB_USER="git" \
1314
GITLAB_HOME="/home/git" \
1415
GITLAB_LOG_DIR="/var/log/gitlab" \
@@ -36,8 +37,8 @@ RUN set -ex && \
3637
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu focal main" >> /etc/apt/sources.list \
3738
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
3839
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
39-
&& wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
40-
&& echo 'deb https://deb.nodesource.com/node_18.x focal main' > /etc/apt/sources.list.d/nodesource.list \
40+
&& wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | apt-key add - \
41+
&& echo 'deb https://deb.nodesource.com/node_20.x nodistro main' > /etc/apt/sources.list.d/nodesource.list \
4142
&& wget --quiet -O - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
4243
&& echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \
4344
&& set -ex \

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sameersbn/gitlab:17.0.2
1+
# sameersbn/gitlab:17.1.1
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.0.2
130+
docker pull sameersbn/gitlab:17.1.1
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.0.2
201+
sameersbn/gitlab:17.1.1
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.0.2
236+
sameersbn/gitlab:17.1.1
237237
```
238238

239239
### Database
@@ -291,7 +291,7 @@ docker run --name gitlab -d \
291291
--env 'DB_NAME=gitlabhq_production' \
292292
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
293293
--volume /srv/docker/gitlab/gitlab:/home/git/data \
294-
sameersbn/gitlab:17.0.2
294+
sameersbn/gitlab:17.1.1
295295
```
296296

297297
##### Linking to PostgreSQL Container
@@ -335,7 +335,7 @@ We are now ready to start the GitLab application.
335335
```bash
336336
docker run --name gitlab -d --link gitlab-postgresql:postgresql \
337337
--volume /srv/docker/gitlab/gitlab:/home/git/data \
338-
sameersbn/gitlab:17.0.2
338+
sameersbn/gitlab:17.1.1
339339
```
340340

341341
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:
@@ -374,7 +374,7 @@ The image can be configured to use an external redis server. The configuration s
374374
```bash
375375
docker run --name gitlab -it --rm \
376376
--env 'REDIS_HOST=192.168.1.100' --env 'REDIS_PORT=6379' \
377-
sameersbn/gitlab:17.0.2
377+
sameersbn/gitlab:17.1.1
378378
```
379379

380380
#### Linking to Redis Container
@@ -401,7 +401,7 @@ We are now ready to start the GitLab application.
401401

402402
```bash
403403
docker run --name gitlab -d --link gitlab-redis:redisio \
404-
sameersbn/gitlab:17.0.2
404+
sameersbn/gitlab:17.1.1
405405
```
406406

407407
#### Mail
@@ -414,7 +414,7 @@ If you are using Gmail then all you need to do is:
414414
docker run --name gitlab -d \
415415
--env '[email protected]' --env 'SMTP_PASS=PASSWORD' \
416416
--volume /srv/docker/gitlab/gitlab:/home/git/data \
417-
sameersbn/gitlab:17.0.2
417+
sameersbn/gitlab:17.1.1
418418
```
419419

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

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

524524
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.
@@ -534,7 +534,7 @@ docker run --name gitlab -d \
534534
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
535535
--env 'NGINX_HSTS_MAXAGE=2592000' \
536536
--volume /srv/docker/gitlab/gitlab:/home/git/data \
537-
sameersbn/gitlab:17.0.2
537+
sameersbn/gitlab:17.1.1
538538
```
539539

540540
If you want to completely disable HSTS set `NGINX_HSTS_ENABLED` to `false`.
@@ -557,7 +557,7 @@ docker run --name gitlab -d \
557557
--env 'GITLAB_SSH_PORT=10022' --env 'GITLAB_PORT=443' \
558558
--env 'GITLAB_HTTPS=true' --env 'SSL_SELF_SIGNED=true' \
559559
--volume /srv/docker/gitlab/gitlab:/home/git/data \
560-
sameersbn/gitlab:17.0.2
560+
sameersbn/gitlab:17.1.1
561561
```
562562

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

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

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

819819
```bash
820820
docker run --name gitlab -d [OPTIONS] \
821-
sameersbn/gitlab:17.0.2 app:sanitize
821+
sameersbn/gitlab:17.1.1 app:sanitize
822822
```
823823

824824
#### Piwik
@@ -833,10 +833,10 @@ These options should contain something like:
833833

834834
In this section, we talk about feature flags that administrators can change the state (See <https://docs.gitlab.com/ee/administration/feature_flags.html>). If you are looking for documentation for "Feature flags" that configured on project deploy settings, see <https://docs.gitlab.com/ee/operations/feature_flags.html>
835835

836-
GitLab adopted feature flags strategies to deploy features in an early stage of development so that they can be incrementally rolled out. GitLab administrators with access to the [Rails console](https://docs.gitlab.com/ee/administration/feature_flags.html#how-to-enable-and-disable-features-behind-flags) or the [Feature flags API](https://docs.gitlab.com/ee/api/features.html) can control them (note that `sameersbn/gitlab` is a container image that provides GitLab installations from the source).
837-
You can see all feature flags in GitLab at corresponding version of documentation: <https://docs.gitlab.com/ee/user/feature_flags.html>
836+
GitLab adopted feature flags strategies to deploy features in an early stage of development so that they can be incrementally rolled out. GitLab administrators with access to the [Rails console](https://docs.gitlab.com/ee/administration/feature_flags.html#how-to-enable-and-disable-features-behind-flags) or the [Feature flags API](https://docs.gitlab.com/ee/api/features.html) can control them (note that `sameersbn/gitlab` is a container image that provides GitLab installations from the source).
837+
You can see all feature flags in GitLab at corresponding version of documentation: <https://docs.gitlab.com/ee/user/feature_flags.html>
838838

839-
For `sameersbn/gitlab`, you can control them via environment parameter [`GITLAB_FEATURE_FLAGS_DISABLE_TARGETS`](#gitlab_feature_flags_disable_targets) and [`GITLAB_FEATURE_FLAGS_ENABLE_TARGETS`](#gitlab_feature_flags_enable_targets) in addition to the above methods.
839+
For `sameersbn/gitlab`, you can control them via environment parameter [`GITLAB_FEATURE_FLAGS_DISABLE_TARGETS`](#gitlab_feature_flags_disable_targets) and [`GITLAB_FEATURE_FLAGS_ENABLE_TARGETS`](#gitlab_feature_flags_enable_targets) in addition to the above methods.
840840
This image searches yml files in [`${GITLAB_INSTALL_DIR}/config/feature_flags`](https://gitlab.com/gitlab-org/gitlab-foss/-/tree/master/config/feature_flags) (typically `/home/git/gitlab/config/feature_flags/`) recursively and use the file list as a source of active feature flags.
841841

842842
Here is a part of example `docker-compose.yml`:
@@ -850,7 +850,7 @@ services:
850850
- GITLAB_FEATURE_FLAGS_ENABLE_TARGETS=git_push_create_all_pipelines,build_service_proxy
851851
````
852852

853-
Once the container up, you can see following messages in container log like below.
853+
Once the container up, you can see following messages in container log like below.
854854

855855
````sh
856856
...
@@ -1699,9 +1699,9 @@ The value of the `report-uri` directive in the `Content-Security-Policy` header
16991699

17001700
##### `GITLAB_FEATURE_FLAGS_DISABLE_TARGETS`
17011701

1702-
Comma separated list of feature flag names to be disabled. No whitespace is allowed.
1703-
You can see all feature flags in GitLab at corresponding version of documentation: <https://docs.gitlab.com/ee/user/feature_flags.html>
1704-
Feature flags name and its statement will be appear to container log. Note that some of the feature flags are implicitly enabled or disabled by GitLab itself, and are not appear to container log.
1702+
Comma separated list of feature flag names to be disabled. No whitespace is allowed.
1703+
You can see all feature flags in GitLab at corresponding version of documentation: <https://docs.gitlab.com/ee/user/feature_flags.html>
1704+
Feature flags name and its statement will be appear to container log. Note that some of the feature flags are implicitly enabled or disabled by GitLab itself, and are not appear to container log.
17051705
No defaults.
17061706

17071707
##### `GITLAB_FEATURE_FLAGS_ENABLE_TARGETS`
@@ -2482,8 +2482,8 @@ Enable/disable rack middleware for blocking & throttling abusive requests Defaul
24822482

24832483
##### `RACK_ATTACK_WHITELIST`
24842484

2485-
Always allow requests from whitelisted host.
2486-
This should be a valid yaml sequence of host address. Each host address string must be a valid IP address that can be passed to `IPAddr.new` of ruby. See [ruby-lang reference](https://docs.ruby-lang.org/en/3.0/IPAddr.html#method-c-new) for detail.
2485+
Always allow requests from whitelisted host.
2486+
This should be a valid yaml sequence of host address. Each host address string must be a valid IP address that can be passed to `IPAddr.new` of ruby. See [ruby-lang reference](https://docs.ruby-lang.org/en/3.0/IPAddr.html#method-c-new) for detail.
24872487
If you need to set multiple hosts, set this parameter like `["1.1.1.1","192.168.0.0/24"]` for example. In docker-compose.yml, you have to quote whole value like below:
24882488

24892489
````yaml
@@ -2561,7 +2561,7 @@ Execute the rake task to create a backup.
25612561

25622562
```bash
25632563
docker run --name gitlab -it --rm [OPTIONS] \
2564-
sameersbn/gitlab:17.0.2 app:rake gitlab:backup:create
2564+
sameersbn/gitlab:17.1.1 app:rake gitlab:backup:create
25652565
```
25662566

25672567
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.
@@ -2596,14 +2596,14 @@ you need to prepare the database:
25962596

25972597
```bash
25982598
docker run --name gitlab -it --rm [OPTIONS] \
2599-
sameersbn/gitlab:17.0.2 app:rake db:setup
2599+
sameersbn/gitlab:17.1.1 app:rake db:setup
26002600
```
26012601

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

26042604
```bash
26052605
docker run --name gitlab -it --rm [OPTIONS] \
2606-
sameersbn/gitlab:17.0.2 app:rake gitlab:backup:restore
2606+
sameersbn/gitlab:17.1.1 app:rake gitlab:backup:restore
26072607
```
26082608

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

26132613
```bash
26142614
docker run --name gitlab -it --rm [OPTIONS] \
2615-
sameersbn/gitlab:17.0.2 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
2615+
sameersbn/gitlab:17.1.1 app:rake gitlab:backup:restore BACKUP=1515629493_2020_12_06_13.0.6
26162616
```
26172617

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

26622662
```bash
26632663
docker run --name gitlab -it --rm [OPTIONS] \
2664-
sameersbn/gitlab:17.0.2 app:rake gitlab:env:info
2664+
sameersbn/gitlab:17.1.1 app:rake gitlab:env:info
26652665
```
26662666

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

26752675
```bash
26762676
docker run --name gitlab -it --rm [OPTIONS] \
2677-
sameersbn/gitlab:17.0.2 app:rake gitlab:import:repos
2677+
sameersbn/gitlab:17.1.1 app:rake gitlab:import:repos
26782678
```
26792679

26802680
Or
@@ -2705,7 +2705,7 @@ Copy all the **bare** git repositories to the `repositories/` directory of the [
27052705

27062706
```bash
27072707
docker run --name gitlab -it --rm [OPTIONS] \
2708-
sameersbn/gitlab:17.0.2 app:rake gitlab:import:repos
2708+
sameersbn/gitlab:17.1.1 app:rake gitlab:import:repos
27092709
```
27102710

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

27302730
> **Note**
27312731
>
2732-
> Upgrading to `sameersbn/gitlab:17.0.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.
2732+
> Upgrading to `sameersbn/gitlab:17.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.
27332733

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

27362736
```bash
2737-
docker pull sameersbn/gitlab:17.0.2
2737+
docker pull sameersbn/gitlab:17.1.1
27382738
```
27392739

27402740
- **Step 2**: Stop and remove the currently running image
@@ -2760,7 +2760,7 @@ Replace `x.x.x` with the version you are upgrading from. For example, if you are
27602760
> **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`.
27612761

27622762
```bash
2763-
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:17.0.2
2763+
docker run --name gitlab -d [OPTIONS] sameersbn/gitlab:17.1.1
27642764
```
27652765

27662766
### Shell Access
@@ -2798,7 +2798,7 @@ version: '2.3'
27982798
27992799
services:
28002800
gitlab:
2801-
image: sameersbn/gitlab:17.0.2
2801+
image: sameersbn/gitlab:17.1.1
28022802
healthcheck:
28032803
test: ["CMD", "/usr/local/sbin/healthcheck"]
28042804
interval: 1m

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.0.2
1+
17.1.1

assets/build/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ make -j"$(nproc)"
5656
make install
5757
cd "$PWD_ORG" && rm -rf /tmp/ruby
5858

59+
# upgrade rubygems on demand
60+
gem update --no-document --system "${RUBYGEMS_VERSION}"
61+
5962
# PaX-mark ruby
6063
# Applying the mark late here does make the build usable on PaX kernels, but
6164
# still the build itself must be executed on a non-PaX kernel. It's done here

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

0 commit comments

Comments
 (0)