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

Question: How can I provide arguments to dip compose? #90

Open
kurt-mueller-osumc opened this issue Aug 5, 2020 · 2 comments
Open

Question: How can I provide arguments to dip compose? #90

kurt-mueller-osumc opened this issue Aug 5, 2020 · 2 comments

Comments

@kurt-mueller-osumc
Copy link

Hey all,

First, thank you for building this helpful tool that makes my life a bit easier. Second, my apologies for asking this question as Github issue - I didn't know if I should go pester people on Twitter or not 😄 .

I'd like to automatically provide arguments to dip compose - specifically, I'd like to have the flags set true for Docker's buildkit commands: COMPOSE_DOCKER_CLI_BUILD=1 and DOCKER_BUILDKIT=1. That way, whenever I run dip compose build, it will automatically add DOCKER_BUILDKIT=1.

Thanks for any and all help.

@bibendi
Copy link
Owner

bibendi commented Aug 5, 2020

Hi Kurt 🤝

Right now you cannot do that.

As far as I remember the buildkit is available only on the latest Docker version. I think it would be unfair to the users on older Docker because they cannot build an image.

@kurt-mueller-osumc
Copy link
Author

Fair enough. Feature request 😁 - allow me to add args.

compose:
  files:
    - docker/docker-compose.yml
    - docker/docker-compose.$COMPOSE_EXT.yml
    - docker/docker-compose.$DIP_OS.yml
  project_name: bear
  args:
    - DOCKER_BUILDKIT=1
    - COMPOSE_DOCKER_CLI_BUILD=1

Something along those lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants