File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,6 @@ sudo systemctl start docker-binfmt.service
58
58
59
59
echo " show docker-binfmt status..."
60
60
systemctl status docker-binfmt.service
61
+
62
+ echo " Installing Amazon ECR credential helper..."
63
+ sudo dnf install -y amazon-ecr-credential-helper
Original file line number Diff line number Diff line change @@ -10,3 +10,11 @@ $docker_compose_version="2.35.1"
10
10
Write-Output " Installing docker-compose..."
11
11
choco install - y docker- compose -- version $docker_compose_version
12
12
If ($lastexitcode -ne 0 ) { Exit $lastexitcode }
13
+
14
+ Write-Output " Installing Amazon ECR credential helper..."
15
+ $ecr_cred_helper_version = " 0.10.1"
16
+ $ecr_cred_helper_url = " https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/$ecr_cred_helper_version /windows-amd64/docker-credential-ecr-login.exe"
17
+ $docker_plugins_dir = " ${env: ProgramFiles} \Docker"
18
+ New-Item - ItemType Directory - Force - Path $docker_plugins_dir | Out-Null
19
+ Invoke-WebRequest - Uri $ecr_cred_helper_url - OutFile " $docker_plugins_dir \docker-credential-ecr-login.exe"
20
+ Write-Output " Amazon ECR credential helper v$ecr_cred_helper_version installed to $docker_plugins_dir "
You can’t perform that action at this time.
0 commit comments