Commit Graph

335 Commits

Author SHA1 Message Date
Clemens Beck 92f7cf5b6c Remove PostgreSQL 13
* Remove PostgreSQL 13 builds.
* Remove unused PostgreSQL 12 build definition.
* Move PostgreSQL 14 from 'new' to 'default' build definition.
* Update minimum PostgreSQL version notice.

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8341

Changelog: removed
2024-05-07 05:24:28 +00:00
Balasankar 'Balu' C ca02e0c220
Enable building arm64 images
Modify the Dockerfile and library code around Docker image builds to
support building multiarch images. The Dockerfile will download the
package for the correct architecture based on TARGETARCH variable.

Closes: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8470

Signed-off-by: Balasankar 'Balu' C <balasankar@gitlab.com>
2024-04-19 08:40:38 +05:30
Clemens Beck a340a0c3ba Auto upgrade single node installs to PostgreSQL 14
Postgres 14 is going to become our minimum supported version in
GitLab 17. GitLab 16.11 turns on auto-upgrade for single node installs.

Documentation change: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/147402

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8340

Changelog: changed
2024-03-25 08:55:22 +00:00
Robert Marshall 76ea027223 Add missing locales for compatibility
- Ensures the Omnibus GitLab container has all locales present in
  previous versions to support upgrades.

Changelog: fixed
Signed-off-by: Robert Marshall <rmarshall@gitlab.com>
2024-03-01 04:43:15 +00:00
Balasankar 'Balu' C 0720b01c42 Merge branch 'ssh-private-key-symlink' into 'master'
Create symlinks in /etc/ssh pointing to /etc/gitlab for SSH private keys

Closes #8326

See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7302

Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Dustin Collins <714871-dustinmm80@users.noreply.gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: Erik Tews <erik@datenzone.de>
2024-01-18 08:11:13 +00:00
Manuel Grabowski 2cfe95c901 Fix permission issues within Registry data on docker startup 2024-01-17 16:29:56 +00:00
Erik Tews 3197092a18 Create symlinks in /etc/ssh pointing to /etc/gitlab for SSH private keys
The current gitlab Docker image creates SSH host keys during build in
/etc/ssh when installing openssh-server. These keys are not used.
Instead, the SSH host keys for Gitlab are generated by the wrapper
script and stored in /etc/gitlab.

Previously, the wrapper script overwrote the unused SSH public host keys
in /etc/ssh with symlinks pointing to the keys used in /etc/gitlab. The
SSH private keys were left untouched. Thus, there were SSH private keys
in /etc/ssh that were not used and the corresponding public keys in
/etc/ssh were symlinks to /etc/gitlab and the private and public keys
did not match.

Since this is could be confusing for adminstrators, this commit alters
the wrapper script so that the unused SSH private keys in /etc/ssh are
replaced with symlinks to the private keys used in /etc/gitlab.
2023-12-15 11:51:21 +01:00
Clemens Beck 4a815e0182 Do not scan entire /var/opt/gitlab for stale pids
Fixes slow Docker startups because the entire content of
/var/opt/gitlab (including the 'gitlab-rails' directory)
is scanned for pid files.

Fixed by limiting the find maximum depth to 2.

Changelog: fixed

Closes: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8323

Relates: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/6926
2023-11-30 19:42:03 +00:00
Justin Farmiloe 6e9da15a61 Fix perms on /var/opt/gitlab/gitaly.pid during Docker startup 2023-11-06 08:44:02 +00:00
Stan Hu f6ab1c8d23
Drop legacy unmigrated data checks
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/133394 dropped
the hashed storage migration checks. We no longer need to run these
checks.

Changelog: changed
2023-10-17 12:48:39 -07:00
Clemens Beck 07da7ddacc Require upgrade stop at 16.3
GitLab 16.3 is a required upgrade stop for 16.4.

See: https://docs.gitlab.com/ee/update/#upgrade-paths

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8103

Changelog: changed
2023-09-15 05:12:48 +00:00
Balasankar 'Balu' C 36d71085e4 Merge branch 'master' into 'master'
Restore support for SHA-1 RSA cryptography

See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7035

Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: João Alexandre Cunha <j.a.cunha@gmail.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: Vladimir Melnikov <thev0v4n@gmail.com>
2023-08-07 06:58:35 +00:00
Vladimir Melnikov b1b6071171 Restore support for SHA-1 RSA cryptography
Changelog: fixed
2023-08-07 06:58:35 +00:00
Hossein Pursultani 153fedec52 Drop Grafana and related code from the package
Software configuration and related code and documentation are removed
from the package.

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8092

