Skip to content

Commit

Permalink
refactor(dockerfile): update dockerfile for release 6.5
Browse files Browse the repository at this point in the history
From for ~6.5.12 we switch the base image to the new one.

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed Oct 21, 2024
1 parent 26105b4 commit b640808
Show file tree
Hide file tree
Showing 49 changed files with 120 additions and 167 deletions.
36 changes: 4 additions & 32 deletions .github/scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail

function test_get_builder() {
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.0"
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.12 v6.5.11 v6.5.0 v6.1.0"
local operating_systems="linux darwin"
local architectures="amd64 arm64"
local script="./packages/scripts/get-package-builder-with-config.sh"
Expand Down Expand Up @@ -33,20 +33,6 @@ function test_get_builder() {
done
done
done

# # experiment profile
# local components="tidb tiflow tiflash tikv pd ctl monitoring ng-monitoring tidb-tools"
# local versions="v8.5.0 v8.4.0"
# for cm in $components; do
# for version in $versions; do
# for os in $operating_systems; do
# for ac in $architectures; do
# echo -en "[🚢] $cm $os $ac $version experiment:\t"
# $script $cm $os $ac $version experiment
# done
# done
# done
# done
}

##### others that owns theirs non-unified versions #####
Expand Down Expand Up @@ -100,7 +86,7 @@ function test_get_builder_freedom_releasing() {
}

function test_gen_package_artifacts_script() {
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.0"
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.12 v6.5.11 v6.5.0 v6.1.0"
local operating_systems="linux darwin"
local architectures="amd64 arm64"
local script="./packages/scripts/gen-package-artifacts-with-config.sh"
Expand Down Expand Up @@ -204,7 +190,7 @@ function test_gen_package_artifacts_script_freedom_releasing() {
}

function test_gen_package_images_script() {
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.0"
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.12 v6.5.11 v6.5.0 v6.1.0"
local os="linux"
local architectures="amd64 arm64"
local script="./packages/scripts/gen-package-images-with-config.sh"
Expand Down Expand Up @@ -234,20 +220,6 @@ function test_gen_package_images_script() {
done
done
done

# # experiment profile
# local profile="experiment"
# local versions="v8.5.0 v8.4.0"
# local components="tidb tiflow tiflash tikv pd ctl monitoring ng-monitoring tidb-tools"
# for cm in $components; do
# for version in $versions; do
# for ac in $architectures; do
# echo -en "[📃💿] $cm $os $ac $version $profile:\t"
# $script $cm $os $ac $version $profile branch-xxx 123456789abcdef
# shellcheck -S error packages/scripts/build-package-images.sh
# done
# done
# done
}

function test_gen_package_images_script_freedom_releasing() {
Expand Down Expand Up @@ -299,7 +271,7 @@ function test_gen_package_images_script_freedom_releasing() {
}

function test_gen_offline_package_artifacts_script() {
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.0 v6.1.0"
local versions="v8.4.0 v8.3.0 v8.2.0 v8.1.0 v8.0.0 v7.5.0 v7.1.0 v6.5.12 v6.5.11 v6.5.0 v6.1.0"
local operating_systems="linux"
local architectures="amd64 arm64"
local editions="community enterprise dm"
Expand Down
15 changes: 0 additions & 15 deletions dockerfiles/products/le6.5-linux-amd64-debug/tiem

This file was deleted.

15 changes: 0 additions & 15 deletions dockerfiles/products/le6.5-linux-amd64/tiem

This file was deleted.

11 changes: 0 additions & 11 deletions dockerfiles/products/le6.5-linux-arm64/dm-monitor-initializer

This file was deleted.

7 changes: 0 additions & 7 deletions dockerfiles/products/le6.5-linux-arm64/tidb-operator

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/ng-monitoring-base:v1.0.1-old
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/ng-monitoring-base:v1.9.2
FROM $BASE_IMG
COPY ng-monitoring-server /ng-monitoring-server
EXPOSE 12020
Expand Down
5 changes: 5 additions & 0 deletions dockerfiles/products/ng-monitoring/~6.5.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/ng-monitoring-base:v1.9.2
FROM $BASE_IMG
COPY ng-monitoring-server /ng-monitoring-server
EXPOSE 12020
ENTRYPOINT ["/ng-monitoring-server"]
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions dockerfiles/products/pd/~6.5.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/pd-base:v1.9.2
FROM $BASE_IMG
COPY pd-server /pd-server
COPY pd-ctl /pd-ctl
COPY pd-recover /pd-recover
EXPOSE 2379 2380
ENTRYPOINT ["/pd-server"]
File renamed without changes.
9 changes: 9 additions & 0 deletions dockerfiles/products/tidb-binlog/~6.5.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tools-base:v1.9.2
FROM $BASE_IMG
COPY pump /pump
COPY drainer /drainer
COPY reparo /reparo
COPY binlogctl /binlogctl
EXPOSE 4000
EXPOSE 8249 8250
CMD ["/pump"]
5 changes: 5 additions & 0 deletions dockerfiles/products/tidb-dashboard/~6.5.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/pd-base:v1.9.2
FROM $BASE_IMG
COPY tidb-dashboard /tidb-dashboard
EXPOSE 12333
ENTRYPOINT ["/tidb-dashboard"]
File renamed without changes.
3 changes: 3 additions & 0 deletions dockerfiles/products/tidb-tools/~6.5.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tools-base:v1.9.2
FROM $BASE_IMG
COPY sync_diff_inspector /sync_diff_inspector
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions dockerfiles/products/tidb/~6.5.12/br.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tools-base:v1.9.2
FROM $BASE_IMG

COPY br /br
4 changes: 4 additions & 0 deletions dockerfiles/products/tidb/~6.5.12/dumpling.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tools-base:v1.9.2
FROM $BASE_IMG

COPY dumpling /dumpling
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tools-base:v1.9.2
FROM $BASE_IMG

COPY tidb-lightning /tidb-lightning
COPY tidb-lightning-ctl /tidb-lightning-ctl
COPY br /br
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tidb-base:v1.8.0-release-6.5
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tidb-base:v1.0.1-old
FROM $BASE_IMG
COPY tidb-server /tidb-server
EXPOSE 4000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tidb-base:v1.8.0-release-6.5
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tidb-base:v1.9.2
FROM $BASE_IMG
COPY tidb-server /tidb-server
COPY audit-1.so /plugins/audit-1.so
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions dockerfiles/products/tiflash/~6.5.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tiflash-base:v1.9.2
FROM $BASE_IMG
ENV LD_LIBRARY_PATH /tiflash
COPY tiflash /tiflash
ENTRYPOINT ["/tiflash/tiflash", "server"]
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions dockerfiles/products/tiflow/~6.5.12/dm.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tools-base:v1.9.2
FROM $BASE_IMG

COPY dm-worker /dm-worker
COPY dm-master /dm-master
COPY dmctl /dmctl

EXPOSE 8291 8261 8262
7 changes: 7 additions & 0 deletions dockerfiles/products/tiflow/~6.5.12/ticdc.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tools-base:v1.9.2
FROM $BASE_IMG

COPY cdc /cdc

EXPOSE 8300
CMD [ "/cdc" ]
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions dockerfiles/products/tikv/~6.5.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tikv-base:v1.0.0-old
FROM $BASE_IMG
COPY tikv-server /tikv-server
COPY tikv-ctl /tikv-ctl
EXPOSE 20160
ENTRYPOINT ["/tikv-server"]
Loading

0 comments on commit b640808

Please sign in to comment.