Skip to content

Commit

Permalink
fix(docker-image): init containerbase if needed (#32445)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Nov 11, 2024
1 parent f3cd1f3 commit 97ace64
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/docker/bin/renovate
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ if [[ -f "/usr/local/etc/env" && -z "${CONTAINERBASE_ENV+x}" ]]; then
. /usr/local/etc/env
fi

if [[ ! -d "/tmp/containerbase" ]]; then
# initialize all prepared tools
containerbase-cli init tool all
fi

/usr/local/renovate/node --use-openssl-ca "${RENOVATE_NODE_ARGS[@]}" /usr/local/renovate/dist/renovate.js "$@"
5 changes: 5 additions & 0 deletions tools/docker/bin/renovate-config-validator
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ if [[ -f "/usr/local/etc/env" && -z "${CONTAINERBASE_ENV+x}" ]]; then
. /usr/local/etc/env
fi

if [[ ! -d "/tmp/containerbase" ]]; then
# initialize all prepared tools
containerbase-cli init tool all
fi

/usr/local/renovate/node --use-openssl-ca /usr/local/renovate/dist/config-validator.js "$@"
5 changes: 5 additions & 0 deletions tools/docker/bin/renovate-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ if [[ -f "/usr/local/etc/env" && -z "${CONTAINERBASE_ENV+x}" ]]; then
. /usr/local/etc/env
fi

if [[ ! -d "/tmp/containerbase" ]]; then
# initialize all prepared tools
containerbase-cli init tool all
fi

if [[ "${1:0:1}" = '-' ]]; then
# assume $1 is renovate flag
set -- renovate "$@"
Expand Down

0 comments on commit 97ace64

Please sign in to comment.