Open VichyTong opened 10 months ago
When I build the docker image of HumanEval X, there is an error.
[+] Building 4.7s (10/12) docker:default => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.91kB 0.0s => [internal] load metadata for docker.io/pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime 1.5s => [1/9] FROM docker.io/pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime@sha256:9904a7e081eaca29e3ee46afac87f2879676dd3bf7b5e9b8450454d84e074ef0 0.0s => CACHED [2/9] RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak && sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && sed -i "s@http://.*security.ubuntu.com@https://mirrors.tun 0.0s => CACHED [3/9] RUN curl -o /workspace/download/go.tar.gz -SL https://go.dev/dl/go1.18.4.linux-amd64.tar.gz && tar -zxf /workspace/download/go.tar.gz -C /usr/local && rm /workspace/download/go.tar.gz 0.0s => CACHED [4/9] RUN curl -o /workspace/download/node.tar.gz -SL https://nodejs.org/download/release/v16.14.0/node-v16.14.0-linux-x64.tar.gz && mkdir -p /usr/local/lib/nodejs && tar -zxf /workspace/download/node.tar.gz -C /usr/local/lib/nod 0.0s => CACHED [5/9] RUN apt-get install -y build-essential && apt-get install -y g++ && curl -o /workspace/download/boost_1_71_0.tar.gz -SL https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.gz && tar -zxf /w 0.0s => CACHED [6/9] RUN curl -o /workspace/download/openssl.tar.gz -SL https://www.openssl.org/source/old/3.0/openssl-3.0.0.tar.gz && tar -zxf /workspace/download/openssl.tar.gz && cd openssl-3.0.0 && ./Configure && make && make install && 0.0s => ERROR [7/9] RUN curl -o /workspace/download/jdk.tar.gz -SL https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz && mkdir /usr/java && tar -zxf /workspace/download/jdk.tar.gz -C /usr/java && rm /workspace/download/jdk.t 2.9s ------ > [7/9] RUN curl -o /workspace/download/jdk.tar.gz -SL https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz && mkdir /usr/java && tar -zxf /workspace/download/jdk.tar.gz -C /usr/java && rm /workspace/download/jdk.tar.gz && java_path=`ls /usr/java/${path}` && echo "export JAVA_HOME=/usr/java/${java_path}" >> ~/.profile: 0.999 % Total % Received % Xferd Average Speed Time Time Time Current 0.999 Dload Upload Total Spent Left Speed 100 7073 100 7073 0 0 8490 0 --:--:-- --:--:-- --:--:-- 8480 1.842 1.842 gzip: stdin: not in gzip format 1.842 tar: Child returned status 1 1.842 tar: Error is not recoverable: exiting now ------ Dockerfile:31 -------------------- 30 | 31 | >>> RUN curl -o /workspace/download/jdk.tar.gz -SL https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz \ 32 | >>> && mkdir /usr/java && tar -zxf /workspace/download/jdk.tar.gz -C /usr/java && rm /workspace/download/jdk.tar.gz \ 33 | >>> && java_path=`ls /usr/java/${path}` && echo "export JAVA_HOME=/usr/java/${java_path}" >> ~/.profile 34 | -------------------- ERROR: failed to solve: process "/bin/sh -c curl -o /workspace/download/jdk.tar.gz -SL https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz && mkdir /usr/java && tar -zxf /workspace/download/jdk.tar.gz -C /usr/java && rm /workspace/download/jdk.tar.gz && java_path=`ls /usr/java/${path}` && echo \"export JAVA_HOME=/usr/java/${java_path}\" >> ~/.profile" did not complete successfully: exit code: 2
Solution: Change the download URL from https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz to https://download.oracle.com/java/18/archive/jdk-18_linux-x64_bin.tar.gz
When I build the docker image of HumanEval X, there is an error.
Solution: Change the download URL from https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz to https://download.oracle.com/java/18/archive/jdk-18_linux-x64_bin.tar.gz