Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
fix dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn committed Oct 29, 2020
1 parent 41f3da9 commit 64c1d6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.rtrdump
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ 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}

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
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.rtrmon
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ 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}

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
Expand Down
5 changes: 1 addition & 4 deletions cmd/rtrmon/rtrmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ func decodeJSON(data []byte) (*prefixfile.ROAList, error) {
}

type Client struct {
//Data prefixfile.ROAList
ValidateSSH bool
ValidateCert bool
SSHAuthUser string
Expand Down Expand Up @@ -659,7 +658,7 @@ func (c *Comparator) Compare() {
}

if c.OneOff && donePrimary && doneSecondary {
// save file
// save file (one-off)
stop = true
}

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 64c1d6f

Please sign in to comment.