Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(packages): fix offline packages config #299

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
239 changes: 235 additions & 4 deletions packages/offline-packages.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,106 @@ editions:
tags:
- "{{ .Release.version }}-community"
routers:
- description: "Started from v7.5.0 to latest"
if: {{ semver.CheckConstraint ">=7.5.0-0" .Release.version }}
- description: "Started from v7.6.0 to latest added tiproxy compare with v7.5.0"
if: {{ semver.CheckConstraint ">=7.6.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
profile: [community]
artifacts:
- name: "tidb-community-server-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}"
desc: community offline server package
components:
- { name: tidb-dashboard, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: alertmanager, src: { type: tiup-clone, version: latest } }
- { name: blackbox_exporter, src: { type: tiup-clone, version: latest } }
- { name: node_exporter, src: { type: tiup-clone, version: latest } }
- { name: tiup, src: { type: tiup-clone, version: latest } }
- { name: cluster, src: { type: tiup-clone, version: latest } }
- { name: insight, src: { type: tiup-clone, version: latest } }
- { name: diag, src: { type: tiup-clone, version: latest } }
- { name: influxdb, src: { type: tiup-clone, version: latest } }
- { name: playground, src: { type: tiup-clone, version: latest } }
- { name: tiproxy, src: { type: tiup-clone, version: latest } }
- { name: tidb, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: tikv, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: pd, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: tiflash, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: ctl, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: prometheus, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: grafana, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- name: "tidb-community-toolkit-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}"
desc: community offline toolkit package
components:
- { name: tiup, src: { type: tiup-clone, version: latest } }
- { name: alertmanager, src: { type: tiup-clone, version: latest } } # New in v6.2.0
- { name: blackbox_exporter, src: { type: tiup-clone, version: latest } } # New in v6.2.0
- { name: node_exporter, src: { type: tiup-clone, version: latest } } # New in v6.2.0
- name: package
if: {{ eq .Release.arch "amd64" }}
src: { type: tiup-clone, version: latest }
- { name: bench, src: { type: tiup-clone, version: latest } }
- { name: errdoc, src: { type: tiup-clone, version: latest } }
- { name: dba, src: { type: tiup-clone, version: latest } }
- { name: PCC, src: { type: tiup-clone, version: latest } }
- { name: dm, src: { type: tiup-clone, version: latest } } # it's tiup-dm pkg not dm.
- { name: server, src: { type: tiup-clone, version: latest } } # New in v6.2.0, it's tiup-server.
- { name: pd-recover, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: tidb-lightning, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dumpling, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: br, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: cdc, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dm-master, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dm-worker, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dmctl, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: pump, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: drainer, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: prometheus, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: grafana, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- name: binlogctl # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb-binlog/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "binaries-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: binlogctl
- name: reparo # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb-binlog/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "binaries-.*-{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: reparo
- name: arbiter # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb-binlog/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "binaries-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: arbiter
- name: tidb-lightning-ctl # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "tidb-lightning-ctl-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: tidb-lightning-ctl
- name: sync_diff_inspector # New in v6.0.0
src:
type: oci
# version release on master branch.
url: "hub.pingcap.net/pingcap/tidb-tools/package:master_{{ .Release.os }}_{{ .Release.arch }}"
path: "tidb-tools-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: sync_diff_inspector
- name: etcdctl # New in v6.0.0
src:
type: http
url: "https://github.com/etcd-io/etcd/releases/download/v3.4.30/etcd-v3.4.30-{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: "etcd-v3.4.30-{{ .Release.os }}-{{ .Release.arch }}/etcdctl"

- description: "Started from v7.5.0 until v7.6.0"
if: {{ semver.CheckConstraint ">=7.5.0-0, <7.6.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
profile: [community]
Expand Down Expand Up @@ -260,9 +358,142 @@ editions:
tags:
- "{{ .Release.version }}-enterprise"
routers:
- description: "Started from v7.5.0 to latest"
- description: "Started from v7.6.0 to latest added tiproxy compare with v7.5.0"
# ref: https://github.com/Masterminds/semver#checking-version-constraints
if: {{ semver.CheckConstraint ">=7.6.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
profile: [enterprise]
artifacts:
- name: "tidb-enterprise-server-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}"
desc: enterprise offline server package
components:
- { name: tidb-dashboard, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: alertmanager, src: { type: tiup-clone, version: latest } }
- { name: blackbox_exporter, src: { type: tiup-clone, version: latest } }
- { name: node_exporter, src: { type: tiup-clone, version: latest } }
- { name: tiup, src: { type: tiup-clone, version: latest } }
- { name: cluster, src: { type: tiup-clone, version: latest } }
- { name: insight, src: { type: tiup-clone, version: latest } }
- { name: diag, src: { type: tiup-clone, version: latest } }
- { name: influxdb, src: { type: tiup-clone, version: latest } }
- { name: playground, src: { type: tiup-clone, version: latest } }
- { name: tiproxy, src: { type: tiup-clone, version: latest } }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comparing with v7.5.0, it added tiproxy.

- name: tidb
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb/package:{{ .Release.version }}-enterprise_{{ .Release.os }}_{{ .Release.arch }}"
path: "tidb-(v.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
publish:
name: tidb
description: >-
TiDB is an open source distributed HTAP database compatible with the MySQL protocol.
entrypoint: tidb-server
- name: tikv
src:
type: http
url: "http://fileserver.pingcap.net/download/builds/pingcap/tikv/optimization/v8.0.0/9f51dfed1f04224a746facfbd919ae8ebec639eb/centos7/ga-tikv-{{ .Release.os }}-{{ .Release.arch }}-enterprise.tar.gz"
publish:
name: tikv
description: >-
Distributed transactional key-value database, originally created to complement TiDB.
entrypoint: tikv-server
- name: pd
src:
type: http
url: "http://fileserver.pingcap.net/download/builds/pingcap/pd/optimization/v8.0.0/afa9e5d1daf198fcb3d9c4114a5db13db4416032/centos7/ga-pd-{{ .Release.os }}-{{ .Release.arch }}-enterprise.tar.gz"
publish:
name: pd
description: >-
PD is the abbreviation for Placement Driver. It is used to manage and schedule the TiKV cluster.
entrypoint: pd-server
- name: tiflash
src:
type: oci
url: "hub.pingcap.net/pingcap/tiflash/package:{{ .Release.version }}-enterprise_{{ .Release.os }}_{{ .Release.arch }}"
path: "tiflash-(v.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
publish:
name: tiflash
description: >-
The TiFlash Columnar Storage Engine.
entrypoint: tiflash/tiflash
- { name: ctl, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: prometheus, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: grafana, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- name: "tidb-enterprise-toolkit-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}"
desc: enterprise offline toolkit package
components:
- { name: tiup, src: { type: tiup-clone, version: latest } }
- { name: alertmanager, src: { type: tiup-clone, version: latest } } # New in v6.2.0
- { name: blackbox_exporter, src: { type: tiup-clone, version: latest } } # New in v6.2.0
- { name: node_exporter, src: { type: tiup-clone, version: latest } } # New in v6.2.0
- name: package
if: {{ eq .Release.arch "amd64" }}
src: { type: tiup-clone, version: latest }
- { name: bench, src: { type: tiup-clone, version: latest } }
- { name: errdoc, src: { type: tiup-clone, version: latest } }
- { name: dba, src: { type: tiup-clone, version: latest } }
- { name: PCC, src: { type: tiup-clone, version: latest } }
- { name: dm, src: { type: tiup-clone, version: latest } } # it's tiup-dm pkg not dm.
- { name: server, src: { type: tiup-clone, version: latest } } # New in v6.2.0, it's tiup-server.
- { name: pd-recover, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: tidb-lightning, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dumpling, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: br, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: cdc, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dm-master, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dm-worker, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: dmctl, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: pump, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: drainer, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: prometheus, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- { name: grafana, src: { type: tiup-clone, version: "{{ .Release.version }}" } }
- name: binlogctl # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb-binlog/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "binaries-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: binlogctl
- name: reparo # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb-binlog/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "binaries-.*-{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: reparo
- name: arbiter # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb-binlog/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "binaries-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: arbiter
- name: tidb-lightning-ctl # New in v6.0.0
src:
type: oci
url: "hub.pingcap.net/pingcap/tidb/package:{{ .Release.version }}_{{ .Release.os }}_{{ .Release.arch }}"
path: "tidb-lightning-ctl-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: tidb-lightning-ctl
- name: sync_diff_inspector # New in v6.0.0
src:
type: oci
# version release on master branch.
url: "hub.pingcap.net/pingcap/tidb-tools/package:master_{{ .Release.os }}_{{ .Release.arch }}"
path: "tidb-tools-(.*-)?{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: sync_diff_inspector
- name: etcdctl # New in v6.0.0
src:
type: http
url: "https://github.com/etcd-io/etcd/releases/download/v3.4.30/etcd-v3.4.30-{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
extract: true
extract_inner_path: "etcd-v3.4.30-{{ .Release.os }}-{{ .Release.arch }}/etcdctl"

- description: "Started from v7.5.0 until v7.6.0"
# ref: https://github.com/Masterminds/semver#checking-version-constraints
if: {{ semver.CheckConstraint ">=7.5.0-0" .Release.version }}
if: {{ semver.CheckConstraint ">=7.5.0-0, <7.6.0-0" .Release.version }}
os: [linux]
arch: [amd64, arm64]
profile: [enterprise]
Expand Down
Loading