Skip to content

Commit 79f326c

Browse files
fix(sandbox): install gogcli and add linuxbrew to global PATH
1 parent 747609d commit 79f326c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile.sandbox-common

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ RUN if [ "${INSTALL_BREW}" = "1" ]; then \
4242
if [ ! -e "${BREW_INSTALL_DIR}/Library" ]; then ln -s "${BREW_INSTALL_DIR}/Homebrew/Library" "${BREW_INSTALL_DIR}/Library"; fi; \
4343
if [ ! -x "${BREW_INSTALL_DIR}/bin/brew" ]; then echo \"brew install failed\"; exit 1; fi; \
4444
ln -sf "${BREW_INSTALL_DIR}/bin/brew" /usr/local/bin/brew; \
45+
su - linuxbrew -c "${BREW_INSTALL_DIR}/bin/brew install gogcli"; \
46+
echo "export PATH=\"${BUN_INSTALL_DIR}/bin:${BREW_INSTALL_DIR}/bin:${BREW_INSTALL_DIR}/sbin:\$PATH\"" >> /etc/profile.d/sandbox-path.sh; \
47+
echo "PATH=\"${BUN_INSTALL_DIR}/bin:${BREW_INSTALL_DIR}/bin:${BREW_INSTALL_DIR}/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"" >> /etc/environment; \
4548
fi
4649

4750
# Default is sandbox, but allow BASE_IMAGE overrides to select another final user.

0 commit comments

Comments
 (0)