mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
ci-automation: Allow using --devcontainer-file option too
I seem to have problems with getting a network connectivity inside QEMU vm when running the tests in the azure machine. I don't know what's the cause, but for the dev container tests these problems can be worked around by using the locally provided dev container image. Make it possible by specifying QEMU_DEVCONTAINER_FILE in the environment.
This commit is contained in:
parent
0634f969a6
commit
a0b195f876
@ -77,7 +77,7 @@ QEMU_UPDATE_PAYLOAD="tmp/flatcar_test_update.gz"
|
||||
# and the binpackages from.
|
||||
QEMU_DEVCONTAINER_URL="${QEMU_DEVCONTAINER_URL:-}"
|
||||
QEMU_DEVCONTAINER_BINHOST_URL="${QEMU_DEVCONTAINER_BINHOST_URL:-}"
|
||||
|
||||
QEMU_DEVCONTAINER_FILE="${QEMU_DEVCONTAINER_FILE:-}"
|
||||
|
||||
# -- Equinix Metal --
|
||||
EQUINIXMETAL_PARALLEL="${PARALLEL_TESTS:-4}"
|
||||
|
@ -46,6 +46,9 @@ declare -a devcontainer_opts
|
||||
if [ -n "${QEMU_DEVCONTAINER_URL}" ] ; then
|
||||
echo "++++ Using custom devcontainer URL '${QEMU_DEVCONTAINER_URL}'"
|
||||
devcontainer_opts+=( "--devcontainer-url" "${QEMU_DEVCONTAINER_URL}" )
|
||||
elif [ -n "${QEMU_DEVCONTAINER_FILE}" ]; then
|
||||
echo "++++ Using custom devcontainer FILE '${QEMU_DEVCONTAINER_FILE}'"
|
||||
devcontainer_opts+=( "--devcontainer-file" "${QEMU_DEVCONTAINER_FILE}" )
|
||||
fi
|
||||
if [ -n "${QEMU_DEVCONTAINER_BINHOST_URL}" ] ; then
|
||||
echo "++++ Using custom devcontainer binhost '${QEMU_DEVCONTAINER_BINHOST_URL}'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user