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>
- 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>
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>
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.
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>
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>
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>
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
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>
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
```
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>
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
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