FastSAM icon indicating copy to clipboard operation
FastSAM copied to clipboard

cog build FAILED

Open timiil opened this issue 2 years ago • 0 comments

hello all, we are trying to cog build the docker image but failed:

cog build --no-cache
Building Docker image from environment in cog.yaml as cog-fastsam...
[+] Building 451.5s (14/21)                                                                                                                                                                                                  docker:default
 => [internal] load .dockerignore                                                                                                                                                                                                      0.3s
 => => transferring context: 2B                                                                                                                                                                                                        0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                   0.4s
 => => transferring dockerfile: 1.90kB                                                                                                                                                                                                 0.0s
 => resolve image config for docker.io/docker/dockerfile:1.4                                                                                                                                                                           1.2s
 => CACHED docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc                                                                                                      0.0s
 => [internal] load metadata for docker.io/curlimages/curl:latest                                                                                                                                                                      1.5s
 => [internal] load metadata for docker.io/nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04                                                                                                                                                 1.3s
 => [internal] load build context                                                                                                                                                                                                      0.4s
 => => transferring context: 83.75kB                                                                                                                                                                                                   0.0s
 => CACHED [stage-1  1/11] FROM docker.io/nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04@sha256:614af051f58c25ab32d7bb2cfd826108c7aded74fc1cdf0c2d15146c9acfa17d                                                                          0.0s
 => [downloader 1/3] FROM docker.io/curlimages/curl@sha256:daf3f46a2639c1613b25e85c9ee4193af8a1d538f92483d67f9a3d7f21721827                                                                                                            0.0s
 => CACHED [downloader 2/3] WORKDIR /tmp                                                                                                                                                                                               0.0s
 => [downloader 3/3] RUN curl -fsSL -O "https://github.com/krallin/tini/releases/download/v0.19.0/tini" && chmod +x tini                                                                                                              12.7s
 => [stage-1  2/11] COPY --link --from=downloader /tmp/tini /sbin/tini                                                                                                                                                                 0.9s
 => [stage-1  3/11] RUN --mount=type=cache,target=/var/cache/apt apt-get update -qq && apt-get install -qqy --no-install-recommends  make  build-essential  libssl-dev  zlib1g-dev  libbz2-dev  libreadline-dev  libsqlite3-dev  wg  305.1s
 => ERROR [stage-1  4/11] RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash &&  git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/py  121.7s
------
 > [stage-1  4/11] RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash &&       git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest &&      pyenv install-latest "3.8" &&   pyenv global $(pyenv install-latest --print "3.8") &&   pip install "wheel<1":
1.119 curl: (7) Couldn't connect to server
1.120 /bin/sh: 1: pyenv: not found
1.123 Cloning into '/plugins/pyenv-install-latest'...
121.4 fatal: unable to access 'https://github.com/momo-lab/pyenv-install-latest.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
------
Dockerfile:33
--------------------
  32 |          && rm -rf /var/lib/apt/lists/*
  33 | >>> RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \
  34 | >>>      git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest && \
  35 | >>>      pyenv install-latest "3.8" && \
  36 | >>>      pyenv global $(pyenv install-latest --print "3.8") && \
  37 | >>>      pip install "wheel<1"
  38 |     COPY .cog/tmp/build1763729164/cog-0.0.1.dev-py3-none-any.whl /tmp/cog-0.0.1.dev-py3-none-any.whl
--------------------
ERROR: failed to solve: process "/bin/sh -c curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \tgit clone https://github.com/momo-lab/pyenv-install-latest.git \"$(pyenv root)\"/plugins/pyenv-install-latest && \tpyenv install-latest \"3.8\" && \tpyenv global $(pyenv install-latest --print \"3.8\") && \tpip install \"wheel<1\"" did not complete successfully: exit code: 128
ⅹ Failed to build Docker image: exit status 1

how to fix this ?

timiil avatar Jul 24 '23 06:07 timiil