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

Support piping command to Docker Compose #4

Open
jalcine opened this issue Oct 28, 2017 · 0 comments
Open

Support piping command to Docker Compose #4

jalcine opened this issue Oct 28, 2017 · 0 comments

Comments

@jalcine
Copy link

jalcine commented Oct 28, 2017

I use Elixir projects under Docker Compose (for emulation of a production environment). What I'm proposing is having something like the following:

guard :elixir, docker_compose: { service: :api } do
  watch(%r{^test/(.*)_test\.exs})
  watch(%r{^lib/(.+)\.ex$})           { |m| "test/#{m[1]}_test.exs" }
  watch(%r{^test/test_helper.exs$})   { "test" }
end

Which could run something like this under the hood:

$ docker-compose run api test $TEST_FILES

More options like the entrypoint needed could be used here, but not required for a MVP.

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

No branches or pull requests

1 participant