Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .final_builds/packages/ruby-4.0/index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
builds:
1c57129111fddc1177f567ea243bb538a8087297eb916e61444e2fb27408b25d:
version: 1c57129111fddc1177f567ea243bb538a8087297eb916e61444e2fb27408b25d
blobstore_id: 35e7e099-6aa1-4def-5131-b4d40906479b
sha1: sha256:5962350916c57b180cc2453aa098d868ee17cef9610dabe8257fe1989779c29a
format-version: "2"
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.11
4.0.2
2 changes: 1 addition & 1 deletion jobs/blobstore_benchmark/spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ templates:
packages:
- capi_utils
- cloud_controller_ng
- ruby-3.3
- ruby-4.0
- jemalloc
- storage-cli
- mariadb_connector_c
Expand Down
2 changes: 1 addition & 1 deletion jobs/cc_deployment_updater/spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages:
- libpq
- jemalloc
- mariadb_connector_c
- ruby-3.3
- ruby-4.0

consumes:
- name: database
Expand Down
2 changes: 1 addition & 1 deletion jobs/cloud_controller_clock/spec
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ packages:
- libpq
- jemalloc
- mariadb_connector_c
- ruby-3.3
- ruby-4.0

consumes:
- name: database
Expand Down
2 changes: 1 addition & 1 deletion jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ packages:
- libpq
- jemalloc
- mariadb_connector_c
- ruby-3.3
- ruby-4.0

provides:
- name: cloud_controller
Expand Down
2 changes: 1 addition & 1 deletion jobs/cloud_controller_ng/templates/shutdown_drain.rb.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/var/vcap/packages/ruby-3.3/bin/ruby --disable-all
#!/var/vcap/packages/ruby-4.0/bin/ruby --disable-all

$LOAD_PATH.unshift('/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app')
$LOAD_PATH.unshift('/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib')
Expand Down
2 changes: 1 addition & 1 deletion jobs/cloud_controller_worker/spec
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ packages:
- libpq
- jemalloc
- mariadb_connector_c
- ruby-3.3
- ruby-4.0

consumes:
- name: database
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/var/vcap/packages/ruby-3.3/bin/ruby --disable-all
#!/var/vcap/packages/ruby-4.0/bin/ruby --disable-all

$LOAD_PATH.unshift('/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app')
$LOAD_PATH.unshift('/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib')
Expand Down
2 changes: 1 addition & 1 deletion jobs/rotate_cc_database_key/spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ packages:
- libpq
- jemalloc
- mariadb_connector_c
- ruby-3.3
- ruby-4.0

consumes:
- name: cloud_controller_db
Expand Down
5 changes: 3 additions & 2 deletions packages/cloud_controller_ng/packaging
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set -e -x

# shellcheck disable=1090
source "${BOSH_PACKAGES_DIR:-/var/vcap/packages}/ruby-3.3/bosh/compile.env"
source "${BOSH_PACKAGES_DIR:-/var/vcap/packages}/ruby-4.0/bosh/compile.env"
cp -a * ${BOSH_INSTALL_TARGET}
cd ${BOSH_INSTALL_TARGET}/cloud_controller_ng

Expand All @@ -15,7 +15,8 @@ gem install --local vendor/cache/bundler-${BUNDLER_VERSION}.gem

bundle config build.pg --with-pg-lib=$libpq_dir/lib --with-pg-include=$libpq_dir/include
bundle config build.mysql2 --with-mysql-config=$mariadb_dir/bin/mariadb_config-wrapper.sh
bosh_bundle_local --deployment
bundle config set deployment true
bosh_bundle_local

# remove world-writable permissions on files if a gem has them
chmod -R o-w ../gem_home
2 changes: 1 addition & 1 deletion packages/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cloud_controller_ng
dependencies:
- libpq
- mariadb_connector_c
- ruby-3.3
- ruby-4.0

files:
- cloud_controller_ng/{.ruby-version,Rakefile,Gemfile,Gemfile.lock}
Expand Down
5 changes: 3 additions & 2 deletions packages/nginx_newrelic_plugin/packaging
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
set -ex
# shellcheck disable=1090

source "${BOSH_PACKAGES_DIR:-/var/vcap/packages}/ruby-3.3/bosh/compile.env"
source "${BOSH_PACKAGES_DIR:-/var/vcap/packages}/ruby-4.0/bosh/compile.env"

echo "Installing nginx newrelic plugin"

cp -a nginx/newrelic_nginx_agent/* ${BOSH_INSTALL_TARGET}

# Forcing an update to get BOSH to recompile this package
pushd ${BOSH_INSTALL_TARGET}
bosh_bundle_local --deployment
bundle config set deployment true
bosh_bundle_local
popd
2 changes: 1 addition & 1 deletion packages/nginx_newrelic_plugin/spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: nginx_newrelic_plugin
dependencies:
- ruby-3.3
- ruby-4.0
files:
- nginx/newrelic_nginx_agent-1.2.1.tar.gz
2 changes: 2 additions & 0 deletions packages/ruby-4.0/spec.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: ruby-4.0
fingerprint: 1c57129111fddc1177f567ea243bb538a8087297eb916e61444e2fb27408b25d
2 changes: 1 addition & 1 deletion shared_job_templates/ruby_version.sh.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# shellcheck disable=1090
source "${BOSH_PACKAGES_DIR:-/var/vcap/packages}/ruby-3.3/bosh/runtime.env"
source "${BOSH_PACKAGES_DIR:-/var/vcap/packages}/ruby-4.0/bosh/runtime.env"

CC_PACKAGE_DIR="${BOSH_PACKAGES_DIR:-/var/vcap/packages}/cloud_controller_ng"
BUNDLER_VERSION=$(grep "BUNDLED WITH" ${CC_PACKAGE_DIR}/cloud_controller_ng/Gemfile.lock -A 1 | grep -v "BUNDLED" | awk '{print $1}')
Expand Down
1 change: 1 addition & 0 deletions spec/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source 'https://rubygems.org'

group :develop do
gem 'ostruct'
gem 'rubocop'
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
Expand Down
2 changes: 2 additions & 0 deletions spec/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ GEM
json (2.19.4)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
ostruct (0.6.3)
parallel (2.1.0)
parser (3.3.11.1)
ast (~> 2.4.1)
Expand Down Expand Up @@ -67,6 +68,7 @@ PLATFORMS

DEPENDENCIES
bosh-template
ostruct
rspec
rubocop
rubocop-capybara
Expand Down