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

Add wrap_command and docker compose v2 support #1

Open
wants to merge 46 commits into
base: master
Choose a base branch
from

Conversation

ryansch
Copy link
Member

@ryansch ryansch commented Oct 29, 2020

I still need to add support for the new default compose.yml config file.

@ryansch ryansch self-assigned this Oct 29, 2020
plugin.yml Show resolved Hide resolved
@ryansch ryansch marked this pull request as ready for review November 3, 2020 18:53
# If there are any prebuilts, we need to generate an override docker-compose file
if [[ ${#prebuilt_services[@]} -gt 0 ]] ; then
echo "~~~ :docker: Creating docker-compose override file for prebuilt services"
build_image_override_file "${prebuilt_service_overrides[@]}" | tee "$override_file"
Copy link
Member

Choose a reason for hiding this comment

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

TIL tee

commands/wrap_command.sh Outdated Show resolved Hide resolved
load '../lib/run'
load '../lib/wrap_command'

# export DOCKER_COMPOSE_STUB_DEBUG=/dev/tty
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing this is for debugging?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, all of the specs in this repo keep those lines for debugging failures.

export BUILDKITE_PLUGIN_DOCKER_COMPOSE_CLEANUP=false

stub docker-compose \
"-f docker-compose.yml -p buildkite1111 build --pull myservice : echo built myservice" \
Copy link
Member

Choose a reason for hiding this comment

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

Is -p just the name of the container?

Copy link
Member Author

Choose a reason for hiding this comment

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

-p is the name of the docker compose project

@morganick
Copy link
Member

@ryansch this has already been approved

@ryansch ryansch changed the title Add wrap_command Add wrap_command and docker compose v2 support Jan 18, 2022
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