diff --git a/.gitignore b/.gitignore index 07307b6..3ee250d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.db *.pid /shout +/docker/shout /build /coverage diff --git a/Makefile b/Makefile index 0478949..524c629 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ coverage: quicklisp libs docker: shout cp shout docker/shout - docker build docker + docker build -t huntprod/shout docker clean: rm -rf $(BUILD) diff --git a/README.md b/README.md index dd112ee..3933f8c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ No Seriously, How Do I Run It, _In Production_? Production? Well why didn't you say so? I recommend our [BOSH release][bosh]; it's very popular this time of year. +We also have a Docker image, [huntprod/shout][docker], if +that's your cup of tea. + How Do I Use It? ---------------- @@ -468,4 +471,5 @@ How Do I Contribute? [bosh]: https://github.com/jhunt/shout-boshrelease +[docker]: https://dockerhub.com/r/huntprod/shout [concourse]: https://github.com/jhunt/shout-resource diff --git a/docker/Dockerfile b/docker/Dockerfile index f06ccbe..82f12da 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,18 @@ -FROM scratch +FROM ubuntu + +RUN apt-get update &&\ + apt-get install -y \ + libssl1.0.0 \ + && \ + rm -rf /var/lib/apt/lists/* COPY shout /shout + ENV SHOUT_IT_OUT_LOUD=yes \ SHOUT_DATABASE=/db \ - SHOUT_PORT=80 -CMD /shout + SHOUT_PORT=7100 \ + SHOUT_OPS_CREDS=shouty:abouty \ + SHOUT_ADMIN_CREDS=admin:sadmin + +EXPOSE 7100 +CMD ["/shout"]