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

Can't build docker images on Fedora 38 #8

Closed
valentt opened this issue Oct 2, 2023 · 2 comments
Closed

Can't build docker images on Fedora 38 #8

valentt opened this issue Oct 2, 2023 · 2 comments

Comments

@valentt
Copy link

valentt commented Oct 2, 2023

Hi, are your build instructions distro agnostic? I'm not sure what I'm doing wrong but I can't build any image on Fedora 38.

Fedora usually has really up to date packages, so I'm not sure what is the issue here.

Here is terminal output:

sudo docker build --build-arg LANG=en --build-arg WHISPER_MODEL=large-v2 -t whisperx:large-v2-en .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  251.4kB
Step 1/43 : ARG WHISPER_MODEL=base
Step 2/43 : ARG LANG=en
Step 3/43 : ARG TORCH_HOME=/cache/torch
Step 4/43 : ARG HF_HOME=/cache/huggingface
Step 5/43 : FROM python:3.10-slim as dependencies
3.10-slim: Pulling from library/python
a803e7c4b030: Already exists 
bf3336e84c8e: Already exists 
1ff59fb8f31e: Already exists 
28f27f88ce0a: Already exists 
cf8b09e0fea2: Already exists 
Digest: sha256:dc88dfceb13b58dc6ff12840c28f6c774a8692945db4e9c2dabeaf939b7f2614
Status: Downloaded newer image for python:3.10-slim
 ---> 856cd96b64ca
Step 6/43 : RUN python3 -m venv /venv
 ---> Running in 7e9c6154c12a
Removing intermediate container 7e9c6154c12a
 ---> fb8fbc26c182
Step 7/43 : ARG PATH="/venv/bin:$PATH"
 ---> Running in 6eae87a82255
Removing intermediate container 6eae87a82255
 ---> 9181821741b6
Step 8/43 : RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip setuptools
the --mount option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled

And for buildx:

sudo docker buildx bake no_model build
docker: 'buildx' is not a docker command.
See 'docker --help'
sudo docker -v
Docker version 24.0.5, build %{shortcommit_cli}
@jim60105
Copy link
Owner

jim60105 commented Oct 2, 2023

Please enable BuildKit and try again.

Also notice that docker buildx bake is a very new feature, so please read the documentation before using it.
https://github.com/docker/buildx
https://docs.docker.com/build/bake/
This is used for constructing all image tags combinations in one command. I think that you will not need it in general.

@jim60105
Copy link
Owner

jim60105 commented Oct 8, 2023

Closed issue due to non-project related problems.

@jim60105 jim60105 closed this as completed Oct 8, 2023
jim60105 added a commit that referenced this issue Nov 10, 2023
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

No branches or pull requests

2 participants