Skip to content

Commit

Permalink
tast-on-debian: Create script on Debos to install gsutil
Browse files Browse the repository at this point in the history
Create a script and add it to debos to add `gsutil` to the Debian
base image of kernelci. `gsutil` is required by Tast to download
artifacts on decoder tests.

Signed-off-by: Denis Yuji Shimizu <[email protected]>
  • Loading branch information
denisyuji committed Sep 24, 2024
1 parent 7b282bb commit 11e33b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/rootfs/debos/rootfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,8 @@ actions:
description: Create cpio archive
chroot: false
command: cd ${ROOTDIR} ; find -H | cpio -H newc -v -o | gzip -c - > ${ARTIFACTDIR}/{{ $basename -}}/rootfs.cpio.gz

- action: run
description: Install gsutil from Google Cloud SDK required by Tast
chroot: false
script: scripts/install-gsutil.sh
7 changes: 7 additions & 0 deletions config/rootfs/debos/scripts/install-gsutil.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

wget -nv https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-475.0.0-linux-x86_64.tar.gz
sudo -u cros --login tar -zxf ./google-cloud-cli-475.0.0-linux-x86_64.tar.gz
sudo -u cros --login ./google-cloud-sdk/install.sh -q --usage-reporting=false
sudo -u cros --login echo "PATH=/home/cros/google-cloud-sdk/bin:$PATH" >> /home/cros/.profile

0 comments on commit 11e33b7

Please sign in to comment.