#buildx

2024-10-28

Как ускорить сборку Docker-образов в GitLab: стратегии кэширования с Docker Buildx

Скорость сборки Docker-образов играет важную роль в CI/CD, особенно для микросервисов, где частые обновления и тестирования требуют быстрой доставки изменений. Одним из решений для оптимизации сборок является Docker Buildx — расширение к стандартной команде `docker build`. Docker Buildx предлагает дополнительные возможности, такие как кэширование слоев образов, что помогает значительно сократить время сборки за счет повторного использования неизменных слоев. В отличие от стандартного процесса сборки, Docker Buildx предоставляет более гибкое управление кэшем, поддерживает мультиархитектурные сборки и работу с несколькими платформами. В этой статье мы сосредоточимся на том, как эффективно настроить и использовать кэширование с Docker Buildx в CI/CD пайплайнах на GitLab. Мы рассмотрим примеры, когда кэширование позволяет ускорить сборку, и ситуации, когда его лучше отключить для гарантии корректности итогового образа.

habr.com/ru/companies/bimeiste

#Docker_Buildx #Кэширование_Docker #CI/CD_оптимизация #MultiStage_Builds #DevOps #Buildx #docker #CI

Alejandro Baezzeab@fosstodon.org
2024-07-26

After a many moons, I decided to start using #docker instead of #podman. At least for work. 😅 And wow, have things changed. 🤯 #buildx is kind of amazing. The same with #bake. It kind of feels like things are in a much better place since podman brought competition. 😎

docs.docker.com/build/bake/

Rafael Sadowskisizeofvoid@bsd.network
2024-03-09

Upcoming #docker #buildx support on #OpenBSD. Nice work @op and ports@ contributors. :flan_hacker:​

Here you can see the kubernetes driver in action..

Cees-Jan Kiewiet :rp: :wm:wyri@haxim.us
2023-09-04

So what is everyone using for their #oci image building needs? Having a bit of a fight with #docker #buildx today while trying make building multi arch images, without pushing them to the registry right away. This is so I can load it up later for testing and CVE scanning them before pushing them to the registry. With docker build that is easy, docker buildx build not so much :(.

devguy :verified:developerguy@hachyderm.io
2023-04-28

:blobfoxgooglyconfused: People might still have confusion about using native cross-compilation support for languages like #Go rather than using #QEMU in Dockerfiles while using #Buildx, here is a great resource by Tonis Tiigi🥳
TLDR; add "--platform=$BUILDPLATFORM" to your FROM!
github.com/tonistiigi/xx#docke

Arthur Lutz (Zenika)arthurzenika@pouet.chapril.org
2023-04-14

J'ai appris un truc aujourd'hui :

🐳 "Multi-platform images" docs.docker.com/build/building

📦 github.com/docker/buildx#build

(et tout ça grâce à une version de java qui publie des DebianRevisionNumber différents pour chaque architecture, miam).

#docker #devops #buildx #buildkit

devguy :verified:developerguy@hachyderm.io
2023-04-10

🚨 The v1.0 release for #SLSA is on the way since the latest final release before v1.0 is RC2 was announced recently 🥳 Before v1.0, the issue for tracking the projects that currently integrate #SLSA provenance generation such as #buildx, #chains, many more⏰
github.com/slsa-framework/slsa

ClickHouse CI :archlinux:ClickHouseCI@hostux.social
2023-03-30

Момент, когда понимаешь, что inline #cache у #docker #buildx не поддерживает mode=max

a bird in an angry pose says "hey, fukc"
devguy :verified:developerguy@hachyderm.io
2023-03-18

If you want to install @docker #Buildx through @nixos_org and you are on the macOS environment, here are the commands that you should run ☝️
➡️ nix-env -iA nixpkgs.docker-buildx
➡️ln -s ~/.nix-profile/bin/docker-buildx ~/.docker/cli-plugins/docker-buildx
➡️ docker buildx version

devguy :verified:developerguy@hachyderm.io
2023-03-18

Every new #Flux CD release includes a bunch of amazing features. @fluxcd is one of the communities that take software S3C seriously and provide features to mitigate the risks of them such as providing #SBOMS and #SLSA attestations using @docker #Buildx!

cncf.io/blog/2023/03/06/flux-f

devguy :verified:developerguy@hachyderm.io
2023-03-18

6⃣ Since I'm one of the
@Docker
Captains, there is no doubt that I should be maintaining the #buildkit and #buildx packages. I added myself to the maintainers of these packages as well!
/cc
@amyg12345

➡️ nix-env -iA nixpkgs.(buildkit|docker-buildx)

Andreas Bergmeier 🍵🪵abergmeier@hachyderm.io
2022-12-12

@dragnucs Difficult and embarassing topic.
I wrote prototypes for Terraform Providers for #podman, #buildah and #kaniko IIRC.
ALL of them are horrible at caching layers - let alone remote exec.
The only descend approach which supports caching seems to be #buildx + #buildkit. And yes, I have a prototype implementation for that as well.
We are still not testing this though, since hosting a Buildkit Remote Builder on GKE is a nightmare.
Let alone error handling in both buildx and buildkit is BAD.

Greetings from a small #mastodon server running in docker on a #raspberrypi 3 with a whopping 1GB of memory :D

couldn't find a pre-built armv7 image so built it myself with #docker #buildx

Don't think I will be accepting (m)any registrations though ;)

there's even enough room for a #logitechmediaserver so my music collection also runs from here now.

2022-11-04

Just learned that `docker buildx bake` and `docker compose build` resolve relative paths for the `context` in a different way.

I've documented a workaround via `--set *.context=.` at github.com/docker/buildx/issue

#docker #buildx #compose

Guillaume Loursglours@framapiaf.org
2022-09-06

RT @developerguyba@twitter.com

Let's bake container images with bake 👨‍🍳🍰

I've written a blog post about @Docker@twitter.com #Buildx bake, with my say, a hidden gem inside Buildx 💎

I'd like to thank @crazyws@twitter.com for all his support and for such a great tool 🫶🙋🏻‍♂️

Hope you will enjoy it, thanks in advance for reading 🕺🏻😇 twitter.com/SaiyamPathak/statu

🐦🔗: twitter.com/developerguyba/sta

Michael Gerdemannnottulner@dizl.de
2022-06-06

Kennt ihr gute multiplattform #PHP #Docker Images, die man gut anpassen kann und die nicht zu groß sind? Sie sollten mit #buildx gebaut werden können. #followerPower #pleaseBoost #webdev

heise online (inoffiziell)heiseonline@squeet.me
2022-04-29
heise+ | Mit Docker buildx Container für mehrere Plattformen generieren

Wer die ARM-Architektur bei den großen Cloud-Anbietern nutzen möchte, benötigt plattformspezifische Container. Docker liefert mit buildx das passende Tool.
Mit Docker buildx Container für mehrere Plattformen generieren
Guillaume Loursglours@framapiaf.org
2021-11-05

RT @crazyws@twitter.com

First RC of #buildx 0.7.0 is out! Give it a try and let us know if you encounter any issues, thanks! github.com/docker/buildx/relea

🐦🔗: twitter.com/crazyws/status/145

Guillaume Loursglours@framapiaf.org
2021-03-05

RT @crazyws@twitter.com

I'm going to do a quick demo around #buildx bake. If you're interested it's time to join us at the #Docker #Community All-Hands on Mar 11th, 2021: dockr.ly/all-hands

🐦🔗: twitter.com/crazyws/status/136

2021-01-18

Building pynacl for ARM on my computer with : 40 mn. Building it on a 4 with 4GB : 6 mn.It's time to upgrade my PC...

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst