containers-gem-compiler/bootstrap.sh

14 lines
343 B
Bash
Raw 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
2021-09-29 19:19:40 +00:00
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}
test -n "${EXTRA_GEMS}" && gem uninstall ${EXTRA_GEMS}
exit ${exit_status}