coryan / docker-grpc-cpp

Create a minimal Docker image with a C++ gRPC server.
Apache License 2.0
9 stars 3 forks source link

failed to build the build container because of ninja #1

Open Sekulidan opened 4 years ago

Sekulidan commented 4 years ago

when building the dev container under Docker for Windows (by stripping the sudo) ninja fails to install/download

I'm new to linux (haven't been working on it for 15 years) - so here simply the error message

Detecting compiler hash for triplet x64-linux... A suitable version of ninja was not found (required v1.10.0). Downloading portable ninja v1.10.0... Downloading ninja... https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip -> /l/vcpkg/downloads/ninja-linux-1.10.0.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 624 100 624 0 0 301 0 0:00:02 0:00:02 --:--:-- 301 100 99857 100 99857 0 0 20429 0 0:00:04 0:00:04 --:--:-- 41009 Extracting ninja... Value was null The command '/bin/sh -c ./vcpkg install --triplet x64-linux grpc' returned a non-zero code: 1

The "download progress table" was colored in red.

Greetings Sekulian

coryan commented 4 years ago

Thanks for reporting this bug.

Are you running a Windows docker container or a Linux container through some virtualization?

Probably the latter, because I doubt the code would work otherwise. This looks more like a vcpkg problem than anything else. I am not sure why it is trying to download ninja itself when it is already installed. Maybe the version on Alpine Linux is too old for it?

Sekulidan commented 4 years ago

I'm building a Linux Docker container on Windows using Docker for Windows. I don't know where Docker pulles the Alpine image from. I'm quite new to Docker.

But I used some other example for grpc to understand this. So if the error only appears in my Windows environment, it can be closed as "works for me" by you.

Greetings: Sekulidan

coryan commented 2 years ago

Looks like this was fixed in #2