Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions build/docker/tke-auth-api/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#!/usr/bin/env bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cp -r pkg/auth/web "$DST_DIR"
16 changes: 16 additions & 0 deletions build/docker/tke-auth-controller/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#!/usr/bin/env bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cp -r hack/auth "$DST_DIR"
16 changes: 16 additions & 0 deletions build/docker/tke-gateway/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

set -o xtrace
set -e

Expand Down
2 changes: 1 addition & 1 deletion build/docker/tools/code-generator/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2020 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down
2 changes: 1 addition & 1 deletion build/docker/tools/code-generator/openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2020 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down
2 changes: 1 addition & 1 deletion build/docker/tools/provider-res/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down
18 changes: 17 additions & 1 deletion build/docker/tools/provider-res/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

set -o errexit
set -o nounset
set -o pipefail
Expand All @@ -15,4 +31,4 @@ VERSION=$(echo /${RPM_DIR}/${PKG}* | grep -oP '\d+\.\d+\.\d+')
cd ${INSTALL_DIR}
for rpm in ${RPM_DIR}/*.rpm; do rpm2cpio $rpm | cpio -idm; done

tar -cvzf /output/${PKG}-${OS}-${ARCH}-${VERSION}.tar.gz *
tar -cvzf /output/${PKG}-${OS}-${ARCH}-${VERSION}.tar.gz *
3 changes: 1 addition & 2 deletions build/docker/tools/tke-installer/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand All @@ -16,7 +16,6 @@
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.


set -o errexit
set -o nounset
set -o pipefail
Expand Down
2 changes: 1 addition & 1 deletion build/docker/tools/tke-installer/init_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down
4 changes: 2 additions & 2 deletions build/docker/tools/tke-installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down Expand Up @@ -170,7 +170,7 @@ function check_installer() {
done
echo "check installer status error"
docker logs tke-installer
exit 1
exit 1
}

preflight
Expand Down
2 changes: 1 addition & 1 deletion build/docker/tools/tke-installer/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down
2 changes: 1 addition & 1 deletion build/lib/create-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down
2 changes: 1 addition & 1 deletion build/script/openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
Expand Down
16 changes: 16 additions & 0 deletions cmd/tke-upgrade/upgrate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

export DIR="cmd/tke-upgrade"
export DATADIR="${DIR}/app"
export MANIFESTS="cmd/tke-installer/app/installer/manifests"
Expand Down
23 changes: 20 additions & 3 deletions docs/guide/zh-CN/best-practices/offline-pot/builder-init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#!/bin/bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

# Author: yhchen
set -e

Expand Down Expand Up @@ -33,10 +50,10 @@ builder_init(){
echo "##### builder init start #####"
# start onestep builder init container
if [ `docker ps -a | grep onestep-builder-init | wc -l ` -eq 0 ]; then
docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1
docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1
else
docker rm -f onestep-builder-init
docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1
docker run --name onestep-builder-init -ti -d chenyihua/onestep-builder:v0.1
fi
# copy onestep offline resource
docker cp onestep-builder-init:/data/base-component-helms ${BUILDER_PDIR}
Expand All @@ -57,7 +74,7 @@ all_func(){

main(){
if [ ! -d "${BUILDER_PDIR}/base-component-helms" ] || [ ! -d "${BUILDER_PDIR}/offline-pot-images-base" ] || \
[ ! -d "${BUILDER_PDIR}/offline-pot-tgz-base" ]; then
[ ! -d "${BUILDER_PDIR}/offline-pot-tgz-base" ]; then
$CALL_FUN || help
fi
}
Expand Down
19 changes: 18 additions & 1 deletion docs/guide/zh-CN/best-practices/offline-pot/builder.cfg.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#!/bin/bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

# Author: yhchen
set -e

Expand All @@ -22,7 +39,7 @@ server_set=("tkestack" "business" "redis" "mysql" "prometheus" "kafka" "elk" "ng

# whether use remote docker registry, if true will be not save business images and copy registry secret; true or false
remote_registry='true'
# remote image registry url, if remote images registry need issue crt, please name: ${remote_img_registry_url}.cert.tar.gz
# remote image registry url, if remote images registry need issue crt, please name: ${remote_img_registry_url}.cert.tar.gz
# on offline-pot-tgz-base dir
remote_img_registry_url='reg.xx.yy.com'

Expand Down
17 changes: 17 additions & 0 deletions docs/guide/zh-CN/best-practices/offline-pot/builder.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#!/bin/bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

# Author: yhchen
set -e

Expand Down
21 changes: 19 additions & 2 deletions docs/guide/zh-CN/best-practices/offline-pot/clean-cluster.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#!/bin/bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

# Author: yhchen
set -e

Expand Down Expand Up @@ -38,7 +55,7 @@ remove_business(){
if [ -d "../tkestack" ]; then
if [ `docker ps | grep tke-installer | wc -l` -eq 1 ]; then
if [ -f 'offline-pot-cmd.sh' ]; then
sh ./offline-pot-cmd.sh -s remove-business.sh -f del_business
sh ./offline-pot-cmd.sh -s remove-business.sh -f del_business
fi
else
echo "please exec install-tke-installer.sh to start tke-installer" && exit 0
Expand Down Expand Up @@ -75,7 +92,7 @@ clean_cluster_nodes(){
echo "###### clean cluster nodes start ######"
if [ `docker ps | grep tke-installer | wc -l` -eq 1 ]; then
if [ -f 'offline-pot-cmd.sh' ] && [ -d "../tkestack" ]; then
sh ./offline-pot-cmd.sh -s clean-cluster-nodes.sh -f clean_cluster
sh ./offline-pot-cmd.sh -s clean-cluster-nodes.sh -f clean_cluster
fi
else
echo "please exec install-tke-installer.sh to start tke-installer" && exit 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
#!/bin/bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.


set -e
BASE_DIR=../
cd $BASE_DIR
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/bin/bash

# Tencent is pleased to support the open source community by making TKEStack
# available.
#
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://opensource.org/licenses/Apache-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

app=$1

if [ ! -n "$1" ]; then
Expand Down
Loading