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

[BUG] make build failed #1945

Closed
j4ckstraw opened this issue Mar 11, 2024 · 4 comments · Fixed by #1950
Closed

[BUG] make build failed #1945

j4ckstraw opened this issue Mar 11, 2024 · 4 comments · Fixed by #1950
Labels
kind/bug Create a report to help us improve

Comments

@j4ckstraw
Copy link
Contributor

What happened:

$ make docker-build-koordlet
docker build   --pull -t "ghcr.io/koordinator-sh/koordlet:main-36ad5766" -f docker/koordlet.dockerfile .
Sending build context to Docker daemon  404.2MB
Step 1/23 : FROM --platform=$TARGETPLATFORM golang:1.18 as builder
failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument
make: *** [Makefile:135: docker-build-koordlet] Error 1

What you expected to happen:
Build image successfully

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • App version:
  • Kubernetes version (use kubectl version):
  • Install details (e.g. helm install args):
  • Node environment (for koordlet/runtime-proxy issue):
    • Containerd/Docker version:
    • OS version:
    • Kernal version:
    • Cgroup driver: cgroupfs/systemd
  • Others:
@j4ckstraw j4ckstraw added the kind/bug Create a report to help us improve label Mar 11, 2024
@j4ckstraw
Copy link
Contributor Author

make DOCKER_BUILDER="buildx build" docker-build-koordlet work for me.

@saintube
Copy link
Member

saintube commented Mar 12, 2024

make DOCKER_BUILDER="buildx build" docker-build-koordlet work for me.

@j4ckstraw Yes. The multi-arch image building should be used with docker buildx. It seems the Makefile is outdated. Could you please help us update it?

@j4ckstraw
Copy link
Contributor Author

make DOCKER_BUILDER="buildx build" docker-build-koordlet work for me.

@j4ckstraw Yes. The multi-arch image building should be used with docker buildx. It seems the Makefile is outdated. Could you please help us update it?

build with docker buildx build is very slow than docker build, I'll try to find out it before file a pr.

@j4ckstraw
Copy link
Contributor Author

make DOCKER_BUILDER="buildx build" docker-build-koordlet work for me.

@j4ckstraw Yes. The multi-arch image building should be used with docker buildx. It seems the Makefile is outdated. Could you please help us update it?

build with docker buildx build is very slow than docker build, I'll try to find out it before file a pr.

This command RUN apt update && apt install -y bash build-essential cmake wget consumes a lot of time, so I changed apt source by
add RUN sed -i 's#deb.debian.org#ftp.cn.debian.org#' /etc/apt/sources.list before it.
it works for me.

also note docker/buildx#379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Create a report to help us improve
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants