Skip to content

Commit

Permalink
Docker Image!
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
jhunt committed Sep 3, 2018
1 parent 05e8cef commit 9e4c7a7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.db
*.pid
/shout
/docker/shout
/build
/coverage
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
----------------

Expand Down Expand Up @@ -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
17 changes: 14 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 9e4c7a7

Please sign in to comment.