Skip to content

Commit

Permalink
Fixes #84
Browse files Browse the repository at this point in the history
  • Loading branch information
haxorof committed Jun 12, 2021
1 parent bc19778 commit 71ef16b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 43 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ RUN go build -v .

FROM frolvlad/alpine-glibc:alpine-3.12_glibc-2.32

ENV PROMSQL_BIND_ADDRESS="0.0.0.0"
ENV PROMSQL_PORT="8080"

COPY --from=builder /go/src/app/prometheus-sql /usr/local/bin/prometheus-sql
COPY docker-entrypoint.sh /usr/local/bin/

RUN chmod +x /usr/local/bin/*

EXPOSE 8080

ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
ENTRYPOINT ["/usr/local/bin/prometheus-sql"]
# Default command assumes the SQL agent is linked.
CMD ["-service", "http://sqlagent:5000"]
2 changes: 1 addition & 1 deletion Dockerfile.github
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM frolvlad/alpine-glibc:alpine-3.13
FROM frolvlad/alpine-glibc:alpine-3.12_glibc-2.32

ARG copy_file=./dist/linux-amd64/prometheus-sql

Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

// Default config values
var (
DefaultHost = ""
DefaultHost = "0.0.0.0"
DefaultTimeout = time.Minute
DefaultInterval = time.Minute * 5
DefaultService = ""
Expand Down
36 changes: 0 additions & 36 deletions docker-entrypoint.sh

This file was deleted.

0 comments on commit 71ef16b

Please sign in to comment.