sandreas / m4b-tool

m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b
MIT License
1.15k stars 76 forks source link

Cannot build pre-release #255

Closed datenzar closed 6 months ago

datenzar commented 6 months ago

Hi there,

I'm trying to build a pre-release as I'm interested in the MusicBrainz fix which has been added lately.

However I'm getting the following error output:

╰─ docker build . --build-arg M4B_TOOL_DOWNLOAD_LINK=https://github.com/sandreas/m4b-tool/files/10728378/m4b-tool.tar.gz -t m4b-tool
[+] Building 0.7s (20/22)                                                                                                                                                                                                   docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                                  0.0s
 => => transferring dockerfile: 2.28kB                                                                                                                                                                                                0.0s
 => [internal] load metadata for docker.io/sandreas/tone:v0.1.4                                                                                                                                                                       0.5s
 => [internal] load metadata for docker.io/sandreas/mp4v2:2.1.1                                                                                                                                                                       0.5s
 => [internal] load metadata for docker.io/sandreas/fdkaac:2.0.1                                                                                                                                                                      0.6s
 => [internal] load metadata for docker.io/sandreas/ffmpeg:5.0.1-3                                                                                                                                                                    0.5s
 => [internal] load metadata for docker.io/library/alpine:3.14                                                                                                                                                                        0.5s
 => [internal] load .dockerignore                                                                                                                                                                                                     0.0s
 => => transferring context: 73B                                                                                                                                                                                                      0.0s
 => [stage-4  1/10] FROM docker.io/library/alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed                                                                                                        0.0s
 => [tone 1/1] FROM docker.io/sandreas/tone:v0.1.4@sha256:2e2babd0ad09b9caa23a7f6a11daa76f71a513bd56c71007bef90630a460fd14                                                                                                            0.0s
 => [mp4v2 1/1] FROM docker.io/sandreas/mp4v2:2.1.1@sha256:c186cccc63b69a428be6a60359c29aff84bfacbd8597a4237038c7ccd7628a2d                                                                                                           0.0s
 => [ffmpeg 1/1] FROM docker.io/sandreas/ffmpeg:5.0.1-3@sha256:27661e7fb9b5361eef44bc2681b1e229c6c8c95805e6218c74dedb622692c47f                                                                                                       0.0s
 => [internal] load build context                                                                                                                                                                                                     0.0s
 => => transferring context: 2.28kB                                                                                                                                                                                                   0.0s
 => [fdkaac 1/1] FROM docker.io/sandreas/fdkaac:2.0.1@sha256:37500ad28938f33c90892ef34f71b62bed2ae44ba76c480da7e6cb0ae5a2e622                                                                                                         0.0s
 => CACHED [stage-4  2/10] RUN echo "---- INSTALL RUNTIME PACKAGES ----" &&   apk add --no-cache --update --upgrade   libstdc++   php8-cli   php8-dom   php8-json   php8-xml   php8-mbstring   php8-phar   php8-tokenizer   php8-xml  0.0s
 => CACHED [stage-4  3/10] COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/                                                                                                                                                   0.0s
 => CACHED [stage-4  4/10] COPY --from=tone /usr/local/bin/tone /usr/local/bin/                                                                                                                                                       0.0s
 => CACHED [stage-4  5/10] COPY --from=mp4v2 /usr/local/bin/mp4* /usr/local/bin/                                                                                                                                                      0.0s
 => CACHED [stage-4  6/10] COPY --from=mp4v2 /usr/local/lib/libmp4v2* /usr/local/lib/                                                                                                                                                 0.0s
 => CACHED [stage-4  7/10] COPY --from=fdkaac /usr/local/bin/fdkaac /usr/local/bin/                                                                                                                                                   0.0s
 => ERROR [stage-4  8/10] ADD ./Dockerfile ./dist/m4b-tool.phar* /tmp/                                                                                                                                                                0.0s
------
 > [stage-4  8/10] ADD ./Dockerfile ./dist/m4b-tool.phar* /tmp/:
------
Dockerfile:44
--------------------
  42 |
  43 |     # workaround to copy a local m4b-tool.phar IF it exists
  44 | >>> ADD ./Dockerfile ./dist/m4b-tool.phar* /tmp/
  45 |     RUN echo "---- INSTALL M4B-TOOL ----" \
  46 |         && if [ ! -f /tmp/m4b-tool.phar ]; then \
--------------------
ERROR: failed to solve: lstat /var/lib/docker/tmp/buildkit-mount732830499/dist: no such file or directory

I'm using Linux and have cloned the repo and checked out the tag v0.5-prerelease

Any ideas how to fix the issue?

sandreas commented 6 months ago

Strange, I'll try to build one tonight when I'm back home and push an official docker image, so you don't have to

datenzar commented 6 months ago

Thanks for your prompt response @sandreas! In the meantime, I was checking out the tone project which looks quite promising. However, I'm not 100% clear of its implementation status and filed in a separate issue (https://github.com/sandreas/tone/issues/60). I'm happy to contribute further.

sandreas commented 6 months ago

So try the latest docker image, don't forget to force the pull, if you already pulled latest before.

For tone: Implementation status is release / production. Should work ok - besides the reported issues of course. I'm working on a 0.1.6 atm, which may take some time, because I have to upgrade a lot of dependencies and test many things.