mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
build: fix building of ASN map
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 ./
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user