mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-13 08:29:38 -05:00
bazel: check for docker config at container start
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
04dc6256e6
commit
3796122cdb
@ -5,6 +5,13 @@ function setup {
|
|||||||
mkdir -p "${HOME}/.cache/bazel"
|
mkdir -p "${HOME}/.cache/bazel"
|
||||||
mkdir -p "${HOME}/.cache/shared_bazel_repository_cache"
|
mkdir -p "${HOME}/.cache/shared_bazel_repository_cache"
|
||||||
mkdir -p "${HOME}/.cache/shared_bazel_action_cache"
|
mkdir -p "${HOME}/.cache/shared_bazel_action_cache"
|
||||||
|
|
||||||
|
if [[ ! -f "${HOME}/.docker/config.json" ]]; then
|
||||||
|
echo "ERROR: ${HOME}/.docker/config.json does not exist."
|
||||||
|
echo "Please login into your container registry to create it."
|
||||||
|
echo "echo <TOKEN> | docker login ghcr.io -u <USERNAME> --password-stdin"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function startBazelServer {
|
function startBazelServer {
|
||||||
|
Loading…
Reference in New Issue
Block a user