Skip to content

Commit

Permalink
Add Up
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcsmith committed Apr 16, 2019
1 parent fd41ab5 commit 186ece2
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -7,3 +7,6 @@
# Libraries don't need dependency lock
# Dependencies will be locked in application that uses them
/shard.lock

# Ignore Up cache file
/up.cache
15 changes: 15 additions & 0 deletions ssh.cr
@@ -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
25 changes: 25 additions & 0 deletions up.yml
@@ -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/*

0 comments on commit 186ece2

Please sign in to comment.