mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(lambda): support path-style ECR URIs for image functions (#1135)
This commit is contained in:
1 parent
a435147bea
commit
2a14f35c2d
2 files changed
+42
-3
No files matched your search
+1
-2
@@ -108,8 +108,7 @@ public class ContainerLauncher {
|
||||
String region = m.group(2);
|
||||
String repoAndTag = m.group(3);
|
||||
ecrRegistryManager.ensureStarted();
|
||||
int port = ecrRegistryManager.effectivePort();
|
||||
String rewritten = account + ".dkr.ecr." + region + ".localhost:" + port + "/" + repoAndTag;
|
||||
String rewritten = ecrRegistryManager.getRepositoryUri(account, region, repoAndTag);
|
||||
LOG.infov("Rewriting ECR image URI {0} -> {1}", image, rewritten);
|
||||
return rewritten;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user