3788 Commits

Author SHA1 Message Date
Steven Achilles
7a536bcdfd Upgrade to GitLab CE 16.8.0 2024-01-19 22:59:19 +01:00
Steven Achilles
5b092729fa
Merge pull request #2884 from kkimurak/issue/2866-fix-assets_webpack_manifest.json-not-found
Add build patch to prevent rake task assets:compile to remove assets dir
2024-01-19 22:53:40 +01:00
Steven Achilles
de1350b884
Merge pull request #2883 from kkimurak/remove-ajv-as-an-explicit-deps
Remove ajv as an explicit dependency
2024-01-19 22:46:53 +01:00
Kazunori Kimura
3885a455d1 Add build patch to prevent rake task assets:compile to remove assets dir
GitLab does not launch after second run if relative url is used.
This is caused by following upstream change to remove assets directory on assets compile.
See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/103715

This is introduced on v15.6.0
````sh
$ git -C ../gitlab.git/ tag --contains e46d92c0 | sort --version-sort | head -n 1
v15.6.0-ee
````

1. `sameersbn/gitlab` create symbolic link /home/git/gitlab/public/assets/
  to point /home/git/data/tmp/assets if relative url is used.
  This is to store assets in the docker volume to avoid unnecessary recompilations.
  These assets are removed and recompiled only when the gitlab version or relative url root is changed.
2. By the change provided by gitlab.com/gitlab-org/gitlab!103715,
  rake task `gitlab:assets:compile` became to remove assets directory directly (by `FileUtils.rm_rf()`).
  It does not remove compiled assets itself, but remove symlink /home/git/gitlab/public/assets .
  Then it compiles assets as usual, but they will be stored in newly-created normal directory /home/git/gitlab/public/assets/
3. On container down, whole container statement (except volumes) will be reset.
  These compiled assets will be removed as well because they are not in docker volume.
4. As we store version info and relative url root path to /home/git/data/tmp/,
  we cannot recognize we have to recompile assets (that have been removed by mistake)

To avoid the issue, this commit add a build time patch to change the behavior of rake task `gitlab:assets:compile`
to empty assets instead of removing assets directory itself.
2024-01-18 18:10:26 +09:00
Kazunori Kimura
d16119b54b Remove ajv as an explicit dependency
There was an issue that `ajv` is not installed by mistake.
This issue have been fixed on upstream, a few years ago.

Now, we can revert the change.
This commit partially reverts 985d57afb9673b2f5acb1f12cbc13f230f6ec074
See sameersbn/gitlab#1358

It seems that fix MR on upstream is https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14543
but we cannot check diff because source / target branch removed by mistake

