Skip to content

Commit

Permalink
Merge pull request #2 from pldubouilh/docker
Browse files Browse the repository at this point in the history
dockerfile
  • Loading branch information
pldubouilh authored Nov 17, 2018
2 parents 13cf1db + e192cf3 commit 989449f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM alpine
EXPOSE 8001
COPY gossa /gossa
ENTRYPOINT [ "/gossa", "-h", "0.0.0.0", "/shared" ]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build:
make embed
go build gossa.go
CGO_ENABLED=0 go build gossa.go
rm gossa.go

embed:
Expand All @@ -16,8 +16,8 @@ run:

ci:
cd src && go vet && go fmt
timeout 5 make run &
cd src && sleep 1 && go test
timeout 10 make run &
cd src && sleep 5 && go test

ci-watch:
ls src/* | entr -rc make ci
Expand Down
12 changes: 12 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,15 @@ make

### built blobs
built blobs are available on the [release page](https://github.com/pldubouilh/gossa/releases).

### using with docker
a pretty short docker file is provided

```sh
# build docker image
make
docker build -t gossa .

# run
sudo docker run -v ~/ToShare:/shared -p 8001:8001 gossa
```

0 comments on commit 989449f

Please sign in to comment.