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

pass extra options to docker-compose up #105

Closed
rhyek opened this issue Jul 22, 2020 · 4 comments
Closed

pass extra options to docker-compose up #105

rhyek opened this issue Jul 22, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@rhyek
Copy link
Contributor

rhyek commented Jul 22, 2020

I'm running into the issue described here docker/compose#1487. I need to rebuild an image for a local dockerfile and would like the option pass the --build command line argument to docker-compose up somehow.

Maybe something like passing a subset of the official up options to the up method.

For example:

const environment = await new DockerComposeEnvironment(composeFilePath, composeFile)
  .up({ build: true });

I'm currently having to manually remove the cached docker image for my local project. Might there be another workaround I can use, currently?

@cristianrgreco
Copy link
Collaborator

Hi @rhyek, do you see any issues with #106 ?

@rhyek
Copy link
Contributor Author

rhyek commented Jul 22, 2020

@cristianrgreco that seems like it would do the trick.

@cristianrgreco
Copy link
Collaborator

@rhyek Thanks, this is available in 3.1.0, please let me know if it works for you and if it does please close this issue 🙂

@rhyek
Copy link
Contributor Author

rhyek commented Jul 22, 2020

@cristianrgreco it works perfectly. Thank you!

@rhyek rhyek closed this as completed Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants