Comments (3)
@viraptor You are correct, thanks for pointing out! It was my fault as it was one of the first changes I did in this repository without completely understanding the code's and compose nuances.
While I want to correct the option, I am really interested in your expectations on how it should work and what kind of configurations you want off it. Also, I am not 100% sure how specifying a target would work when you are building multiple services. Do you have any thoughts on that?
from docker-compose-buildkite-plugin.
I am really interested in your expectations on how it should work and what kind of configurations you want off it.
My original use case was to have a service app
pointing at a Dockerfile with multiple stages. Then the test steps would use an override to use target: ci
which includes the test tools, while other steps would use the default which builds just the deployable image.
Turns out I had more differences to implement, so ended up just duplicating the service as ...-prod
and ...-test
in the docker-compose itself and assigning different targets there.
I think the option could still be useful in a simpler setup.
Also, I am not 100% sure how specifying a target would work when you are building multiple services. Do you have any thoughts on that?
Nope, I suspect it would have to be a hack for a single service only.
from docker-compose-buildkite-plugin.
I just ran into this issue and assumed that specifying the target
option would override the compose file to add a target build directive to the overridden service definition, thus allowing me to target a stage in a multi stage build.
Sadly this just slaps an incorrect --target
onto the docker compose cmd which results in
$ docker-compose -f docker-compose.yml -p buildkite018c900423954192bc6a0b21321ae8ae -f docker-compose.buildkite-10-override.yml build --pull --target base app
unknown flag: --target
🚨 Error: The command exited with status 16
FWIW - My use case is similar to @viraptor in that i want to target a multi stage build.
#231 (comment) provides a similar use case I have where i'd like to prebuild multi stage cache images to avoid extra work in subsequent builds.
from docker-compose-buildkite-plugin.
Related Issues (20)
- @test "Run with --quiet-pull" should not pass HOT 2
- Issue using image cache for new agents HOT 1
- Is it possible to set `cache-to` to use registry cache? HOT 3
- Collapsed log output for builds HOT 3
- Pulling a docker image from a different pipeline HOT 1
- Environment Variables are not sent to dependency containers HOT 3
- Bad tag separator strikes again HOT 3
- Make `graceful-shutdown: true` the default behavior HOT 3
- pre-run-dependencies is broken with Docker Compose >=2.23.1,<2.24.0 HOT 1
- Docker Compose Plugin Error: No Build or Run Options Specified in Buildkite Pipeline HOT 5
- Docker containers not stopped when canceling through `cancel_on_build_failing` HOT 2
- Caching doesn't seem to work with v5 HOT 2
- `secrets` option fails with `unknown flag: --secret` HOT 1
- pre-checkout hook failed to run because it was already open HOT 3
- Missing support for profiles HOT 1
- Docker compose: 5.2.0 - unknown shorthand flag: 'f' in -f HOT 4
- Ability prepare step before run docker-comopse HOT 3
- `mount-buildkite-agent` should mount `BUILDKITE_AGENT_JOB_API_SOCKET` HOT 1
- Failures stopping containers are too quiet HOT 1
- "Pre-building the image" example does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-compose-buildkite-plugin.