-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJustfile
42 lines (29 loc) · 2.73 KB
/
Justfile
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
msb-tikv: (_clone "tikv" "https://github.com/tikv/tikv.git" "master")
docker build --load -t localhost/tikv:local-build -f dockerfiles/cd/builders/tikv/Dockerfile ../tikv
msb-tiflash: (_clone "tiflash" "https://github.com/pingcap/tiflash" "master")
docker build --load -t localhost/tiflash:local-build -f dockerfiles/cd/builders/tiflash/Dockerfile ../tiflash
msb-dm: (_clone "tiflow" "https://github.com/pingcap/tiflow.git" "master")
docker build --load -t localhost/dm:local-build -f dockerfiles/cd/builders/tiflow/Dockerfile --target final-dm ../tiflow
msb-cdc-old: (_clone "tiflow" "https://github.com/pingcap/tiflow.git" "master")
docker build --load -t localhost/cdc:local-build -f dockerfiles/cd/builders/tiflow/Dockerfile --target final-cdc ../tiflow
msb-cdc: (_clone "ticdc" "https://github.com/pingcap/ticdc.git" "master")
docker build --load -t localhost/cdc:local-build -f dockerfiles/cd/builders/ticdc/Dockerfile ../ticdc
msb-tidb: (_clone_without_submodules "tidb" "https://github.com/pingcap/tidb.git" "master")
docker build --load -t localhost/tidb:local-build -f dockerfiles/cd/builders/tidb/Dockerfile ../tidb
msb-pd: (_clone "pd" "https://github.com/tikv/pd.git" "master")
docker build --load -t localhost/pd:local-build -f dockerfiles/cd/builders/pd/Dockerfile ../pd
msb-ng-monitoring: (_clone "ng-monitoring" "https://github.com/pingcap/ng-monitoring.git" "main")
docker build --load -t localhost/ng-monitoring:local-build -f dockerfiles/cd/builders/ng-monitoring/Dockerfile ../ng-monitoring
msb-tidb-dashboard: (_clone "tidb-dashboard" "https://github.com/pingcap/tidb-dashboard.git" "master")
docker build --load -t localhost/tidb-dashboard:local-build -f dockerfiles/cd/builders/tidb-dashboard/Dockerfile ../tidb-dashboard
msb-tidb-operator: (_clone "tidb-operator" "https://github.com/pingcap/tidb-operator.git" "master")
docker build --load -t localhost/tidb-operator:local-build -f dockerfiles/cd/builders/tidb-operator/Dockerfile ../tidb-operator
build_product_base_images: (_docker_build_prod_base_images "hub.pingcap.net/bases")
_clone component git_url git_branch:
[ -e ../{{component}} ] || git clone --recurse-submodules -j8 {{git_url}} --branch {{git_branch}} ../{{component}}
([ -e ../{{component}}/.dockerignore ] && rm ../{{component}}/.dockerignore) || true # make step depended on git metadata.
_clone_without_submodules component git_url git_branch:
[ -e ../{{component}} ] || git clone {{git_url}} --branch {{git_branch}} ../{{component}}
([ -e ../{{component}}/.dockerignore ] && rm ../{{component}}/.dockerignore) || true # make step depended on git metadata.
_docker_build_prod_base_images registry_prefix:
cd dockerfiles/bases; skaffold build --default-repo {{registry_prefix}}