Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
Merge 018e1cc into 6b8b542
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ authored Dec 3, 2019
2 parents 6b8b542 + 018e1cc commit e48dbab
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:alpine

RUN apk add --update bash curl git && \
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
WORKDIR /go/src/github.com/analogj/lodestone-publisher/

CMD /go/src/github.com/analogj/lodestone-publisher/build.sh

#GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-X main.goos=linux -X main.goarch=amd64 -extldflags \"-static\"" -o lodestone-document-processor-linux-amd64 ./cmd/document-processor/document-processor.go && \
#GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-X main.goos=linux -X main.goarch=amd64 -extldflags \"-static\"" -o lodestone-thumbnail-processor-linux-amd64 ./cmd/thumbnail-processor/thumbnail-processor.go
#
#
#FROM debian:buster-slim as runtime
#
#RUN apt-get update && apt-get install -y bash curl git go-dep libmagickwand-6.q16-dev libreoffice-common
#COPY --from=builder /go/src/github.com/analogj/lodestone-processor/lodestone-document-processor-linux-amd64 /usr/bin/lodestone-document-processor
#COPY --from=builder /go/src/github.com/analogj/lodestone-processor/lodestone-thumbnail-processor-linux-amd64 /usr/bin/lodestone-thumbnail-processor
#
#RUN chmod +x /usr/bin/lodestone-document-processor /usr/bin/lodestone-thumbnail-processor
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
#
# lodestone-publisher


# Local Development

```
docker build --tag=lodestone-publisher .
docker run -v `pwd`:/go/src/github.com/analogj/lodestone-publisher/ lodestone-publisher
```
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e

dep ensure

# go test -v ./...

go build -o lodestone-fs-publisher-linux-amd64 ./cmd/fs-publisher/fs-publisher.go

./lodestone-fs-publisher-linux-amd64 --help
2 changes: 1 addition & 1 deletion cmd/fs-publisher/fs-publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func main() {
&cli.StringFlag{
Name: "amqp-exchange",
Usage: "The amqp exchange",
Value: "storageevents",
Value: "lodestone",
},

&cli.StringFlag{
Expand Down

0 comments on commit e48dbab

Please sign in to comment.