diff --git a/user/gitlab-foss/APKBUILD b/user/gitlab-foss/APKBUILD index a41215a..aadd5b2 100644 --- a/user/gitlab-foss/APKBUILD +++ b/user/gitlab-foss/APKBUILD @@ -87,8 +87,7 @@ _prefix="usr/lib/bundles/$_pkgname" export BUNDLE_DEPLOYMENT=true export BUNDLE_FORCE_RUBY_PLATFORM=true export BUNDLE_FROZEN=true -# Should be tied to $JOBS, but rust native code fails to build -export BUNDLE_JOBS=1 +export BUNDLE_JOBS=${JOBS:-2} prepare() { local sysgemdir=$(ruby -e 'puts Gem.default_dir') @@ -141,6 +140,8 @@ build() { bundle config --local build.ruby-magic --enable-system-libraries bundle config --local build.google-protobuf '-- --with-cflags=-D__va_copy=va_copy' bundle config --local path "vendor/bundle" + bundle config --local build.prometheus-client-mmap -j 16 + bundle config --local build.gitlab-glfm-markdown -j 16 bundle install --no-cache