OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Let bundler take the version from the Gemfile.lock
Dombi Attila173879125adf
diff --git a/bin/bundle b/bin/bundleindex b7323241d90..fe0dc245054 100755--- a/bin/bundle+++ b/bin/bundle@@ -17,10 +17,6 @@ m = Module.new doFile.expand_path($0) == File.expand_path(__FILE__)end- def env_var_version- ENV["BUNDLER_VERSION"]- end-def cli_arg_versionreturn unless invoked_as_script? # don't want to hijack other binstubsreturn unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`@@ -66,8 +62,7 @@ m = Module.new dodef bundler_version@bundler_version ||= begin- env_var_version || cli_arg_version ||- lockfile_version || "#{Gem::Requirement.default}.a"+ cli_arg_version || lockfile_version || "#{Gem::Requirement.default}.a"endenddiff --git a/docker/ci/Dockerfile b/docker/ci/Dockerfileindex 5efbcdc03c1..5b252dc6f5d 100644--- a/docker/ci/Dockerfile+++ b/docker/ci/Dockerfile@@ -3,7 +3,6 @@ ARG RUBY_VERSIONFROM ruby:${RUBY_VERSION}-bookwormENV NODE_VERSION="20.9.0"-ENV BUNDLER_VERSION="2.6.3"ENV DEBIAN_FRONTEND=noninteractiveENV BUNDLE_WITHOUT="development:production:docker"@@ -18,7 +17,7 @@ RUN --mount=type=cache,target=/var/cache/apt export f="/tmp/chrome.deb" && wgetRUN curl -L https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz -o - | tar xJf - -C /usr/local --strip=1 && node --version-RUN rm -rf /usr/local/bundle && gem install bundler --version "$BUNDLER_VERSION" --no-document+RUN rm -rf /usr/local/bundle && gem install bundler --no-documentENV APP_USER=devENV APP_PATH=/appdiff --git a/docker/ci/entrypoint.sh b/docker/ci/entrypoint.shindex d4dc280c922..9e706e466b1 100755--- a/docker/ci/entrypoint.sh+++ b/docker/ci/entrypoint.sh@@ -107,7 +107,7 @@ setup_tests() {execute_quiet "cp docker/ci/database.yml config/"create_db_cluster- execute "gem install bundler --version '${BUNDLER_VERSION}' --no-document"+ execute "gem install bundler --no-document"run_background execute "BUNDLE_JOBS=8 bundle install --quiet && bundle clean --force && echo BUNDLE DONE"run_background execute "JOBS=8 time npm install --quiet && npm prune --quiet && echo NPM DONE"diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfileindex c7d2002f1f0..4247efbd51c 100644--- a/docker/dev/backend/Dockerfile+++ b/docker/dev/backend/Dockerfile@@ -8,8 +8,6 @@ ENV USER=devENV RAILS_ENV=developmentENV NODE_MAJOR=20-ENV BUNDLER_VERSION "2.6.3"-# `--no-log-init` is required as a workaround to avoid disk exhaustion.## Read more at:@@ -52,7 +50,7 @@ WORKDIR /home/$USER/openprojectUSER $USER-RUN gem install bundler --version "${BUNDLER_VERSION}" --no-document+RUN gem install bundler --no-document####### Testing image below #########diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfileindex a49f47967f5..fb2e2593b3b 100755--- a/docker/prod/Dockerfile+++ b/docker/prod/Dockerfile@@ -2,7 +2,6 @@ ARG RUBY_VERSION="3.4.1"FROM ruby:${RUBY_VERSION}-bookworm AS baseLABEL maintainer="[email protected]"-ARG BUNDLER_VERSION="2.6.3"ARG NODE_VERSION="20.9.0"ARG BIM_SUPPORT=trueENV USE_JEMALLOC=false@@ -44,7 +43,7 @@ RUN useradd -d /home/$APP_USER -m $APP_USER && \WORKDIR $APP_PATH# upgrade bundler-RUN gem install bundler --version "$BUNDLER_VERSION" --no-document+RUN gem install bundler --no-document# system dependencies, nodejsCOPY ./docker/prod/setup/preinstall-common.sh ./docker/prod/setup/preinstall-common.sh