diff options
author | kmeister <kris@aliencom.net> | 2017-04-11 15:06:19 -0400 |
---|---|---|
committer | kmeister <kris@aliencom.net> | 2017-04-11 15:06:19 -0400 |
commit | 770cd49278c8917d6639de0ad178eb5d434778b7 (patch) | |
tree | f3415444cec57348d531d1caf6ce969c6c898792 | |
parent | f56f81bf42b8b738839b0cd3a3b9603322152e5d (diff) |
#72 info for attaching the local directory as a docker volume
-rw-r--r-- | docker/README.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docker/README.md b/docker/README.md index 89c20f4..98841af 100644 --- a/docker/README.md +++ b/docker/README.md @@ -10,9 +10,11 @@ Ponzu is distributed as a docker image **NEEDS LINK**, which aids in docker depl docker build -f docker/Dockerfile -t ponzu-dev . ``` -#### Start the image and SSH into for debugging: +#### Start the image, share the local directory and pseudo terminal (tty) into for debugging: ```bash -docker run -it ponzu-dev -pwd #will output /ponzu -ponzu version #will output the ponzu version +docker run -v $(pwd):/go/src/github.com/ponzu-cms/ponzu -it ponzu-dev +pwd # will output the go src directory for ponzu +ponzu version # will output the ponzu version +# make an edit on your local and rebuild +go get github.com/ponzu-cms/ponzu/... ```
\ No newline at end of file |