1
0
mirror of https://github.com/bgp/stayrtr.git synced 2024-05-06 15:54:54 +00:00

fix dockerfiles

This commit is contained in:
Louis Poinsignon
2020-10-28 17:09:13 -07:00
parent 541b9dec1a
commit cced326b97
3 changed files with 5 additions and 6 deletions

View File

@ -2,6 +2,7 @@ ARG src_dir="/rtrdump"
FROM golang:alpine as builder
ARG src_dir
ARG LDFLAGS=""
RUN apk --update --no-cache add git && \
mkdir -p ${src_dir}
@ -9,7 +10,7 @@ RUN apk --update --no-cache add git && \
WORKDIR ${src_dir}
COPY . .
RUN go build cmd/rtrdump/rtrdump.go
RUN go build -ldflags "${LDFLAGS}" cmd/rtrdump/rtrdump.go
FROM alpine:latest
ARG src_dir

View File

@ -2,6 +2,7 @@ ARG src_dir="/rtrmon"
FROM golang:alpine as builder
ARG src_dir
ARG LDFLAGS=""
RUN apk --update --no-cache add git && \
mkdir -p ${src_dir}
@ -9,7 +10,7 @@ RUN apk --update --no-cache add git && \
WORKDIR ${src_dir}
COPY . .
RUN go build cmd/rtrmon/rtrmon.go
RUN go build -ldflags "${LDFLAGS}" cmd/rtrmon/rtrmon.go
FROM alpine:latest
ARG src_dir

View File

@ -142,7 +142,6 @@ func decodeJSON(data []byte) (*prefixfile.ROAList, error) {
}
type Client struct {
//Data prefixfile.ROAList
ValidateSSH bool
ValidateCert bool
SSHAuthUser string
@ -659,7 +658,7 @@ func (c *Comparator) Compare() {
}
if c.OneOff && donePrimary && doneSecondary {
// save file
// save file (one-off)
stop = true
}
@ -699,8 +698,6 @@ func main() {
os.Exit(0)
}
// if len(file) > 8 && (file[0:7] == "http://" || file[0:8] == "https://") {
lvl, _ := log.ParseLevel(*LogLevel)
log.SetLevel(lvl)