Load variables into shell scripts (#5518)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/5517/head^2
quicksilver 2021-06-01 14:52:31 +08:00 committed by GitHub
parent d5cd561449
commit cc517570ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,6 @@ pipeline {
environment {
IMAGE_REPO = "dockerhub-mirror-sh.zilliz.cc/milvusdb"
DOCKER_BUILDKIT = 1
DOCKER_VOLUME_DIRECTORY = "/mnt/disk/.docker"
ARTIFACTS = "${env.WORKSPACE}/artifacts"
DOCKER_CREDENTIALS_ID = "ba070c98-c8cc-4f7c-b657-897715f359fc"
DOKCER_REGISTRY_URL = "registry.zilliz.com"

View File

@ -10,6 +10,8 @@ spec:
env:
- name: DOCKER_IN_DOCKER_ENABLED
value: "true"
- name: DOCKER_VOLUME_DIRECTORY
value: "/mnt/disk/.docker"
securityContext:
privileged: true
tty: true

View File

@ -14,6 +14,7 @@ elif [[ -x "$(command -v yum)" ]]; then
echo "source scl_source enable devtoolset-7" | sudo tee -a /etc/profile.d/devtoolset-7.sh
echo "source scl_source enable llvm-toolset-7.0" | sudo tee -a /etc/profile.d/llvm-toolset-7.sh
echo "export CLANG_TOOLS_PATH=/opt/rh/llvm-toolset-7.0/root/usr/bin" | sudo tee -a /etc/profile.d/llvm-toolset-7.sh
source "/etc/profile.d/llvm-toolset-7.sh"
else
echo "Error Install Dependencies ..."
exit 1