Skip to content

Commit

Permalink
Hard-wire BASE_IMAGE till api-endpoint can be called
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Jan 25, 2025
1 parent 150ff9c commit 17d4336
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ containers_down()

echo_base_image()
{
local -r json="$(curl --fail --silent --request GET https://beta.cyber-dojo.org/runner/base_image)"
echo "${json}" | jq -r '.base_image'
#local -r json="$(curl --fail --silent --request GET https://beta.cyber-dojo.org/runner/base_image)"
#echo "${json}" | jq -r '.base_image'
echo CYBER_DOJO_RUNNER_BASE_IMAGE=cyberdojo/docker-base:d6830c0
}

echo_env_vars()
{
# --build-arg ...
if [[ ! -v CYBER_DOJO_RUNNER_BASE_IMAGE ]] ; then
echo CYBER_DOJO_RUNNER_BASE_IMAGE=cyberdojo/docker-base:d6830c0
#echo CYBER_DOJO_RUNNER_BASE_IMAGE="$(echo_base_image)"
echo CYBER_DOJO_RUNNER_BASE_IMAGE="$(echo_base_image)"
fi
if [[ ! -v COMMIT_SHA ]] ; then
local -r sha="$(cd "${ROOT_DIR}" && git rev-parse HEAD)"
Expand Down

0 comments on commit 17d4336

Please sign in to comment.