rapid-advantage-25766
10/04/2024, 12:54 PMwhatever/something:idk
), pulumi up
fails and raises the issue that I’m not allowed to pull (from <http://docker.io/whatever/something:idk|docker.io/whatever/something:idk>
).
I guess that comes from the change of builder (docker-build to buildx), but I have no idea how to correct that.
If anyone has any clue on how to solve that, I’m game! 🙏rapid-advantage-25766
10/04/2024, 1:01 PMrapid-advantage-25766
10/04/2024, 1:54 PMhallowed-photographer-31251
10/04/2024, 5:08 PMdocker buildx build
. it would be helpful to first replicate what you’re trying to do using the CLI, to rule out any pulumi-specific behavior. there are a number of things that could be causing it to try pulling the image, e.g. if you’re trying to use a local image as a base image with a platform mismatch. it would also be helpful to see the actual image resource you’re working with.rapid-advantage-25766
10/04/2024, 5:51 PMdocker buildx build
.
I don’t think the image itself will reveal much; it’s basically an image built from scratch, with a binary built with go that awaits a SIGINT. The smallest image that does nothing until it’s killed, if I dare say.
Looks like this:
FROM golang:1.21-alpine3.18 AS go-builder
COPY resources/wait4sigint.go /wait4sigint.go
ARG GOOS
ARG GOARCH
RUN GOOS="${GOOS}" GOARCH="${GOARCH}" go build -v -o /wait4sigint /wait4sigint.go
FROM scratch
COPY --from=go-builder wait4sigint /
ENTRYPOINT ["/wait4sigint"]
And the go program itself:
package main // wait4sigint
import (
"fmt"
"os"
"os/signal"
"syscall"
)
func wait4sigint() {
done := make(chan os.Signal, 1)
signal.Notify(done, syscall.SIGINT, syscall.SIGTERM)
fmt.Println("block until SIGINT")
<-done
}
func main() {
wait4sigint()
}
I’ll provide a minimalist repo to replicate if I can’t solve it by myself thanks to your hints, but hopefully that won’t be necessary 💪rapid-advantage-25766
10/04/2024, 5:52 PMhallowed-photographer-31251
10/04/2024, 5:54 PMrapid-advantage-25766
10/22/2024, 8:18 AMrapid-advantage-25766
10/22/2024, 8:20 AMhallowed-photographer-31251
10/22/2024, 4:07 PM