Anyway, no need to add ajv as an explicit dependency with (at least) gitlab v11 or later
2024-01-18 15:42:17 +09:00
Steven Achilles
8daea8cd17
Merge pull request #2882 from sachilles/upgrade-to-16.7.3
Upgrade to GitLab CE 16.7.3
16.7.3
2024-01-13 17:07:13 +01:00
Steven Achilles
2e8f9ced9f Upgrade to GitLab CE 16.7.3 2024-01-13 15:36:59 +01:00
Steven Achilles
8103089ce9
Merge pull request #2879 from sachilles/Update-golang
Upgrade golang to v1.21.6
16.7.2
2024-01-12 22:59:20 +01:00
Steven Achilles
80866611b5 Upgrade golang to v1.21.6 2024-01-12 22:03:51 +01:00
Steven Achilles
80be924b8d
Merge pull request #2876 from nickshek/master
[GitLab Critical Security Release] Update GitLab version to 16.7.2
2024-01-12 22:02:35 +01:00
Nick Shek
ee8cd340ca Update GitLab version to 16.7.2 2024-01-12 17:59:34 +08:00
nickshek
9b81374361 Update GitLab version to 16.7.2 2024-01-12 17:35:14 +08:00
Steven Achilles
03e58ed5e5
Merge pull request #2871 from sachilles/upgrade-to-16.7.0
Upgrade to GitLab CE 16.7.0
16.7.0
2023-12-25 09:25:05 +01:00
Steven Achilles
00911c934d Upgrade to GitLab CE 16.7.0 2023-12-24 13:11:35 +01:00
Steven Achilles
d8013c3073
Merge pull request #2870 from sachilles/upgrade-to-16.6.2
[GitLab Security Release] Upgrade to GitLab CE 16.6.2
16.6.2
2023-12-17 00:24:16 +01:00
Steven Achilles
d6a78cca23 Upgrade to GitLab CE 16.6.2 2023-12-16 23:29:00 +01:00
Steven Achilles
c8f1f4c860
Merge pull request #2864 from alexislefebvre/patch-1
README.md: Docker is not new anymore
2023-12-16 23:13:07 +01:00
Alexis Lefebvre
ee2d082621
README.md: Docker is not new anymore 2023-12-04 11:43:53 +01:00
Steven Achilles
01d8073002
Merge pull request #2863 from sachilles/upgrade-to-16.6.1
[GitLab Security Release] Upgrade to GitLab CE 16.6.1
16.6.1
2023-12-02 09:46:05 +01:00
Steven Achilles
d74fb49fc9 Upgrade to GitLab CE 16.6.1 2023-12-02 08:49:39 +01:00
Steven Achilles
53cfbea509
Merge pull request #2857 from sachilles/upgrade-to-16.6.0
Upgrade to GitLab CE 16.6.0
16.6.0
2023-11-19 15:00:43 +01:00
Steven Achilles
d37154d59f Upgrade to GitLab CE 16.6.0 2023-11-19 13:58:48 +01:00
Steven Achilles
2f5b09717a
Merge pull request #2854 from froque/upgrade_postgres_instructions
Upgrade instructions from Postgresql 12 to 14
2023-11-19 13:42:14 +01:00
Steven Achilles
af17c908cf
Merge pull request #2847 from kkimurak/add-patch-for-preinstall.mjs-relative_url
Add build patch to avoid removing node_modules
2023-11-19 13:29:05 +01:00
Filipe Roque
51cc21dfc8 Bump orb to circleci/docker@2.4.0 2023-11-09 13:53:04 +00:00
Filipe Roque
c814fb7ac9 Upgrade instructions form Postgresql 12 to 14
Postgres 15 has a permissions problem.
See https://github.com/sameersbn/docker-postgresql/issues/168
2023-11-09 11:54:36 +00:00
Steven Achilles
53d1ab4521
Merge pull request #2853 from sachilles/upgrade-to-16.5.1
[GitLab Security Release] Upgrade to GitLab CE 16.5.1
16.5.1
2023-11-03 23:15:22 +01:00
Steven Achilles
bac9b4f876 Upgrade to GitLab CE 16.5.1 2023-11-03 22:16:56 +01:00
Steven Achilles
d7fc3877dc
Merge pull request #2849 from massej/massej/oauth_allow_bypass_two_factor
Added missing configuration variable OAUTH_ALLOW_BYPASS_TWO_FACTOR.
2023-11-03 22:03:58 +01:00
massej
e574613c9e
Update assets/runtime/config/gitlabhq/gitlab.yml
Co-authored-by: Kazunori Kimura <33391846+kkimurak@users.noreply.github.com>
2023-10-24 08:23:11 -04:00
massej
9500ad163b
Update README.md
Co-authored-by: Kazunori Kimura <33391846+kkimurak@users.noreply.github.com>
2023-10-24 08:23:00 -04:00
massej
0001125859
Update env-defaults 2023-10-24 08:22:08 -04:00
massej
6021919e32
Update docker-compose.yml 2023-10-24 08:21:28 -04:00
massej
d11ae7b617
Added missing configuration variable OAUTH_ALLOW_BYPASS_TWO_FACTOR. 2023-10-23 22:17:20 -04:00
Steven Achilles
800dae76dc
Merge pull request #2848 from sachilles/upgrade-to-16.5.0
Upgrade to GitLab CE 16.5.0
16.5.0
2023-10-23 22:48:26 +02:00
Steven Achilles
daae8b70d3
Merge pull request #2841 from massej/patch-1
Added - OAuth2 Generic - missing label and scope variables
2023-10-23 22:45:00 +02:00
Steven Achilles
3033b64bbb
Merge pull request #2714 from sam-mosleh/add-builds-folder-to-runner
Mount builds folder to runners
2023-10-23 16:28:29 +02:00
Steven Achilles
d626a7430d
Merge pull request #2846 from kkimurak/issue/2828-allow-multiple-value-for-rack-attack-whitelist
Accept multiple hosts for RACK_ATTACK_WHITELIST
2023-10-23 16:24:50 +02:00
Steven Achilles
6a6becb5be
Merge pull request #2843 from massej/patch-3
Fix tipo.
2023-10-23 16:22:08 +02:00
Steven Achilles
43d0a969d1 Upgrade to GitLab CE 16.5.0 2023-10-23 00:36:46 +02:00
Kazunori Kimura
da0d78bf5b Add build patch to avoid removing node_modules
note: Only affected if using the relative_url feature

`gitlab/script/frontent/preinstall.mjs` is introduced since v16.4.0.
This script is executed on container startup, if using the relative url.
This script removes `NODE_MODULES` (/home/git/gitlab/node_modules) when
"the folder seems to end up being a corrupted somehow"
See more detail:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/130938

On sameersbn/gitlab, the folder node_modules is declared as volume.
The volume is always busy so that cannot be removed in the container.
You can see following error reported on container startup
(sameersbn/gitlab:16.4.0 or later).

````
yarn install v1.22.19
$ node ./scripts/frontend/preinstall.mjs
[WARNING] package.json changed significantly. Removing node_modules to be sure there are no problems. node:internal/process/esm_loader:97
    internalBinding('errors').triggerUncaughtException(
                              ^

[Error: EBUSY: resource busy or locked, rmdir '/home/git/gitlab/node_modules'] {
  errno: -16,
  code: 'EBUSY',
  syscall: 'rmdir',
  path: '/home/git/gitlab/node_modules'
}

Node.js v18.17.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. -----
````

This PR add a build time patch to change the behavior of
script/frontend/preinstall.mjs to not to remove node_modules directly,
but empty it instead.
2023-10-21 01:24:39 +09:00
Kazunori Kimura
a2dd4e5ed8 Accept multiple hosts for RACK_ATTACK_WHITELIST
see sameersbn/docker-gitlab#2828

The current setup also accepts multiple hosts,
but the syntax is a bit strange.
The leading/trailing double quotes are embedded
in the configuration file itself,
so users should expect double quotes around the string they set.
In other words, when setting two hosts 0.0.0.0 and 1.1.1.1,
you will set the strings 0.0.0.0","1.1.1.1 in the
environment variables. This is not intuitive.

This commit removes double quote around corresponding config
and set backward compatibility fallback process
to surround whole with [], each host with double quote.
Also, validation script (written in ruby) will be executed during configuration.

Example docker-compose.yml
````yaml
services:
  gitlab:
    image: sameersbn/gitlab:latest
    environment:
    - RACK_ATTACK_WHITELIST='["127.0.0.1","0.0.0.0"]'
````

Co-authored-by: Mikhail Khadarenka <chodorenko@mail.ru>
2023-10-20 22:24:22 +09:00
massej
755a9ac8f9
Update docs/keycloak-idp.md
Co-authored-by: Kazunori Kimura <33391846+kkimurak@users.noreply.github.com>
2023-10-02 09:28:54 -04:00
massej
8bcb068cac
Update README.md 2023-10-02 09:00:08 -04:00
massej
964e29c92d
Fix tipo. 2023-10-01 13:55:50 -04:00
massej
ab0e2e63f8
Update docker-compose.yml 2023-10-01 13:49:47 -04:00
massej
fa75409aff
Update README.md 2023-10-01 13:48:54 -04:00
massej
a903d98290
Update functions 2023-10-01 13:45:02 -04:00
massej
af693c5ecc
Update env-defaults 2023-10-01 13:44:28 -04:00
massej
c8bc43b914
Added missing label and scope variable field. 2023-10-01 13:40:45 -04:00