Skip to content

Commit

Permalink
add ecr login credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldesai1 committed Feb 14, 2024
1 parent ea01ac9 commit da67127
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit da67127

Please sign in to comment.