From da6712778a232cc76bbc09e2c033a11b20a27997 Mon Sep 17 00:00:00 2001 From: Rahul Desai Date: Wed, 14 Feb 2024 10:35:16 -0800 Subject: [PATCH] add ecr login credentials --- sysbox-eks.pkr.hcl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sysbox-eks.pkr.hcl b/sysbox-eks.pkr.hcl index 53f140c..9095945 100644 --- a/sysbox-eks.pkr.hcl +++ b/sysbox-eks.pkr.hcl @@ -288,6 +288,14 @@ build { inline = [ "set -o pipefail -o errexit", + "echo '>>> Configuring ECR Credentials for StarGZ'", + + "sudo apt-get install amazon-ecr-credential-helper -y", + + "sudo mkdir /root/.docker", + "sudo touch /root/.docker/config.json", + "sudo dasel put string --parser json --file /root/.docker/config.json --selector 'credsStore' -v 'ecr-login'", + "echo '>>> Configuring CRI-O for StarGZ'", "sudo dasel put string --parser toml --file /etc/containers/storage.conf --selector 'storage.options.additionallayerstores.[]' --multiple /var/lib/stargz-store/store:ref",