summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorkmeister <kris@aliencom.net>2017-04-13 18:03:39 -0400
committerkmeister <kris@aliencom.net>2017-04-13 18:03:39 -0400
commit3ddd3307dcbbd26a1c317a11fc43e8ce03bada09 (patch)
tree44e9cc3928b9eae6fda899018b85353418e697d0 /docker
parente8b02fa2be50e8972cdf163022dfa7eb2c524821 (diff)
[docker] this setup will make it easier to add builds https://docs.docker.com/docker-hub/builds/#use-the-build-settings-page#add-and-run-a-new-build
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile27
-rw-r--r--docker/README.md4
2 files changed, 3 insertions, 28 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
deleted file mode 100644
index 706b5c8..0000000
--- a/docker/Dockerfile
+++ /dev/null
@@ -1,27 +0,0 @@
-
-# Base our image on an official, minimal image of our preferred goLang
-FROM golang:1.8.1
-
-# Note: The default golang docker image, already has the GOPATH env variable set.
-# GOPATH is located at /go
-ENV GO_SRC $GOPATH/src
-ENV PONZU_GITHUB github.com/ponzu-cms/ponzu
-ENV PONZU_ROOT $GO_SRC/$PONZU_GITHUB
-
-# Consider updating package in the future. For instance ca-certificates etc.
-# RUN apt-get update -qq && apt-get install -y build-essential
-
-# Make the ponzu root directory
-RUN mkdir -p $PONZU_ROOT
-
-# All commands will be run inside of ponzu root
-WORKDIR $PONZU_ROOT
-
-# Copy the ponzu source into ponzu root.
-COPY . .
-
-# the following runs the code inside of the $GO_SRC/$PONZU_GITHUB directory
-RUN go get $PONZU_GITHUB...
-
-# Define the scripts we want run once the container boots
-# CMD [ "" ]
diff --git a/docker/README.md b/docker/README.md
index 98841af..2401588 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -1,3 +1,5 @@
+# TODO: remove from here and add to wki
+
## Ponzu Docker build
Ponzu is distributed as a docker image **NEEDS LINK**, which aids in docker deployment. The Dockerfile in this directory is used by ponzu to generate the docker image which contains the ponzu executable.
@@ -7,7 +9,7 @@ Ponzu is distributed as a docker image **NEEDS LINK**, which aids in docker depl
#### Build the docker image. Run from the root of the project.
```bash
# from the root of ponzu:
-docker build -f docker/Dockerfile -t ponzu-dev .
+docker build -t ponzu-dev
```
#### Start the image, share the local directory and pseudo terminal (tty) into for debugging: