Skip to content

Commit

Permalink
Simplify Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kellegous committed Sep 17, 2016
1 parent ed547ac commit 8a228a0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
FROM alpine

ENV GOPATH /go

COPY . /go/src/github.com/etsy/hound
ONBUILD COPY config.json /hound/

COPY default-config.json /data/config.json

RUN apk update \
&& apk add go git subversion mercurial bzr openssh \
&& go install github.com/etsy/hound/cmds/houndd \
&& apk del go \
&& rm -f /var/cache/apk/* \
&& rm -rf /go/src /go/pkg

VOLUME ["/data"]

EXPOSE 6080

ENTRYPOINT ["/go/bin/houndd", "-conf", "/hound/config.json"]
ENTRYPOINT ["/go/bin/houndd", "-conf", "/data/config.json"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ go get github.com/etsy/hound/cmds/...
2. Run
```
docker run -it --rm -p 6080:6080 --name houndd -v $(pwd):/hound etsy/hound
docker run -d -p 6080:6080 --name hound -v $(pwd):/data etsy/hound
```
You should be able to navigate to [http://localhost:6080/](http://localhost:6080/) as usual.
Expand Down
8 changes: 8 additions & 0 deletions default-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"dbpath" : "db",
"repos" : {
"Hound" : {
"url" : "https://github.com/etsy/hound.git"
}
}
}

0 comments on commit 8a228a0

Please sign in to comment.