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

Allow compilation without "docker buildx" #979

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hlinnaka
Copy link
Contributor

I don't have "docker buildx" CLI installed on my system. I could install it, but it's easy to avoid the dependency, so let's do that instead and save one step for anyone new trying to build this.

I don't have "docker buildx" CLI installed on my system. I could
install it, but it's easy to avoid the dependency, so let's do that
instead and save one step for anyone new trying to build this.
Copy link
Contributor

@Omrigan Omrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect we will anyway need buildx soon, when we start building multiarch images (arm and x86_64)

@@ -145,30 +145,28 @@ docker-push: docker-build ## Push docker images to docker registry

.PHONY: docker-build-controller
docker-build-controller: ## Build docker image for NeonVM controller
docker build --build-arg VM_RUNNER_IMAGE=$(IMG_RUNNER) --build-arg BUILDTAGS=$(if $(PRESERVE_RUNNER_PODS),nodelete) -t $(IMG_CONTROLLER) -f neonvm/Dockerfile .
DOCKER_BUILDKIT=1 docker build --build-arg VM_RUNNER_IMAGE=$(IMG_RUNNER) --build-arg BUILDTAGS=$(if $(PRESERVE_RUNNER_PODS),nodelete) -t $(IMG_CONTROLLER) -f neonvm/Dockerfile .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is DOCKER_BUILDKIT=1 really needed? I googled, and it says docker has it by default in the current version (v23.0+)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is DOCKER_BUILDKIT=1 really needed? I googled, and it says docker has it by default in the current version (v23.0+)

Debian bookworm comes with an older version:

$ docker --version
Docker version 20.10.24+dfsg1, build 297e128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants