-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Disable http server on default (on binary) - Enable http server and metrics on Docker images - Enable JSON log per default on Docker images - Add debian, ubuntu und alpine Docker images Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
- Loading branch information
Showing
7 changed files
with
69 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.14 as build | ||
|
||
WORKDIR /go/src/github.com/webdevops/go-crond | ||
|
||
# Get deps (cached) | ||
COPY ./go.mod /go/src/github.com/webdevops/go-crond | ||
COPY ./go.sum /go/src/github.com/webdevops/go-crond | ||
RUN go mod download | ||
|
||
# Compile | ||
COPY ./ /go/src/github.com/webdevops/go-crond | ||
RUN make lint | ||
RUN make build-local | ||
|
||
############################################# | ||
# FINAL IMAGE | ||
############################################# | ||
FROM debian:stable-slim | ||
ENV SERVER_BIND=":8080" \ | ||
SERVER_METRICS="1" \ | ||
LOG_JSON="1" | ||
COPY --from=build /go/src/github.com/webdevops/go-crond/go-crond /usr/local/bin | ||
EXPOSE 8080 | ||
ENTRYPOINT ["go-crond"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.14 as build | ||
|
||
WORKDIR /go/src/github.com/webdevops/go-crond | ||
|
||
# Get deps (cached) | ||
COPY ./go.mod /go/src/github.com/webdevops/go-crond | ||
COPY ./go.sum /go/src/github.com/webdevops/go-crond | ||
RUN go mod download | ||
|
||
# Compile | ||
COPY ./ /go/src/github.com/webdevops/go-crond | ||
RUN make lint | ||
RUN make build-local | ||
|
||
############################################# | ||
# FINAL IMAGE | ||
############################################# | ||
FROM ubuntu:latest | ||
ENV SERVER_BIND=":8080" \ | ||
SERVER_METRICS="1" \ | ||
LOG_JSON="1" | ||
COPY --from=build /go/src/github.com/webdevops/go-crond/go-crond /usr/local/bin | ||
EXPOSE 8080 | ||
ENTRYPOINT ["go-crond"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.