rename infra-sshfp-cf to sshfp-updater
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
16bc968e21
commit
00d135e3a0
|
@ -4,6 +4,7 @@
|
||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
sshfp-updater
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|
|
@ -4,17 +4,17 @@ FROM golang:1.18-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod vendor
|
RUN go mod vendor
|
||||||
RUN go build -mod vendor -o ./infra-sshfp-cf
|
RUN go build -mod vendor -o ./sshfp-updater
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.16.0
|
FROM alpine:3.16.0
|
||||||
ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992
|
ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="artur@status.im"
|
LABEL org.opencontainers.image.authors="artur@status.im"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-generator"
|
LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-updater"
|
||||||
LABEL org.opencontainers.image.revision=${REVISION}
|
LABEL org.opencontainers.image.revision=${REVISION}
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY --from=builder /app/infra-sshfp-cf ./
|
COPY --from=builder /app/sshfp-updater ./
|
||||||
|
|
||||||
ENTRYPOINT [ "./infra-sshfp-cf" ]
|
ENTRYPOINT [ "./sshfp-updater" ]
|
||||||
|
|
|
@ -23,7 +23,7 @@ It's possible to create json formatted config file (example in `testcfg`)
|
||||||
|
|
||||||
As it has been designed to work with `consul watches` passing proper .json file
|
As it has been designed to work with `consul watches` passing proper .json file
|
||||||
to STDIN is required. Ex:
|
to STDIN is required. Ex:
|
||||||
`cat watches.dump | ./infra-sshfp-cf`
|
`cat watches.dump | ./sshfp-updater`
|
||||||
|
|
||||||
## Current state
|
## Current state
|
||||||
- CloudFlare integration is fully implemented
|
- CloudFlare integration is fully implemented
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package cloudflare
|
package cloudflare
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"infra-sshfp-cf/sshfp"
|
"sshfp-updater/sshfp"
|
||||||
|
|
||||||
"github.com/cloudflare/cloudflare-go"
|
"github.com/cloudflare/cloudflare-go"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package cloudflare
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"infra-sshfp-cf/sshfp"
|
"sshfp-updater/sshfp"
|
||||||
|
|
||||||
"github.com/cloudflare/cloudflare-go"
|
"github.com/cloudflare/cloudflare-go"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
10
main.go
10
main.go
|
@ -3,13 +3,13 @@ package main
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"infra-sshfp-cf/cloudflare"
|
|
||||||
"infra-sshfp-cf/config"
|
|
||||||
"infra-sshfp-cf/consul"
|
|
||||||
"infra-sshfp-cf/sshfp"
|
|
||||||
"infra-sshfp-cf/statestore"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"sshfp-updater/cloudflare"
|
||||||
|
"sshfp-updater/config"
|
||||||
|
"sshfp-updater/consul"
|
||||||
|
"sshfp-updater/sshfp"
|
||||||
|
"sshfp-updater/statestore"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
Loading…
Reference in New Issue