Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development setup #2704

Closed
spbkaizo opened this issue Jul 21, 2024 · 1 comment · Fixed by #2713
Closed

Development setup #2704

spbkaizo opened this issue Jul 21, 2024 · 1 comment · Fixed by #2713
Labels
area/documentation Improvements or additions to documentation

Comments

@spbkaizo
Copy link

I ran into an issue on building the docker images.

<simonb@odin:~/src/tetragon>
zsh/2 848  (git)-[main]-% make image
docker build -t "cilium/tetragon:latest" --target release --build-arg TETRAGON_VERSION=659704f9 --platform=linux/amd64 .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  191.9MB
Step 1/39 : FROM --platform=$BUILDPLATFORM quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a80ffef8120b2ac99e802bbd31dee10f5f15a48566832ae0866f AS bpf-builder
failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument
make: *** [Makefile:172: image] Error 1

I've got a bit of a handcranked linux install, with docker-ce installed and running from a standalone binary. The solution to get it to build was to install the buildx cli plugin. I'm guessing this may come as part of the full docker desktop installations.

Download buildx from https://github.com/docker/buildx/releases
mv the buildx binary to ~/.docker/cli-plugins/docker-buildx
Check install with:
docker buildx version

This then allows the build to continue, as it now utilises the buildx cli plugin.

This might be helpful for others in case they encounter the same.

@kkourt
Copy link
Contributor

kkourt commented Jul 22, 2024

@mtardy mtardy added the area/documentation Improvements or additions to documentation label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants