build: fix building of ASN map

This commit is contained in:
Vincent Bernat
2022-05-12 14:39:39 +02:00
parent f5cd1ab2f4
commit bcb664e338
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ run tests:
- name: clickhouse/clickhouse-server:22.2 - name: clickhouse/clickhouse-server:22.2
alias: clickhouse alias: clickhouse
script: script:
- time apk add --no-cache git make gcc musl-dev protoc shared-mime-info yarn - time apk add --no-cache git make gcc musl-dev protoc shared-mime-info yarn curl
- export GOMODCACHE=$PWD/.go-cache - export GOMODCACHE=$PWD/.go-cache
- yarn config set cacheFolder $PWD/.yarn-cache - yarn config set cacheFolder $PWD/.yarn-cache
- time go mod download - time go mod download

View File

@@ -1,5 +1,5 @@
FROM golang:1.18-alpine AS build FROM golang:1.18-alpine AS build
RUN apk add --no-cache git make gcc musl-dev protoc shared-mime-info yarn RUN apk add --no-cache git make gcc musl-dev protoc shared-mime-info yarn curl
WORKDIR /app WORKDIR /app
COPY go.mod ./ COPY go.mod ./
COPY go.sum ./ COPY go.sum ./

View File

@@ -75,7 +75,7 @@ console/data/frontend: $(shell $(LSFILES) console/frontend/src 2> /dev/null)
console/data/frontend: ; $(info $(M) building console frontend) console/data/frontend: ; $(info $(M) building console frontend)
$Q cd console/frontend && yarn --silent build $Q cd console/frontend && yarn --silent build
orchestrator/clickhouse/data/asns.csv: orchestrator/clickhouse/data/asns.csv: ; $(info $(M) generate ASN map)
$Q curl -sL https://vincentbernat.github.io/asn2org/asns.csv | sed 's|,[^,]*$$||' > $@ $Q curl -sL https://vincentbernat.github.io/asn2org/asns.csv | sed 's|,[^,]*$$||' > $@
orchestrator/clickhouse/data/protocols.csv: # We keep this one in Git orchestrator/clickhouse/data/protocols.csv: # We keep this one in Git
$Q curl -sL http://www.iana.org/assignments/protocol-numbers/protocol-numbers-1.csv \ $Q curl -sL http://www.iana.org/assignments/protocol-numbers/protocol-numbers-1.csv \