ted
ted
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
Not sure how much kaniko setup you wanna have in the envbuilder repo
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
I think I can consider this issue solved for my own case. Do you think it would be worth updating the docs with the ECR setup steps somewhere? If so I can create a PR and get more input there.
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
That last error is no longer happening on new workspaces 🤷‍♂️
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
Still getting this at the end which I'm not really sure about: `#2: Error uploading layer to cache: open : no such file or directory #2: :construction_site: Built image! [1m58.428319491s]
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
2m0.765828453s vs 5m13.460330402s 👍
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
Yep, I am getting at least some cache hits now: #2: Found cached layer, extracting to filesystem
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
I added additional permissions to the ECR repo and now I can see them. I'm about to retry to see how many cache hits I get. It was:
"ecr:BatchCheckLayerAvailability",
"ecr:BatchGetImage",
"ecr:GetDownloadUrlForLayer"
"ecr:BatchCheckLayerAvailability",
"ecr:BatchGetImage",
"ecr:GetDownloadUrlForLayer"
It is now:
"ecr:BatchCheckLayerAvailability",
"ecr:GetDownloadUrlForLayer",
"ecr:GetRepositoryPolicy",
"ecr:DescribeRepositories",
"ecr:ListImages",
"ecr:DescribeImages",
"ecr:BatchGetImage",
"ecr:InitiateLayerUpload",
"ecr:UploadLayerPart",
"ecr:CompleteLayerUpload",
"ecr:PutImage"
"ecr:BatchCheckLayerAvailability",
"ecr:GetDownloadUrlForLayer",
"ecr:GetRepositoryPolicy",
"ecr:DescribeRepositories",
"ecr:ListImages",
"ecr:DescribeImages",
"ecr:BatchGetImage",
"ecr:InitiateLayerUpload",
"ecr:UploadLayerPart",
"ecr:CompleteLayerUpload",
"ecr:PutImage"
I'm not sure why I wasn't getting clearer errors from Kaniko previously when layer uploadds were presumeably failing 🤔
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
Think I might've figured this out. The tags which were reported in the logs as having been successfully pushed to the ECR repo were not actually being pushed.
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
But they do seem to match between run 1 and 2 so it's curious that I seem to get 0 cache hits. 🤔
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
My uneducated guess would be that the tagging is not behaving as intended for whatever reason. I would expect that these cache pull/push lines should all have the same image tag.
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
This is probably what we're all expecting but I also tested in envbuilder 0.2.9 with the same results.
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
Shared the full logs with @kyle via dm. If needed for others can also go that route or create a smaller reproduceable example to share publicly
19 replies
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
Yep, the image is ghcr.io/coder/envbuilder:0.2.6
19 replies