Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant download consulalerts 0.6.0 #278

Open
imbargel opened this issue May 19, 2020 · 1 comment
Open

Cant download consulalerts 0.6.0 #278

imbargel opened this issue May 19, 2020 · 1 comment

Comments

@imbargel
Copy link

imbargel commented May 19, 2020

Hi,

We are trying to upgrade or download consul alerts 0.6.0 to utilize the new http feature but unable to do so.

First is we try to run a docker build and get the latest one thru below command but still showing 0.5.0

RUN go get -v github.com/AcalephStorage/consul-alerts

Step 13/24 : RUN consul-alerts --version

---> Running in 72be6c3e6b0b

Consul Alerts 0.5.0

Oad from the new release (source code) manually under https://github.com/AcalephStorage/consul-alerts/archive/v0.6.0.tar.gz

Then we tried to extract and ran go install. Then It gave us a binary of consul-alertsv0.6.0 but it still showing 0.5.0 after running consul-alertsv0.6.0 --version.

Can you please advise if we are missing some step or how do we get v0.6.0 correctly. Thanks

Go version : 1.10.3
Consul Verson: 1.3.1
OS: Ubuntu 14.04

@vvitayau
Copy link

vvitayau commented Aug 14, 2020

build yourself is more secure,
smaller by leveraging develop-images/multistage-build
using latest alpine, go, consul

less is more to appreciate
copying consul-alerts built on golang onto consul
one third the original size

REPOSITORY              TAG                 IMAGE ID            CREATED              SIZE
consul                  1.8                 6adcb25542ed        27 hours ago         122MB
golang                  1.15.0              75605a415539        2 days ago           839MB
acaleph/consul-alerts   latest              d6b7ee42ef61        19 months ago        427MB
FROM golang:1.15 AS golang
ENV GOPATH /go
WORKDIR /go
RUN go get -v github.com/AcalephStorage/consul-alerts
RUN sed 's/^const version = "\(.\)*"/const version = "latest"/' /go/src/github.com/AcalephStorage/consul-alerts/consul-alerts.go
RUN cd /go/src/github.com/AcalephStorage/consul-alerts
RUN go install github.com/AcalephStorage/consul-alerts

FROM consul:1.8
RUN apk --no-cache add ca-certificates
WORKDIR /bin/
COPY --from=golang /go/bin/consul-alerts .

EXPOSE 9000
CMD []
ENTRYPOINT [ "/bin/consul-alerts", "--alert-addr=0.0.0.0:9000" ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants