Skip to content
Merged
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
10 changes: 7 additions & 3 deletions ci/tasks/os-images/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ sudo chown -R ubuntu .
sudo chown -R ubuntu:ubuntu /mnt
sudo chmod u+s "$(which sudo)"

cd "${REPO_ROOT}"
pushd "${REPO_ROOT}/bosh-stemcell"
bundle install
popd

sudo --preserve-env --set-home --user ubuntu -- /bin/bash --login -i <<SUDO
pushd "${REPO_ROOT}/bosh-stemcell"
bundle install
popd

bundle exec rake stemcell:build_os_image[$OPERATING_SYSTEM_NAME,$OPERATING_SYSTEM_VERSION,$OS_IMAGE]
SUDO
pushd "${REPO_ROOT}"
bundle exec rake stemcell:build_os_image[$OPERATING_SYSTEM_NAME,$OPERATING_SYSTEM_VERSION,$OS_IMAGE]
popd
SUDO
Loading