This commit is contained in:
parent
2c5f901b08
commit
ceb6d16dcf
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
debug.log
|
debug.log
|
||||||
historyposter
|
historyposterd
|
||||||
|
@ -33,7 +33,7 @@ RUN tar -c /go | bzip2 > /go.tbz2
|
|||||||
FROM scratch AS final
|
FROM scratch AS final
|
||||||
COPY --from=builder /user/group /user/passwd /etc/
|
COPY --from=builder /user/group /user/passwd /etc/
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=builder /go/src/git.eeqj.de/sneak/historyposter/historyposter /app/historyposter
|
COPY --from=builder /go/src/git.eeqj.de/sneak/historyposter/historyposterd /app/historyposterd
|
||||||
COPY --from=builder /go.tbz2 /go.tbz2
|
COPY --from=builder /go.tbz2 /go.tbz2
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -45,4 +45,4 @@ EXPOSE 8080
|
|||||||
|
|
||||||
USER nobody:nobody
|
USER nobody:nobody
|
||||||
|
|
||||||
ENTRYPOINT ["./historyposter"]
|
ENTRYPOINT ["./historyposterd"]
|
||||||
|
12
Makefile
12
Makefile
@ -37,18 +37,18 @@ lint:
|
|||||||
sh -c 'test -z "$$(gofmt -l .)"'
|
sh -c 'test -z "$$(gofmt -l .)"'
|
||||||
|
|
||||||
debug: build
|
debug: build
|
||||||
GOTRACEBACK=all HISTORYPOSTER_DEBUG=1 ./$(FN) 2>&1 | tee -a debug.log
|
GOTRACEBACK=all HISTORYPOSTER_DEBUG=1 ./$(FN)d 2>&1 | tee -a debug.log
|
||||||
|
|
||||||
debugger:
|
debugger:
|
||||||
cd cmd/historyposter && dlv debug main.go
|
cd cmd/historyposter && dlv debug main.go
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
./$(FN)
|
./$(FN)d
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm ./$(FN)
|
-rm ./$(FN)d
|
||||||
|
|
||||||
build: ./$(FN)
|
build: ./$(FN)d
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
docker build .
|
docker build .
|
||||||
@ -56,7 +56,7 @@ docker:
|
|||||||
go-get:
|
go-get:
|
||||||
cd cmd/$(FN) && go get -v
|
cd cmd/$(FN) && go get -v
|
||||||
|
|
||||||
./$(FN): */*.go cmd/*/*.go go-get
|
./$(FN)d: */*.go cmd/*/*.go go-get
|
||||||
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .
|
cd cmd/$(FN) && go build -o ../../$(FN)d $(GOFLAGS) .
|
||||||
|
|
||||||
.PHONY: build fmt test is_uncommitted docker dist hub upload-docker-image clean run rundebug default build-docker-image-dist
|
.PHONY: build fmt test is_uncommitted docker dist hub upload-docker-image clean run rundebug default build-docker-image-dist
|
||||||
|
Loading…
Reference in New Issue
Block a user