Use bundler to install Omnibus gems
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7362
Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Reviewed-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Reviewed-by: Robert Marshall <rmarshall@gitlab.com>
Co-authored-by: Stan Hu <stanhu@gmail.com>
Instead of calling `gem install <x>` many times, let's define the
`Gemfile` and `Gemfile.lock` and run `bundle install`. This ensures
dependencies are pinned and don't quietly move with a new invocation
of `gem install`. There is also a side benefit to using `bundler`: we
can later use the newly-introduced feature to include and verify
checksums (https://github.com/rubygems/rubygems/pull/6374).
`bundler` generally installs everything in the expected gem directory
that is used by `ruby`, but for gems installed from a Git source,
`bundler` puts those gems in a special `bundler/gems` directory.
We don't use any gems from Git sources now--`gitlab-ruby-shadow`
is now used instead of `ruby-shadow`--there is no issue.
Also, note that if we want to ensure `gitlab-ctl` doesn't try to pull
in gems from GitLab Rails, we could invoke `bundler`, but this is a
slightly riskier change.
Relates to https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8368
Changelog: changed
Remove deprecated min_concurrency and max_concurrency for Sidekiq
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7549
Merged-by: Robert Marshall <rmarshall@gitlab.com>
Approved-by: Dustin Collins <714871-dustinmm80@users.noreply.gitlab.com>
Approved-by: Robert Marshall <rmarshall@gitlab.com>
Reviewed-by: Jason Plum <jplum@gitlab.com>
Co-authored-by: Ryan Egesdahl <regesdahl@gitlab.com>
Co-authored-by: Gregorius Marco <gmarco@gitlab.com>
Update gitlab-org/build/omnibus-mirror/node_exporter from 1.7.0 to 1.8.0
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7569
Merged-by: Andrew Patterson <apatterson@gitlab.com>
Approved-by: Clemens Beck <cbeck@gitlab.com>
Approved-by: Andrew Patterson <apatterson@gitlab.com>
Co-authored-by: deps <bot@dependencies.io>
Update exiftool/exiftool from 12.82 to 12.84
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7560
Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Clemens Beck <cbeck@gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: deps <bot@dependencies.io>
Update BUILDER_IMAGE_REVISION to v5.12.0
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7565
Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: Stan Hu <stanhu@gmail.com>
Update gitlab-org/build/omnibus-mirror/redis_exporter from 1.58.0 to 1.59.0
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7561
Merged-by: Andrew Patterson <apatterson@gitlab.com>
Approved-by: João Alexandre Cunha <j.a.cunha@gmail.com>
Approved-by: Andrew Patterson <apatterson@gitlab.com>
Co-authored-by: Clemens Beck <cbeck@gitlab.com>
Co-authored-by: deps <bot@dependencies.io>
Update rubygems/rubygems from 3.5.7 to 3.5.9
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7541
Merged-by: Robert Marshall <rmarshall@gitlab.com>
Approved-by: Jon Doveston <jdoveston@gitlab.com>
Approved-by: Robert Marshall <rmarshall@gitlab.com>
Co-authored-by: Clemens Beck <cbeck@gitlab.com>
Co-authored-by: deps <bot@dependencies.io>
Switch to Lychee for link checking
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7547
Merged-by: Robert Marshall <rmarshall@gitlab.com>
Approved-by: Robert Marshall <rmarshall@gitlab.com>
Reviewed-by: Evan Read <eread@gitlab.com>
Co-authored-by: Evan Read <eread@gitlab.com>
Update gitlab-org/container-registry from v3.92.0-gitlab to v3.93.0-gitlab
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7568
Merged-by: Andrew Patterson <apatterson@gitlab.com>
Approved-by: Clemens Beck <cbeck@gitlab.com>
Approved-by: Andrew Patterson <apatterson@gitlab.com>
Co-authored-by: deps <bot@dependencies.io>
Pin parser dependency in chef-bin
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7572
Merged-by: Robert Marshall <rmarshall@gitlab.com>
Approved-by: Robert Marshall <rmarshall@gitlab.com>
Co-authored-by: Ryan Egesdahl <deriamis@gmail.com>
Installing chef-bin via `gem install` makes all of its dependencies floating,
including the `parser` gem. Because the `parser` gem is *also* used by other
Ruby modules, the floating dependencies can cause failures, such as a recent
problem that caused `gitlab-ctl` to fail because `inspec-core` depends on
`parser` as well. This is a temporary fix to correct the floating dependency
on `parser` until a more permanent fix is in place.
Fix reconfigure failure if Redis node has Rails Sentinel config
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7567
Merged-by: Robert Marshall <rmarshall@gitlab.com>
Approved-by: Mitchell Nielsen <mnielsen@gitlab.com>
Approved-by: Robert Marshall <rmarshall@gitlab.com>
Co-authored-by: Stan Hu <stanhu@gmail.com>
Remove reliable from test runs
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7562
Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Vishal Patel <vpatel@gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: Sofia Vistas <svistas@gitlab.com>
Remove queue_selector and negate options from Sidekiq
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7540
Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Andrew Patterson <apatterson@gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: Gregorius Marco <gmarco@gitlab.com>
Update Mattermost to 9.7.1
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7551
Merged-by: Andrew Patterson <apatterson@gitlab.com>
Approved-by: Clemens Beck <cbeck@gitlab.com>
Approved-by: Andrew Patterson <apatterson@gitlab.com>
Co-authored-by: Akis Maziotis <akis.maziotis@mattermost.com>
Fix missing arguments when PostgreSQL upgrade times out
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7558
Merged-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Co-authored-by: Stan Hu <stanhu@gmail.com>
This is a small regression from
https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7247.
When the PostgreSQL upgrade times out, previously the script
would error out with `wrong number of arguments (given 0, expected 1)
(ArgumentError)`.
Changelog: fixed
While generating package information, specify fips argument for FIPS
package URLs. Also ensure the correct package folder is used in those
URLs.
Signed-off-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Package related information can have different values for FIPS packages
and regular packages. For builds, USE_SYSTEM_SSL variable controls if
the FIPS specific information should be used. However, while generating
facts, we need to specifically retreive FIPS specific information too,
in addition to regular one. So, accept fips as an argument to the
relevant methods that can be specified while generating facts.
Signed-off-by: Balasankar 'Balu' C <balasankar@gitlab.com>
Add foundation to build multiarch images
Closes#8469 and #8470
See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7492
Merged-by: Robert Marshall <rmarshall@gitlab.com>
Approved-by: Dmytro Makovey <dmakovey@gitlab.com>
Approved-by: Robert Marshall <rmarshall@gitlab.com>
Reviewed-by: Robert Marshall <rmarshall@gitlab.com>
Co-authored-by: Balasankar 'Balu' C <balasankar@gitlab.com>
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>
Move away from docker-api gem which does not have support for `docker
buildx`. Add a wrapper to execute `docker buildx` commands in the shell
and use that for Docker operations.
Closes: https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8469
Signed-off-by: Balasankar 'Balu' C <balasankar@gitlab.com>