File tree Expand file tree Collapse file tree
docker/os-image-stemcell-builder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ RUN meta4_cli_path="/usr/local/bin/meta4" \
9191 > "${meta4_cli_path}" \
9292 && chmod +x "${meta4_cli_path}"
9393
94+ ENV GEM_HOME="${GEM_HOME}" \
95+ BUNDLE_APP_CONFIG="${GEM_HOME}" \
96+ BUNDLE_SILENCE_ROOT_WARNING=1
97+ ENV PATH="${GEM_HOME}/bin:${PATH}"
98+
9499RUN cd /tmp \
95100 && curl --show-error -sL "${RUBY_INSTALL_URL}" \
96101 | tar -xzf - \
@@ -103,9 +108,8 @@ RUN cd /tmp \
103108 && ruby-install --jobs=${NUM_CPUS} --cleanup --system ruby ${RUBY_VERSION} \
104109 -- --disable-install-doc --disable-install-rdoc \
105110 && gem update --system \
106- && bundle config --global path "${GEM_HOME}" \
107- && bundle config --global bin "${GEM_HOME}/bin"
108- ENV PATH=${GEM_HOME}/bin:${PATH}
111+ && mkdir -p "${GEM_HOME}/bin" \
112+ && chown -R ubuntu:ubuntu "${GEM_HOME}"
109113
110114RUN syft_cli_path="/usr/local/bin/syft" \
111115 && curl --show-error -sL "${SYFT_CLI_URL}" \
Original file line number Diff line number Diff line change 3333sudo chown -R ubuntu .
3434sudo chown -R ubuntu:ubuntu /mnt
3535sudo chmod u+s " $( which sudo) "
36- sudo --preserve-env --set-home --user ubuntu -- /bin/bash --login -i << SUDO
3736bundle install --local
37+ sudo --preserve-env --set-home --user ubuntu -- /bin/bash --login -i << SUDO
3838bundle exec rake stemcell:build_os_image[$OPERATING_SYSTEM_NAME ,$OPERATING_SYSTEM_VERSION ,$OS_IMAGE ]
3939SUDO
You can’t perform that action at this time.
0 commit comments