Changelog: removed
2023-08-01 20:48:58 +00:00
Dustin Collins 5cae179733 Add PostgreSQL 14 to the package
Changelog: added
2023-07-13 08:40:18 +00:00
Balasankar "Balu" C 2b67738464
Make Docker build download package from artifact instead of S3
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2023-06-21 09:55:14 +05:30
Michael Eischer 9c26efd0d6 Fix missing error if unmigrated data check fails for docker container
The error handling code path printed the wrong variable.
2023-05-26 18:26:39 +02:00
Balasankar 'Balu' C 3ed2eb1aff Patch Chef to support locales utf8 suffix
Ensures Chef can correctly detect the `C.utf8` locale.

Changelog: changed

Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2023-05-10 01:29:03 +00:00
Balasankar 'Balu' C 54b22d9df0 Merge branch '7409-update-docker-base-image-to-ubuntu2204' into 'master'
Make GitLab Docker image use Ubuntu 22.04 as a base

Closes #7409

See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/6830

Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Reviewed-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: Andrew Patterson <apatterson@gitlab.com>
2023-05-08 09:27:39 +00:00
Andrew Patterson 0728bc4104 Use Ubuntu 22.04 as base for the GitLab Docker image.
Changelog: other
Signed-off-by: Andrew Patterson <apatterson@gitlab.com>
2023-05-08 09:27:39 +00:00
Toon Claes 5a69dd55c2 gitaly: Remove gitaly-ruby configuration
Gitaly removed the gitaly-ruby configuration because it's no longer
using Ruby. So we can remove code that composes this configuration.

Issue: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7711

Changelog: deprecated
2023-05-05 22:56:17 +00:00
Robert Marshall d059966899 Merge branch 'enforce-upgrade-path-16-0' into 'master'
Make 15.11 minimum required version to upgrade to 16.0

Closes #7745

See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/6833

Merged-by: Robert Marshall <rmarshall@gitlab.com>
Approved-by: Jason Young <jyoung@gitlab.com>
Approved-by: Robert Marshall <rmarshall@gitlab.com>
Co-authored-by: Clemens Beck <cbeck@gitlab.com>
2023-04-28 22:59:44 +00:00
João Alexandre Cunha 33e1af9779 Symlink the public ssh key to /ets/ssh folder
This is needed because for Dockerized Omnibus we build the ssh keys at
/etc/gitlab, however, the Gitlab Rails codebase expects the keys to
live in /etc/ssh, and this is hardcoded.

The reason why the keys currently live in /etc/gitlab is to have them
easily preserved via volume mounts, between container restarts/upgrades.
See https://gitlab.com/gitlab-org/gitlab/-/issues/296215 for more
context.

Related https://gitlab.com/gitlab-org/gitlab/-/issues/296215

Changelog: fixed
2023-04-27 23:27:05 +00:00
Clemens Beck 5a2cc648af
Make 15.11 minimum required version to upgrade to 16.0
Upgrades to a new major (16.0) require the latest minor
version of the preceding major version (15.11) to be
installed.

See https://docs.gitlab.com/ee/update/#upgrading-to-a-new-major-version
for more information.

Closes: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7745

Changelog: changed
2023-04-24 09:11:35 +02:00
Balasankar 'Balu' C 775e3e77bb Merge branch 'feat-add-pre-reconfigure-script' into 'master'
Feat(wrapper): add GITLAB_PRE_RECONFIGURE_SCRIPT

See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/6744

Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: João Alexandre Cunha <j.a.cunha@gmail.com>
Co-authored-by: ErgoZ <ergozru@gmail.com>
2023-04-21 05:04:35 +00:00
ErgoZ 69c83d60cc Add `GITLAB_PRE_RECONFIGURE_SCRIPT` variable support to Docker image
Changelog: added
2023-04-21 05:04:35 +00:00
Clemens Beck 79fa08813d Enable autoupgrade to PostgreSQL 13
Enables automatic upgrades from PostgreSQL 12
to PostgreSQL 13 for single node installations.

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7392

Changelog: added
2023-04-07 19:56:55 +00:00
Stan Hu 0a92bace85
Fix typo in docker/assets/wrapper
There was a redundant `check` in this message:

```
If you would like to restart the instance without performing this
check check, add the following to your docker command
```
2023-01-18 12:09:39 -08:00
Seth Berger cd017b7974 Fix typo in Docker wrapper script 2022-11-04 03:04:58 +00:00
Katrin Leinweber 76b5cd4cf1 Remove docker-compose example
It got out of sync after:
gitlab-org/gitlab/commit/c075e721a7f6a927e02496f737479c6360c8e6c8

Co-authored-by: Achilleas Pipinellis <axil@gitlab.com>
2022-10-18 14:26:44 +00:00
Robert Marshall 89e6dc81c0 Add perl as runtime dependency
- Perl is required for exiftool and, in the current version, OpenSSL for
  hashing certificates.

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/4288

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/2275

