Skip to content

Commit

Permalink
Update ruby packaging script to use ruby release bosh_bundle_local so…
Browse files Browse the repository at this point in the history
… gem binary paths are set correctly

Signed-off-by: Joseph Palermo <joseph.palermo@broadcom.com>
Co-authored-by: Joseph Palermo <joseph.palermo@broadcom.com>
  • Loading branch information
selzoc and jpalermo committed Nov 12, 2024
1 parent f462c13 commit 4966d10
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/bosh_openstack_cpi/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ source "${BOSH_PACKAGES_DIR}/openstack-ruby-3.1/bosh/compile.env"
cp -a bosh_openstack_cpi/* "${BOSH_INSTALL_TARGET}"
cd "${BOSH_INSTALL_TARGET}"

bundle_cmd="$BOSH_PACKAGES_DIR/openstack-ruby-3.1/bin/bundle"
export BUNDLER_VERSION="$($bundle_cmd -v | grep -o -e '[0-9.]*')"
$bundle_cmd config set --local deployment 'true'
$bundle_cmd config set --local no_prune 'true'
$bundle_cmd config set --local without 'development test'
$bundle_cmd config set --local cache_path 'vendor/package'
export BUNDLER_VERSION="$(bundle -v | grep -o -e '[0-9.]*')"
bundle config set --local cache_path 'vendor/package'

bosh_bundle_local


$bundle_cmd install

0 comments on commit 4966d10

Please sign in to comment.