Skip to content

Enable BuildKit by setting DOCKER_BUILDKIT in the env files#573

Open
ezio-melotti wants to merge 1 commit intomasterfrom
docker-buildx
Open

Enable BuildKit by setting DOCKER_BUILDKIT in the env files#573
ezio-melotti wants to merge 1 commit intomasterfrom
docker-buildx

Conversation

@ezio-melotti
Copy link
Collaborator

This should fix the warning reported in:

@ezio-melotti ezio-melotti requested a review from Copilot November 29, 2025 13:42
@ezio-melotti ezio-melotti self-assigned this Nov 29, 2025
@ezio-melotti ezio-melotti added infrastructure Docker, GCP, GitHub actions, etc. bug Something isn't working labels Nov 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables Docker BuildKit by adding the DOCKER_BUILDKIT=1 environment variable to all environment configuration files, addressing issue #572 which likely reported a warning about BuildKit not being enabled. BuildKit is Docker's improved build system that provides better performance, caching, and build output.

  • Adds DOCKER_BUILDKIT=1 to all three environment configuration files
  • Refactors package installation code in simoc.py for better maintainability

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
simoc_docker_ngs.env Adds export DOCKER_BUILDKIT=1 to enable BuildKit for the ngs.simoc.space environment
simoc_docker_beta.env Adds export DOCKER_BUILDKIT=1 to enable BuildKit for the beta.simoc.space environment
simoc_docker.env Adds export DOCKER_BUILDKIT=1 to enable BuildKit for the localhost environment
simoc.py Refactors package installation by extracting package list into a variable for cleaner code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ezio-melotti
Copy link
Collaborator Author

This didn't work:

ERROR: BuildKit is enabled but the buildx component is missing or broken.
       Install the buildx component to build images with BuildKit:
       https://docs.docker.com/go/buildx/

Apparently BuildKit is not installed on Ubuntu 24.04 and can either be installed manually, the docker apt repo can be added and BuildKit/buildx installed from there, or we can just keep using the regular build and wait for the next version of Ubuntu to update the Docker packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working infrastructure Docker, GCP, GitHub actions, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants