-
Notifications
You must be signed in to change notification settings - Fork 144
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
Support for Buildkit? #256
Comments
it looks like |
I got it to work by setting those env variables
Keep in mind that you need docker-compose 1.25.1+ |
@arturopie you can add |
TIL. It works. Thanks! |
Is there any way to support |
AFAIK there is no support for passing additional to |
I cannot get the docker-compose plugin work with Buildkit. This is my Buildkite pipeline:
I get: My docker-compose version is
My
Do you have any hints of what might possibly go wrong here or how to debug what Buildkite is doing with my envs? |
I have found the issue, though I have the right docker-compose version, my docker version is 18.06, where at least 18.09 is needed. |
Another thing that just tripped us up is that when using Buildkit it wasn't using the cached layers from the To include the cache metadata set the build arg So now the example above would look like... steps:
- label: ':docker: Build test-cpu-...'
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
BUILDKIT_PROGRESS: plain
plugins:
- docker-compose#v3.5.0:
build: test-cpu-...
config: docker-compose.test.yml
args:
- BUILDKIT_INLINE_CACHE=1
... Which means to enable Buildkit you need to remember to put 4 different things in your pipeline configuration. It would be great to, "...just add a @toolmantim what are the, "parts of the output that we'll need to modify if |
Any updates on this? |
+1 to this request |
I have a fork of this plugin where I've added the following features:
I still need to add support for the new default The diff is here: https://github.com/outstand/docker-compose-buildkite-plugin/pull/1/files Edit: We're also using https://github.com/outstand/docker-cache-buildkite-plugin to save/load docker volumes from S3. |
👋🏻 also looking to use |
I was able to get an updated compose on the agents we run, but I didn't see a straightforward way to, still using this plugin, add I'm alright with putting our own updated docker-compose on the agents as long as we can use |
Version v4.3.0 just released should have some basic support for buildkit (see #347) |
where do you specify the docker version? |
That refers to the docker version installed where the agent was running and nothing that could be controlled from the plugin as far as I understand |
Hey @lox, I've been looking around and I know there's no official support for buildkit baked into docker-compose as of now, but I found stumbled across https://github.com/lox/docker-compose-buildkit 😄
Are there any plans to use your shim for
docker-compose
in this plugin? It would be really useful!The most important feature I'm looking for is around
docker build --ssh
, since builds may reference private GitHub repos for dependencies.In the meantime, would a decent approach be to have a step to manually pre-build an image with a
docker build && docker push
and have adocker-compose.yml
that references that image directly for this plugin to use?The text was updated successfully, but these errors were encountered: