-
Notifications
You must be signed in to change notification settings - Fork 2
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
e6d5eab
commit b31eeec
Showing
4 changed files
with
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! /bin/sh | ||
#Attach a shell to nginx | ||
NGINX_PS=$(docker ps -f name=ocflmount -q) | ||
docker exec -it $NGINX_PS /bin/bash -c 'exec "${SHELL:-sh}"' |
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,6 @@ | ||
#!/bin/bash | ||
|
||
# Follow logs | ||
|
||
NGINX_PS=$(docker ps -f name=ocflmount -q) | ||
docker container logs -f $NGINX_PS |
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,6 @@ | ||
#! /bin/sh | ||
# stop and remove the ocflmount container | ||
|
||
NGINX_PS=$(docker ps -f name=ocflmount -q) | ||
docker stop $NGINX_PS | ||
docker rm $NGINX_PS |
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,8 @@ | ||
#!/bin/bash | ||
|
||
OCFL_DIR=/Users/mike/working/redbox/ocfl-nginx/test_repos/ | ||
|
||
docker run -d --name ocflmount \ | ||
--mount type=bind,source=${OCFL_DIR},target=/etc/share/nginx/html \ | ||
-p 8080:8080 \ | ||
$1 |