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

fix(dev): Use a buildx builder instance we control instead of the default #1534

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

tsibley
Copy link
Member

@tsibley tsibley commented Oct 16, 2024

We require the "docker-container" driver (via options we pass to docker buildx build, e.g. --cache-to) but the default builder instance may use the "docker" driver, leading to errors on dev machines like:

ERROR: cache export feature is currently not supported for docker
driver. Please switch to a different driver (eg. "docker buildx
create --use")

Being explicit about our builder avoids that.

This same pattern is used in nextstrain/docker-base's devel/build.¹

¹ nextstrain/docker-base@fac834e5
https://github.com/nextstrain/docker-base/blob/0acdc799/devel/build#L48-L56

Related-to: #1529 (comment)

…ault

We require the "docker-container" driver (via options we pass to `docker
buildx build`, e.g. --cache-to) but the default builder instance may use
the "docker" driver, leading to errors on dev machines like:

    ERROR: cache export feature is currently not supported for docker
    driver. Please switch to a different driver (eg. "docker buildx
    create --use")

Being explicit about our builder avoids that.

This same pattern is used in nextstrain/docker-base's devel/build.¹

¹ <nextstrain/docker-base@fac834e5>
  <https://github.com/nextstrain/docker-base/blob/0acdc799/devel/build#L48-L56>

Related-to: <#1529 (comment)>
Copy link

vercel bot commented Oct 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nextclade ✅ Ready (Inspect) Visit Preview Oct 16, 2024 7:22pm

@ivan-aksamentov ivan-aksamentov merged commit 09d6e7e into master Oct 16, 2024
20 checks passed
@ivan-aksamentov ivan-aksamentov deleted the trs/docker-dev-buildx-builder branch October 16, 2024 19:44
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