From b6f89282ea1ae3bcfe4ab247c86dc4783aa6dddd Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Tue, 9 Jul 2024 19:37:33 +0800 Subject: [PATCH] fix(dockerfiles/cd/utils/release): create required dir for tiup (#351) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### **PR Type** Bug fix ___ ### **Description** - Fixed an issue in the Dockerfile where the required directory for `tiup` was not being created. - Added a command to ensure the `~/.tiup/bin` directory is created during the Docker build process. ___ ### **Changes walkthrough** 📝
Relevant files
Bug fix
Dockerfile
Create required directory for `tiup` in Dockerfile             

dockerfiles/cd/utils/release/Dockerfile
  • Added a command to create the required directory for tiup.
  • Ensured the directory ~/.tiup/bin is created during the Docker build
    process.
  • +2/-1     
    ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --------- Signed-off-by: wuhuizuo Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com> --- dockerfiles/cd/utils/release/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfiles/cd/utils/release/Dockerfile b/dockerfiles/cd/utils/release/Dockerfile index 012718ca..9f736678 100644 --- a/dockerfiles/cd/utils/release/Dockerfile +++ b/dockerfiles/cd/utils/release/Dockerfile @@ -32,4 +32,5 @@ RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \ ARG TIUP_VER=1.15.2 RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \ wget -q -O - https://tiup-mirrors.pingcap.com/tiup-v${TIUP_VER}-${OS}-${ARCH}.tar.gz | tar -zxvf - -C /usr/local/bin && \ - chmod 755 /usr/local/bin/tiup + chmod 755 /usr/local/bin/tiup && \ + mkdir -p "$HOME/.tiup/bin"