gis-ops / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
248 stars 70 forks source link

Unable to build docker image on Windows #108

Closed juntek closed 1 year ago

juntek commented 1 year ago

Perhaps I'm doing something wrong, but I can't build docker image on Windows using Rancher Desktop v1.8.1:

D:\valhalla-master>docker build -t valhalla:latest .
[+] Building 4.3s (11/32)
 => [internal] load build definition from Dockerfile
 => => transferring dockerfile: 32B
 => [internal] load .dockerignore
 => => transferring context: 35B
 => [internal] load metadata for docker.io/library/ubuntu:22.04
 => CACHED [builder  1/25] FROM docker.io/library/ubuntu:22.04@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf
 => [internal] load build context
 => => transferring context: 72.67kB
 => CACHED [builder  2/25] WORKDIR /usr/local/src/valhalla
 => CACHED [builder  3/25] COPY ./scripts/install-linux-deps.sh /usr/local/src/valhalla/scripts/install-linux-deps.sh
 => CACHED [builder  4/25] RUN bash /usr/local/src/valhalla/scripts/install-linux-deps.sh
 => CACHED [builder  5/25] RUN rm -rf /var/lib/apt/lists/*
 => CACHED [builder  6/25] ADD . .
 => CACHED [builder  7/25] RUN ls -la
 => ERROR [builder  8/25] RUN git submodule sync && git submodule update --init --recursive
------
 > [builder  8/25] RUN git submodule sync && git submodule update --init --recursive:
#0 0.414 fatal: not a git repository (or any of the parent directories): .git
------
ERROR: failed to solve: executor failed running [/bin/sh -c git submodule sync && git submodule update --init --recursive]: exit code: 128
juntek commented 1 year ago

Sorry, wrong repository (can't delete issue).

nilsnolde commented 1 year ago

Wrong repo. You’re trying to build the native Valhalla image from https://github.com/valhalla/valhalla.

no idea what rancher is, but it seems it’s not copying over the .git (hint: hidden) folder. Better ask on another forum, not GitHub, hardly anyone doing anything on windows in our repos.

juntek commented 1 year ago

no idea what rancher is

@nilsnolde https://rancherdesktop.io/

juntek commented 1 year ago

Build from dockerfile in this repo succeeded.