Skip to content

Docker build fails #8

@anti79

Description

@anti79
~/sshimpanzee $ DOCKER_BUILDKIT=1 docker build . --output . 
[+] Building 44.1s (14/24)                                                                                       docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                             0.0s
 => => transferring dockerfile: 1.11kB                                                                                           0.0s
 => [internal] load metadata for docker.io/library/alpine:3.19                                                                   1.1s
 => [internal] load .dockerignore                                                                                                0.0s
 => => transferring context: 2B                                                                                                  0.0s
 => [build-stage-0  1/13] FROM docker.io/library/alpine:3.19@sha256:3be987e6cde1d07e873c012bf6cfe941e6e85d16ca5fc5b8bedc675451d  0.0s
 => => resolve docker.io/library/alpine:3.19@sha256:3be987e6cde1d07e873c012bf6cfe941e6e85d16ca5fc5b8bedc675451d2de67             0.0s
 => [internal] load build context                                                                                                0.0s
 => => transferring context: 28.13kB                                                                                             0.0s
 => CACHED [build-stage-0  2/13] RUN apk add autoconf gcc make  python3 git automake musl-dev build-base openssh-keygen binutil  0.0s
 => CACHED [build-stage-0  3/13] COPY builder.py patch_openssh.diff build_root/                                                  0.0s
 => CACHED [build-stage-0  4/13] COPY openssh-portable build_root/openssh-portable/                                              0.0s
 => [build-stage-0  5/13] COPY src build_root/src/                                                                               0.0s
 => [build-stage-0  6/13] COPY tuns build_root/tuns/                                                                             0.0s
 => [build-stage-0  7/13] COPY subsystems build_root/subsystems/                                                                 0.0s
 => [build-stage-0  8/13] COPY .git build_root/.git/                                                                             0.0s
 => [build-stage-0  9/13] WORKDIR build_root                                                                                     0.0s
 => ERROR [build-stage-0 10/13] RUN git submodule init; git submodule update --force --recursive --init --remote                42.7s
------                                                                                                                                
 > [build-stage-0 10/13] RUN git submodule init; git submodule update --force --recursive --init --remote:                            
0.183 Submodule 'openssh-portable' (https://github.com/openssh/openssh-portable.git) registered for path 'openssh-portable'           
0.184 Submodule 'tuns/dns2tcp' (https://github.com/alex-sector/dns2tcp.git) registered for path 'tuns/dns2tcp'                        
0.185 Submodule 'tuns/enet' (https://github.com/lsalzman/enet) registered for path 'tuns/enet'                                        
0.185 Submodule 'tuns/icmptunnel' (https://github.com/DhavalKapil/icmptunnel.git) registered for path 'tuns/icmptunnel'               
0.189 Submodule 'tuns/proxysocket' (https://github.com/brechtsanders/proxysocket) registered for path 'tuns/proxysocket'
0.190 Submodule 'tuns/websocket' (https://github.com/payden/libwsclient.git) registered for path 'tuns/websocket'
0.191 Submodule 'utils/client/bin/interactive-python-websocket-server' (https://github.com/TitouanLazard/interactive-python-websocket-server.git) registered for path 'utils/client/bin/interactive-python-websocket-server'
0.217 Cloning into '/build_root/openssh-portable'...
36.04 Cloning into '/build_root/tuns/dns2tcp'...
37.06 Cloning into '/build_root/tuns/enet'...
38.67 Cloning into '/build_root/tuns/icmptunnel'...
40.28 Cloning into '/build_root/tuns/proxysocket'...
41.11 Cloning into '/build_root/tuns/websocket'...
41.44 fatal: could not read Username for 'https://github.com': No such device or address
41.45 fatal: clone of 'https://github.com/payden/libwsclient.git' into submodule path '/build_root/tuns/websocket' failed
41.45 Failed to clone 'tuns/websocket'. Retry scheduled
41.45 Cloning into '/build_root/utils/client/bin/interactive-python-websocket-server'...
42.41 Cloning into '/build_root/tuns/websocket'...
42.72 fatal: could not read Username for 'https://github.com': No such device or address
42.73 fatal: clone of 'https://github.com/payden/libwsclient.git' into submodule path '/build_root/tuns/websocket' failed
42.73 Failed to clone 'tuns/websocket' a second time, aborting
------

 1 warning found (use docker --debug to expand):
 - WorkdirRelativePath: Relative workdir "build_root" can have unexpected results if the base image changes (line 10)
Dockerfile:11
--------------------
   9 |     COPY .git build_root/.git/
  10 |     WORKDIR build_root
  11 | >>> RUN git submodule init; git submodule update --force --recursive --init --remote
  12 |     RUN git -C openssh-portable checkout 8241b9c0529228b4b86d88b1a6076fb9f97e4a99
  13 |     RUN git -C openssh-portable apply $(pwd)/patch_openssh.diff; 
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c git submodule init; git submodule update --force --recursive --init --remote" did not complete successfully: exit code: 1

https://github.com/payden/libwsclient.git' returns 404

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions