Skip to content

Commit

Permalink
Use version of ruby 2.6 with rubygems 2.7
Browse files Browse the repository at this point in the history
rubygems 3.0 introduced a bug so that no version of bundler could
install the pg gem correctly. We are temporarily rolling back to
rubygems 2.7 until the bug is fixed.
See rubygems/bundler#6940 for more details

[#164713288](https://www.pivotaltracker.com/story/show/164713288)

Co-authored-by: Belinda Liu <[email protected]>
  • Loading branch information
charleshansen and belinda-liu committed Jul 9, 2019
1 parent 239faa0 commit 13d513f
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .final_builds/packages/ruby-2.6.3-r0.17.0/index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
builds:
43ece8981ebd9e0979f482c95330e71ce671b211ab6268449466158ba3cbf0a3:
version: 43ece8981ebd9e0979f482c95330e71ce671b211ab6268449466158ba3cbf0a3
blobstore_id: 8774fe6e-facb-475a-5216-ddc4d7067a26
sha1: sha256:c5985bb1601ae7c3c64027079eb124e92b230dafafe7f7ed90e4e5ba95f1f8dd
format-version: "2"
2 changes: 1 addition & 1 deletion jobs/director/spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ packages:
- libpq
- postgres-9.4
- mysql
- ruby-2.6.3-r0.14.0
- ruby-2.6.3-r0.17.0
- s3cli
- davcli
- bosh-gcscli
Expand Down
2 changes: 1 addition & 1 deletion jobs/director/templates/env.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source /var/vcap/packages/ruby-2.6.3-r0.14.0/bosh/runtime.env
source /var/vcap/packages/ruby-2.6.3-r0.17.0/bosh/runtime.env
export BUNDLE_GEMFILE=/var/vcap/packages/director/Gemfile
export GEM_HOME=/var/vcap/packages/director/gem_home/ruby/2.6.0

Expand Down
2 changes: 1 addition & 1 deletion jobs/health_monitor/spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ templates:

packages:
- health_monitor
- ruby-2.6.3-r0.14.0
- ruby-2.6.3-r0.17.0

properties:
#
Expand Down
2 changes: 1 addition & 1 deletion jobs/health_monitor/templates/health_monitor_ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUNAS=vcap
CONFIG_DIR=/var/vcap/jobs/health_monitor/config
STORE_DIR=/var/vcap/store/health_monitor

source /var/vcap/packages/ruby-2.6.3-r0.14.0/bosh/runtime.env
source /var/vcap/packages/ruby-2.6.3-r0.17.0/bosh/runtime.env
export GEM_HOME=/var/vcap/packages/health_monitor/gem_home/ruby/2.6.0
export BUNDLE_GEMFILE=/var/vcap/packages/health_monitor/Gemfile

Expand Down
2 changes: 1 addition & 1 deletion jobs/registry/spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ packages:
- registry
- libpq
- mysql
- ruby-2.6.3-r0.14.0
- ruby-2.6.3-r0.17.0

properties:
registry.port:
Expand Down
2 changes: 1 addition & 1 deletion jobs/registry/templates/registry
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

source /var/vcap/packages/ruby-2.6.3-r0.14.0/bosh/runtime.env
source /var/vcap/packages/ruby-2.6.3-r0.17.0/bosh/runtime.env
exec /var/vcap/jobs/registry/bin/bosh-registry
2 changes: 1 addition & 1 deletion packages/director/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/{bin,gem_home}
libpq_dir=/var/vcap/packages/libpq
mysqlclient_dir=/var/vcap/packages/mysql

source /var/vcap/packages/ruby-2.6.3-r0.14.0/bosh/compile.env
source /var/vcap/packages/ruby-2.6.3-r0.17.0/bosh/compile.env

for gemspec in $( find . -maxdepth 2 -name *.gemspec ); do
gem_name="$( basename "$( dirname "$gemspec" )" )"
Expand Down
2 changes: 1 addition & 1 deletion packages/director/spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: director
dependencies:
- libpq
- mysql
- ruby-2.6.3-r0.14.0
- ruby-2.6.3-r0.17.0

files:
- bosh-director/**/*
Expand Down
2 changes: 1 addition & 1 deletion packages/health_monitor/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set -e

mkdir -p ${BOSH_INSTALL_TARGET}/{bin,gem_home}

source /var/vcap/packages/ruby-2.6.3-r0.14.0/bosh/compile.env
source /var/vcap/packages/ruby-2.6.3-r0.17.0/bosh/compile.env

cat > Gemfile <<EOF
# Explicitly require vendored version to avoid requiring builtin json gem
Expand Down
2 changes: 1 addition & 1 deletion packages/health_monitor/spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: health_monitor
dependencies:
- ruby-2.6.3-r0.14.0
- ruby-2.6.3-r0.17.0

files:
- bosh-monitor/**/*
Expand Down
2 changes: 1 addition & 1 deletion packages/registry/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/{bin,gem_home}

libpq_dir=/var/vcap/packages/libpq
mysqlclient_dir=/var/vcap/packages/mysql
source /var/vcap/packages/ruby-2.6.3-r0.14.0/bosh/compile.env
source /var/vcap/packages/ruby-2.6.3-r0.17.0/bosh/compile.env

for gemspec in $( find . -maxdepth 2 -name *.gemspec ); do
gem_name="$( basename "$( dirname "$gemspec" )" )"
Expand Down
2 changes: 1 addition & 1 deletion packages/registry/spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: registry
dependencies:
- libpq
- mysql
- ruby-2.6.3-r0.14.0
- ruby-2.6.3-r0.17.0

files:
- bosh_common/**/*
Expand Down
2 changes: 2 additions & 0 deletions packages/ruby-2.6.3-r0.17.0/spec.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: ruby-2.6.3-r0.17.0
fingerprint: 43ece8981ebd9e0979f482c95330e71ce671b211ab6268449466158ba3cbf0a3

0 comments on commit 13d513f

Please sign in to comment.