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 22, 2024
1 parent 64b46b8 commit 80f48f2
Show file tree
Hide file tree
Showing 2 changed files 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 @@ -290,6 +290,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
Empty file added test
Empty file.

0 comments on commit 80f48f2

Please sign in to comment.