containers-gem-compiler/bootstrap.sh

16 lines
427 B
Bash
Raw Permalink Normal View History

2021-09-29 18:54:59 +00:00
#!/bin/sh
test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS}
2021-09-30 00:11:17 +00:00
test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS}
2021-09-29 18:54:59 +00:00
2023-07-18 18:20:01 +00:00
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
CMAKE_FLAGS="${CMAKE_FLAGS}" \
su-exec builder /usr/local/bin/gem-compiler
2022-02-15 13:23:07 +00:00
exit_status=$?
test -n "${EXTRA_PKGS}" && apk del ${EXTRA_PKGS}
2022-04-14 19:09:21 +00:00
test -n "${EXTRA_GEMS}" && gem uninstall --all ${EXTRA_GEMS}
2022-02-15 13:23:07 +00:00
exit ${exit_status}