install gsutil
apt update && apt install curl gnupg2 jq -y
# install gcloud (and gsutil with it)
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | \
tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \
apt-get update -y && apt-get install google-cloud-sdk -y
Authenticate to gcloud using Arrikto provided dockerconfig.json
# authenticate using the provided `dockerconfig.json` that has read-only access to registry and buckets in `arrikto-deploy`
cat dockerconfig.json | jq --raw-output '.auths."gcr.io".auth' | base64 -d | sed 's/_json_key://1' | \
gcloud auth activate-service-account --key-file=/dev/stdin
Download wheels from gcs, please make sure to use correct `KALE_VERSION`
# download wheels
KALE_VERSION=20220119.0
gsutil cp -r gs://kale-releases/kale-${KALE_VERSION} .
You will find sample Dockerfile and wheels in downloaded dir
kale-20220119.0/Dockerfile.kale
kale-20220119.0/wheels3.7/
Comments
0 comments
Please sign in to leave a comment.