Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd41ab5
commit 186ece2
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def shell # (command) | ||
Process.run( | ||
"docker-compose", | ||
%w(run --rm app bash), # shell: true, | ||
# output: STDOUT, | ||
output: Process::Redirect::Pipe, | ||
error: STDERR | ||
) do |process| | ||
process.output.gets_to_end | ||
end | ||
end | ||
|
||
# shell("docker-compose run --rm app bash") | ||
|
||
shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# `up <any command>` will default to running in this container | ||
# | ||
# For example, `up node index.js` will run `node index.js` in the `app` container | ||
# since it doesn't match any other up commands like `up stop` or `up install` | ||
main_container: app | ||
|
||
# You can customize the docker compose command here. | ||
# | ||
# Here's an example of how you might customize it: | ||
# | ||
# docker_compose_command: docker-compose -f docker-compose.dev. | ||
# | ||
# Note: for most projects the default is fine. | ||
docker_compose_command: docker-compose | ||
|
||
# Automatically rebuild images when these files have changed. | ||
# | ||
# Add files/directories your images rely on. | ||
rebuild_when_changed: | ||
- up.yml | ||
- Dockerfile | ||
- docker/* | ||
- docker-compose.* | ||
- shard.* | ||
- db/* |