mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
kola/dev-container: override binhost to use private GCS
in this commit we make sure to use GCS bucket for dev container tests by providing the required credentials and the associated fetch command. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
dc4e4a8701
commit
7ef55eb15d
@ -28,11 +28,15 @@ fi
|
|||||||
sudo systemd-nspawn $PIPEARG \
|
sudo systemd-nspawn $PIPEARG \
|
||||||
--bind-ro=/lib/modules \
|
--bind-ro=/lib/modules \
|
||||||
--bind-ro="$PWD/flatcar_production_image_kernel_config.txt:/boot/config" \
|
--bind-ro="$PWD/flatcar_production_image_kernel_config.txt:/boot/config" \
|
||||||
|
--bind-ro="${GOOGLE_APPLICATION_CREDENTIALS}:/opt/credentials.json" \
|
||||||
|
--bind-ro="${verify_key}:/opt/verify.asc" \
|
||||||
--image=flatcar_developer_container.bin \
|
--image=flatcar_developer_container.bin \
|
||||||
--machine=flatcar-developer-container-$(uuidgen) \
|
--machine=flatcar-developer-container-$(uuidgen) \
|
||||||
--tmpfs=/usr/src \
|
--tmpfs=/usr/src \
|
||||||
--tmpfs=/var/tmp \
|
--tmpfs=/var/tmp \
|
||||||
/bin/bash -eux << 'EOF'
|
/bin/bash -eux << 'EOF'
|
||||||
|
export PORTAGE_BINHOST="${PORTAGE_BINHOST}"
|
||||||
|
export {FETCH,RESUME}COMMAND_GS="/usr/bin/gangue get --json-key=/opt/credentials.json --verify=true /opt/verify.asc \"\${URI}\" \"\${DISTDIR}/\${FILE}\""
|
||||||
emerge-gitclone
|
emerge-gitclone
|
||||||
. /usr/share/coreos/release
|
. /usr/share/coreos/release
|
||||||
if [[ $FLATCAR_RELEASE_VERSION =~ master ]]
|
if [[ $FLATCAR_RELEASE_VERSION =~ master ]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user