Changelog: added
Signed-off-by: Robert Marshall <rmarshall@gitlab.com>
2022-08-08 06:17:47 +00:00
Robert Marshall 30de86b06e Ensure Omnibus Docker image has exiftool deps
- Install the MRO perl library required by exiftool since version 11.86
  since it seems it is not present by default on Ubuntu 20

Related https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/4288

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/6951

Changelog: fixed
Signed-off-by: Robert Marshall <rmarshall@gitlab.com>
2022-08-02 03:49:29 +00:00
Balasankar 'Balu' C 64dcde74f7 Make 15.0 minimum required version to upgrade to 15.x
Prevents upgrade if the currently installed package is not
at least 15.0.x.

Changelog: changed

Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2022-06-02 15:43:07 +00:00
Robert Marshall 0a808a63ef Merge branch 'make-14-10-mandatory-upgrade-path' into 'master'
Make 14.10 minimum required version to upgrade to 15.0

Closes #6810

See merge request gitlab-org/omnibus-gitlab!6050
2022-05-04 18:25:16 +00:00
Balasankar 'Balu' C 7e142aa364 Make 14.10 minimum required version to upgrade to 15.0
Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/6810

Changelog: changed

Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2022-05-04 18:25:15 +00:00
Robert Marshall c532f7d113 Default to PG13 in new installations
- New installations using Omnibus GitLab will use PostgreSQL version
  13.3 by default

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/6707

Changelog: changed

Signed-off-by: Robert Marshall <rmarshall@gitlab.com>
2022-05-03 12:36:13 -04:00
Juan Luis Rosa Martinez 0bdef8a586 Fix permissions on Grafana folder in Docker container
Changelog: fixed
2022-04-26 03:55:04 +00:00
Julian Forster 13d546ef9e Fix nginx www directory permission
Changelog: fixed
2022-02-02 07:37:15 +00:00
JP Flouret 7002b2d742 Add GITLAB_SKIP_TAIL_LOGS to docker wrapper
Changelog: added
2022-01-25 16:42:17 -08:00
Balasankar "Balu" C 0ee66c3aa5
Set 14.0 as minimum version permitted to upgrade from
Changelog: changed
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2021-06-26 09:55:45 +05:30
Stan Hu ef9facdc92 Merge branch 'felixonmars-master-patch-91606' into 'master'
Correct a typo in sshd_config

See merge request gitlab-org/omnibus-gitlab!5367
2021-06-25 21:21:18 +00:00
DJ Mountney 3073e1be67 Merge branch '6200-omnibus-erronenously-warns-about-hashed-storage-migration-if-database-is-down' into 'master'
Improve unmigrated data check in the the preinst script

See merge request gitlab-org/omnibus-gitlab!5371
2021-06-15 18:35:10 +00:00
DJ Mountney 29b4f428f5
Use Busybox for editor in docker
Instead of installing mutliple editors

MR: https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/4142
Changelog: changed
2021-06-15 10:23:21 -07:00
Douglas Barbosa Alexandre e074d7bf46
Improve unmigrate data check in the the preinst script
Use the return code of the rake task before proceeding
and show the output of the Rake task if this fails to
aid debugging.
2021-06-14 15:49:11 -03:00
Douglas Barbosa Alexandre 2609201eca
Prevent Docker upgrade to 14.0 if there data on legacy storage
We've deprecated legacy storage in GitLab 13.0 and are now
removing it in %14.0. Due to the nature of that change, we
need to prevent updating an existing installation to 14.x,
if there is still unmigrated data.

Changelog: added
2021-06-14 10:36:15 -03:00
Felix Yan 92708b2ff8 Correct a typo in sshd_config 2021-06-14 06:06:50 +00:00
DJ Mountney 67a1d7b5d5
Revert "Merge branch '5984-hashed-storage-prevent-updating-to-14-x-if-there-is-any-remaining-unmigrated-data' into 'master'"
This reverts commit 6cf7caafe8, reversing
changes made to 3783a05686.
2021-05-31 08:07:50 -07:00
Vincent Stchu 957beb8d62 Get Gitalab Jihu edition version
Avoid upgrade check failure when it is Jihu edition
2021-05-28 23:25:01 +08:00
Douglas Barbosa Alexandre ad4e6d1a3b
Prevent upgrade to 14.0 if there is data on legacy storage
We've deprecated legacy storage in GitLab 13.0 and are now
removing it in %14.0. Due to the nature of that change, we
need to prevent updating an existing installation to 14.x,
if there is still unmigrated data.

Changelog: added
2021-05-26 13:47:05 -03:00
Balasankar "Balu" C 2e65138d64
Set 13.12 as minimum version required to upgrade from
Changelog: changed
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2021-05-24 09:01:50 +05:30