-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: Add commands for managing/interacting w/ docker in dev mode
scripts/docker-dev/up: starts a dev container. scripts/docker-dev/down: stops a currently running dev container. scripts/docker-dev/shell: attaches the tty to a running dev container and allows interacting with the `mailpile` python cli.
- Loading branch information
Gregory Igelmund
committed
Mar 23, 2017
1 parent
2a79283
commit 5ec6e42
Showing
5 changed files
with
16 additions
and
1 deletion.
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
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,2 @@ | ||
#!/bin/bash | ||
docker-compose -f docker-compose.dev.yml down |
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,9 @@ | ||
#!/bin/bash | ||
CONTAINER_NAME=mailpile_dev | ||
CONTAINER_ID=$(docker ps --filter "name=${CONTAINER_NAME}" --quiet) | ||
if [[ ! -z $CONTAINER_ID ]]; then | ||
echo "Connecting to docker container ${CONTAINER_NAME}:${CONTAINER_ID}" | ||
docker attach $CONTAINER_NAME | ||
else | ||
echo "Docker container ${CONTAINER_NAME} does not seem to be running. Start it with './scripts/docker-dev/up'" | ||
fi |
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,2 @@ | ||
#!/bin/bash | ||
docker-compose -f docker-compose.dev.yml up --build --remove-orphans |