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

docker build hangs, can't build image for uv locally #8974

Closed
shaneikennedy opened this issue Nov 9, 2024 · 3 comments
Closed

docker build hangs, can't build image for uv locally #8974

shaneikennedy opened this issue Nov 9, 2024 · 3 comments
Labels
question Asking for clarification or support

Comments

@shaneikennedy
Copy link
Contributor

uv git:main*
❯ docker build . -t myuv --load
[+] Building 992.6s (16/18)                                    docker:desktop-linux
 => [internal] load build definition from Dockerfile                           0.0s
 => => transferring dockerfile: 1.54kB                                         0.0s
 => [internal] load metadata for docker.io/library/ubuntu:latest               1.8s
 => [internal] load .dockerignore                                              0.0s
 => => transferring context: 2B                                                0.0s
 => [ 1/14] FROM docker.io/library/ubuntu:latest@sha256:99c35190e22d294cdace2  0.0s
 => [internal] load build context                                              0.1s
 => => transferring context: 2.08MB                                            0.1s
 => CACHED [ 2/14] WORKDIR /root                                               0.0s
 => CACHED [ 3/14] RUN apt update   && apt install -y --no-install-recommends  0.0s
 => CACHED [ 4/14] RUN python3 -m venv /root/.venv                             0.0s
 => CACHED [ 5/14] RUN .venv/bin/pip install cargo-zigbuild                    0.0s
 => CACHED [ 6/14] RUN case "linux/arm64" in   "linux/arm64") echo "aarch64-u  0.0s
 => CACHED [ 7/14] COPY rust-toolchain.toml rust-toolchain.toml                0.0s
 => CACHED [ 8/14] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup  0.0s
 => CACHED [ 9/14] RUN rustup target add $(cat rust_target.txt)                0.0s
 => [10/14] COPY crates crates                                                 0.2s
 => [11/14] COPY ./Cargo.toml Cargo.toml                                       0.0s
 => [12/14] COPY ./Cargo.lock Cargo.lock                                       0.0s
 => [13/14] RUN cargo zigbuild --bin uv --bin uvx --target $(cat rust_targe  990.3s
 => => #    Compiling uv-tool v0.0.1 (/root/crates/uv-tool)
 => => #    Compiling uv-scripts v0.0.1 (/root/crates/uv-scripts)
 => => #    Compiling tikv-jemallocator v0.6.0
 => => #    Compiling uv-performance-memory-allocator v0.1.0 (/root/crates/uv-perfo
 => => # rmance-memory-allocator)
 => => #    Compiling uv v0.5.1 (/root/crates/uv)
ERROR: failed to solve: Canceled: context canceled
uv git:main*  999s
❯ 

building the image locally hangs forever and never succeeds. This was working yesterday on possibly a very stale branch... don't rememeber how stale though unfortunately :/

@zanieb
Copy link
Member

zanieb commented Nov 9, 2024

We build these images for every release, so it should be working. Perhaps the problem has something to do with your platform?

@zanieb zanieb added the question Asking for clarification or support label Nov 9, 2024
@samypr100
Copy link
Collaborator

Is this on linux?

@shaneikennedy
Copy link
Contributor Author

This was on Mac,i tried on another laptop and the image builds, must be something on my work machine, sorry for the waste 👎

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

No branches or pull requests

3 participants