bibendi / dip

The dip is a CLI dev–tool that provides native-like interaction with a Dockerized application.
MIT License
1.26k stars 44 forks source link

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

Open kurt-mueller-osumc opened 4 years ago

kurt-mueller-osumc commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.