-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
57 lines (39 loc) · 1.92 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
TAG = 1.0.0
.PHONY: all build push
all: build
clone:
rm -rf conflux
git clone -b v${TAG} --single-branch --depth 1 https://github.com/Conflux-Chain/conflux-rust.git conflux
build:
docker build -f production/Dockerfile.slim -t confluxchain/conflux-rust:${TAG} .
# host-build:
# docker build -t confluxchain/conflux-rust:${TAG} . --network host
push:
docker push confluxchain/conflux-rust:${TAG}
build-release:
docker build -f production/Dockerfile -t confluxchain/conflux-rust:${TAG} .
push-release:
docker push confluxchain/conflux-rust:${TAG}
build-node:
docker build -f production/Dockerfile.node -t confluxchain/conflux-node:${TAG} .
push-node:
docker push confluxchain/conflux-node:${TAG}
download-binary:
rm -rf conflux_linux_*.zip
rm -rf conflux-binary
rm -f cfxrun/conflux
wget https://github.com/Conflux-Chain/conflux-rust/releases/download/v${TAG}/conflux_linux_glibc2.27_x64_v${TAG}.zip
unzip conflux_linux_glibc2.27_x64_v${TAG}.zip -d conflux-binary
cp conflux-binary/run/conflux cfxrun/conflux
buildx:
docker buildx build -f Dockerfile.buildx --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} .
buildx-load:
docker buildx build -f Dockerfile.buildx --load --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:v${TAG} .
buildx-push:
docker buildx build -f Dockerfile.buildx --push --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} .
buildx-dev:
docker buildx build -f Dockerfile.dev.buildx --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} .
buildx-dev-load:
docker buildx build -f Dockerfile.dev.buildx --load --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} .
buildx-dev-push:
docker buildx build -f Dockerfile.dev.buildx --push --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} .