Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfileがビルドできない #76

Closed
xuzijian629 opened this issue Feb 13, 2022 · 5 comments · Fixed by #78
Closed

Dockerfileがビルドできない #76

xuzijian629 opened this issue Feb 13, 2022 · 5 comments · Fixed by #78

Comments

@xuzijian629
Copy link
Contributor

不具合の内容

REAMEにある通り、 git checkout origin/release-0.9してみてもDockerfileがビルドできません。

現象・ログ

$ docker build -t voicevox_core example/python
[+] Building 7.5s (12/20)                                                                                            
 => [internal] load build definition from Dockerfile                                                            0.1s
 => => transferring dockerfile: 1.65kB                                                                          0.0s
 => [internal] load .dockerignore                                                                               0.1s
 => => transferring context: 75B                                                                                0.0s
 => [internal] load metadata for docker.io/library/python:3.9.6-slim                                            5.4s
 => [internal] load build context                                                                               0.0s
 => => transferring context: 34.53kB                                                                            0.0s
 => [build-env  1/10] FROM docker.io/library/python:3.9.6-slim@sha256:4115592fd02679fb3d9e8c513cae33ad3fdd6474  0.0s
 => CACHED [build-env  2/10] RUN apt-get update -yqq &&  apt-get install -yqq     curl     unzip     jq         0.0s
 => CACHED [build-env  3/10] COPY ./* /voicevox/                                                                0.0s
 => CACHED [build-env  4/10] RUN curl -sLO https://download.pytorch.org/libtorch/cu111/libtorch-cxx11-abi-shar  0.0s
 => CACHED [build-env  5/10] RUN unzip -q libtorch*.zip && rm libtorch*.zip                                     0.0s
 => CACHED [build-env  6/10] RUN mv /libtorch/lib /voicevox                                                     0.0s
 => CACHED [build-env  7/10] RUN cd /voicevox/lib &&  ln -s ./libnvToolsExt-24de1d56.so.1 ./libnvToolsExt.so.1  0.0s
 => ERROR [build-env  8/10] RUN curl -sLO "`curl -s https://api.github.com/repos/Hiroshiba/voicevox_core/relea  1.8s
------
 > [build-env  8/10] RUN curl -sLO "`curl -s https://api.github.com/repos/Hiroshiba/voicevox_core/releases/latest     | jq -r '.assets[]|select(.name=="core.zip")|.browser_download_url'`":
#12 1.787 jq: error (at <stdin>:5): Cannot iterate over null (null)
------
executor failed running [/bin/sh -c curl -sLO "`curl -s https://api.github.com/repos/Hiroshiba/voicevox_core/releases/latest     | jq -r '.assets[]|select(.name=="core.zip")|.browser_download_url'`"]: exit code: 23

再現手順

git clone git@github.com:VOICEVOX/voicevox_core.git
git checkout origin/release-0.9
docker build -t voicevox_core example/python

の最小限の手順で再現するかと思います。

OSの種類/ディストリ/バージョン

macOS 12.0.1

@xuzijian629
Copy link
Contributor Author

curlでとってくる先のurlをlatestではなくv0.9.0に対応するものにすればできました。
release-0.9...xuzijian629:tmp-20220213

@Hiroshiba
Copy link
Member

issue作成ありがとうございます!!
こちらのDockerfileですが、メンテナンスされていないので消去したいと思います!

@Hiroshiba
Copy link
Member

@xuzijian629 ちなみになのですが、ビルドされたい理由をお伺いしても良いでしょうか👀
(どういうニーズがあるのか知りたく・・・!)

@xuzijian629
Copy link
Contributor Author

xuzijian629 commented Feb 13, 2022

もともと単に実行してみたかっただけだったのですが、READMEの通りやろうとしてもファイルが多くて大変そうだったのでDockerで実行しようとしました。
すると、Dockerfileがビルドできなかったのでビルドの手順を確認してみた、という流れです

@Hiroshiba
Copy link
Member

なるほどです!!参考になりました、ありがとうございます!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants