Dockerfile fails to produce a builder image #2396

Closed
opened 2026-02-21 00:20:56 -05:00 by deekerman · 1 comment
Owner

Originally created by @vi on GitHub (Jan 3, 2024).

Bug Description

docker build -t "rustdesk-builder" . from README stops with this:

Command failed: /usr/bin/git fetch https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71 --depth 1 -n
Fuller log
 > [3/9] RUN git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg &&     /vcpkg/bootstrap-vcpkg.sh -disableMetrics &&     /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom:
0.349 Cloning into 'vcpkg'...
4.063 Note: switching to '501db0f17ef6df184fcdbfbe0f87cde2313b6ab1'.
4.063
4.063 You are in 'detached HEAD' state. You can look around, make experimental
4.063 changes and commit them, and you can discard any commits you make in this
4.063 state without impacting any branches by switching back to a branch.
4.063
4.063 If you want to create a new branch to retain commits you create, you may
4.063 do so (now or later) by using -c with the switch command. Example:
4.063
4.063   git switch -c <new-branch-name>
4.063
4.063 Or undo this operation with:
4.063
4.063   git switch -
4.063
4.063 Turn off this advice by setting config variable advice.detachedHead to false
4.063
4.928 Downloading vcpkg-glibc...
7.567 Computing installation plan...
7.582 A suitable version of cmake was not found (required v3.25.1) Downloading portable cmake 3.25.1...
7.582 Downloading cmake...
7.582 https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz->/vcpkg/downloads/cmake-3.25.1-linux-x86_64.tar.gz
15.74 Extracting cmake...
17.40 The following packages will be built and installed:
17.40     aom[core]:x64-linux -> 3.5.0#1
17.40   * libjpeg-turbo[core]:x64-linux -> 2.1.5.1
17.40     libvpx[core]:x64-linux -> 1.12.0#1
17.40     libyuv[core]:x64-linux -> 1857
17.40     opus[core]:x64-linux -> 1.3.1#9
17.40   * vcpkg-cmake[core]:x64-linux -> 2022-12-22
17.40   * vcpkg-cmake-config[core]:x64-linux -> 2022-02-06#1
17.40   * vcpkg-cmake-get-vars[core]:x64-linux -> 2023-03-02
17.40 Additional packages (*) will be modified to complete this operation.
17.40 Detecting compiler hash for triplet x64-linux...
19.42 Restored 0 package(s) from /root/.cache/vcpkg/archives in 22.6 us. Use --debug to see more details.
19.42 Installing 1/8 vcpkg-cmake:x64-linux...
19.42 Building vcpkg-cmake[core]:x64-linux...
19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake
19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake
19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg-port-config.cmake
19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/copyright
19.44 -- Performing post-build validation
19.44 Stored binaries in 1 destinations.
19.44 Elapsed time to handle vcpkg-cmake:x64-linux: 24.5 ms
19.44 Installing 2/8 vcpkg-cmake-config:x64-linux...
19.44 Building vcpkg-cmake-config[core]:x64-linux...
19.46 -- Installing: /vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake
19.46 -- Installing: /vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/vcpkg-port-config.cmake
19.46 -- Installing: /vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/copyright
19.46 -- Performing post-build validation
19.47 Stored binaries in 1 destinations.
19.47 Elapsed time to handle vcpkg-cmake-config:x64-linux: 22.7 ms
19.47 Installing 3/8 aom:x64-linux...
19.47 Building aom[core]:x64-linux...
19.49 -- Fetching https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71...
22.71 CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
22.71     Command failed: /usr/bin/git fetch https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71 --depth 1 -n
22.71     Working Directory: /vcpkg/downloads/git-tmp
22.71     Error code: 128
22.71     See logs for more information:
22.71       /vcpkg/buildtrees/aom/git-fetch-x64-linux-err.log
22.71
22.71 Call Stack (most recent call first):
22.71   scripts/cmake/vcpkg_from_git.cmake:86 (vcpkg_execute_required_process)
22.71   ports/aom/portfile.cmake:11 (vcpkg_from_git)
22.71   scripts/ports.cmake:147 (include)
22.71
22.71
22.72 error: building aom:x64-linux failed with: BUILD_FAILED
22.74 Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
22.74 Then check for known issues at:
22.74     https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+aom
22.74 You can submit a new issue at:
22.74     https://github.com/microsoft/vcpkg/issues/new?title=[aom]+Build+error&body=Copy+issue+body+from+%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
22.74
------
Dockerfile:33
--------------------
  32 |
  33 | >>> RUN git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg && \
  34 | >>>     /vcpkg/bootstrap-vcpkg.sh -disableMetrics && \
  35 | >>>     /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom
  36 |
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg &&     /vcpkg/bootstrap-vcpkg.sh -disableMetrics &&     /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom" did not complete successfully: exit code: 1

Note that command git fetch https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71 --depth 1 -n does work when used on host.

How to Reproduce

Try to follow Docker-based building instructions on Debian Bookworm on amd64 with Docker version 24.0.7, build afdd53b

Expected Behavior

It builds and produces working rustdesk-builder Docker image.

Operating system(s) on local side and remote side

Linux

RustDesk Version(s) on local side and remote side

master (7f7d4a77b6)

Screenshots

(not applicable)

Additional Context

No response

Originally created by @vi on GitHub (Jan 3, 2024). ### Bug Description `docker build -t "rustdesk-builder" .` from README stops with this: Command failed: /usr/bin/git fetch https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71 --depth 1 -n <details><summary>Fuller log</summary> ``` > [3/9] RUN git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg && /vcpkg/bootstrap-vcpkg.sh -disableMetrics && /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom: 0.349 Cloning into 'vcpkg'... 4.063 Note: switching to '501db0f17ef6df184fcdbfbe0f87cde2313b6ab1'. 4.063 4.063 You are in 'detached HEAD' state. You can look around, make experimental 4.063 changes and commit them, and you can discard any commits you make in this 4.063 state without impacting any branches by switching back to a branch. 4.063 4.063 If you want to create a new branch to retain commits you create, you may 4.063 do so (now or later) by using -c with the switch command. Example: 4.063 4.063 git switch -c <new-branch-name> 4.063 4.063 Or undo this operation with: 4.063 4.063 git switch - 4.063 4.063 Turn off this advice by setting config variable advice.detachedHead to false 4.063 4.928 Downloading vcpkg-glibc... 7.567 Computing installation plan... 7.582 A suitable version of cmake was not found (required v3.25.1) Downloading portable cmake 3.25.1... 7.582 Downloading cmake... 7.582 https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz->/vcpkg/downloads/cmake-3.25.1-linux-x86_64.tar.gz 15.74 Extracting cmake... 17.40 The following packages will be built and installed: 17.40 aom[core]:x64-linux -> 3.5.0#1 17.40 * libjpeg-turbo[core]:x64-linux -> 2.1.5.1 17.40 libvpx[core]:x64-linux -> 1.12.0#1 17.40 libyuv[core]:x64-linux -> 1857 17.40 opus[core]:x64-linux -> 1.3.1#9 17.40 * vcpkg-cmake[core]:x64-linux -> 2022-12-22 17.40 * vcpkg-cmake-config[core]:x64-linux -> 2022-02-06#1 17.40 * vcpkg-cmake-get-vars[core]:x64-linux -> 2023-03-02 17.40 Additional packages (*) will be modified to complete this operation. 17.40 Detecting compiler hash for triplet x64-linux... 19.42 Restored 0 package(s) from /root/.cache/vcpkg/archives in 22.6 us. Use --debug to see more details. 19.42 Installing 1/8 vcpkg-cmake:x64-linux... 19.42 Building vcpkg-cmake[core]:x64-linux... 19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake 19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake 19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake 19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/vcpkg-port-config.cmake 19.44 -- Installing: /vcpkg/packages/vcpkg-cmake_x64-linux/share/vcpkg-cmake/copyright 19.44 -- Performing post-build validation 19.44 Stored binaries in 1 destinations. 19.44 Elapsed time to handle vcpkg-cmake:x64-linux: 24.5 ms 19.44 Installing 2/8 vcpkg-cmake-config:x64-linux... 19.44 Building vcpkg-cmake-config[core]:x64-linux... 19.46 -- Installing: /vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake 19.46 -- Installing: /vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/vcpkg-port-config.cmake 19.46 -- Installing: /vcpkg/packages/vcpkg-cmake-config_x64-linux/share/vcpkg-cmake-config/copyright 19.46 -- Performing post-build validation 19.47 Stored binaries in 1 destinations. 19.47 Elapsed time to handle vcpkg-cmake-config:x64-linux: 22.7 ms 19.47 Installing 3/8 aom:x64-linux... 19.47 Building aom[core]:x64-linux... 19.49 -- Fetching https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71... 22.71 CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): 22.71 Command failed: /usr/bin/git fetch https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71 --depth 1 -n 22.71 Working Directory: /vcpkg/downloads/git-tmp 22.71 Error code: 128 22.71 See logs for more information: 22.71 /vcpkg/buildtrees/aom/git-fetch-x64-linux-err.log 22.71 22.71 Call Stack (most recent call first): 22.71 scripts/cmake/vcpkg_from_git.cmake:86 (vcpkg_execute_required_process) 22.71 ports/aom/portfile.cmake:11 (vcpkg_from_git) 22.71 scripts/ports.cmake:147 (include) 22.71 22.71 22.72 error: building aom:x64-linux failed with: BUILD_FAILED 22.74 Please ensure you're using the latest port files with `git pull` and `vcpkg update`. 22.74 Then check for known issues at: 22.74 https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+aom 22.74 You can submit a new issue at: 22.74 https://github.com/microsoft/vcpkg/issues/new?title=[aom]+Build+error&body=Copy+issue+body+from+%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md 22.74 ------ Dockerfile:33 -------------------- 32 | 33 | >>> RUN git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg && \ 34 | >>> /vcpkg/bootstrap-vcpkg.sh -disableMetrics && \ 35 | >>> /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom 36 | -------------------- ERROR: failed to solve: process "/bin/sh -c git clone --branch 2023.04.15 --depth=1 https://github.com/microsoft/vcpkg && /vcpkg/bootstrap-vcpkg.sh -disableMetrics && /vcpkg/vcpkg --disable-metrics install libvpx libyuv opus aom" did not complete successfully: exit code: 1 ``` </details> Note that command `git fetch https://aomedia.googlesource.com/aom 9a83c6a5a55c176adbce740e47d3512edfc9ae71 --depth 1 -n` does work when used on host. ### How to Reproduce Try to follow Docker-based building instructions on Debian Bookworm on amd64 with `Docker version 24.0.7, build afdd53b` ### Expected Behavior It builds and produces working `rustdesk-builder` Docker image. ### Operating system(s) on local side and remote side Linux ### RustDesk Version(s) on local side and remote side master (7f7d4a77b61aff9988f6c09962dbd9e921553ca5) ### Screenshots (not applicable) ### Additional Context _No response_
deekerman 2026-02-21 00:20:56 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Jan 3, 2024):

#763

@rustdesk commented on GitHub (Jan 3, 2024): #763
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#2396
No description provided.