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 installation fails after line C:\docker\cartoview> docker-compose build --no-cache #237

Open
limmyjw opened this issue Jun 28, 2022 · 3 comments
Assignees
Labels

Comments

@limmyjw
Copy link

limmyjw commented Jun 28, 2022

Please fill the following information to avoid closing issue

Describe your issue in detail

following the install guide in read the docs for install on docker for windows,
I get an install error afther the command
C:\docker\cartoview> docker-compose build --no-cache

result: no docker is created.

  • log (optional):
PS C:\docker> git clone -b v1.33.2 https://github.com/cartologic/cartoview.git
Cloning into 'cartoview'...
remote: Enumerating objects: 14692, done.
remote: Counting objects: 100% (2805/2805), done.
remote: Compressing objects: 100% (1536/1536), done.Receiving objects:   5% (735/14692)
remote: Total 14692 (delta 1154), reused 2744 (delta 1125), pack-reused 11887
Receiving objects: 100% (14692/14692), 76.04 MiB | 3.39 MiB/s, done.
Resolving deltas: 100% (7994/7994), done.
Note: switching to 'b18fbb216b91fa03241a09bbda99f0edc0c7e676'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Updating files: 100% (300/300), done.
PS C:\docker>

------
PS C:\docker> cd cartoview
PS C:\docker\cartoview>
------

PS C:\docker\cartoview> docker-compose build --no-cache
postgis uses an image, skipping
elasticsearch uses an image, skipping
rabbitmq uses an image, skipping
data-dir-conf uses an image, skipping
geoserver uses an image, skipping
celery uses an image, skipping
nginx uses an image, skipping
Building cartoview
[+] Building 12.0s (8/9)
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 400B                                                                               0.1s
 => [internal] load .dockerignore                                                                                  0.1s
 => => transferring context: 69B                                                                                   0.1s
 => [internal] load metadata for docker.io/library/python:3.8.9                                                    3.2s
 => CACHED [1/5] FROM docker.io/library/python:3.8.9@sha256:49d05fff9cb3b185b15ffd92d8e6bd61c20aa916133dca2e3dbe0  0.0s
 => [internal] load build context                                                                                  1.7s
 => => transferring context: 13.85MB                                                                               1.7s
 => [2/5] COPY . /usr/src/carto_app/cartoview                                                                      1.6s
 => [3/5] RUN chmod +x /usr/src/carto_app/cartoview/scripts/docker/setup.sh                                        3.5s
 => ERROR [4/5] RUN /usr/src/carto_app/cartoview/scripts/docker/setup.sh                                           1.3s
------
 > [4/5] RUN /usr/src/carto_app/cartoview/scripts/docker/setup.sh:
#8 1.227 /bin/sh: 1: /usr/src/carto_app/cartoview/scripts/docker/setup.sh: not found
------
_executor failed running [/bin/sh -c ${APP_DIR}/cartoview/scripts/docker/setup.sh]: exit code: 127
ERROR: Service 'cartoview' failed to build : Build failed_
PS C:\docker\cartoview>
@Youssef-Harby
Copy link
Member

Youssef-Harby commented Jun 28, 2022

Hi @limmyjw ,

Solution is to set autocrlf to false because the /docker/setup.sh script is Unix-style line endings instead of Windows.

git config --global core.autocrlf false

We already have a PR to our Docs to make this point clear to windows users and we will be able to merge it as soon as you kindly confirm that is working.
#235

@Youssef-Harby Youssef-Harby self-assigned this Jun 29, 2022
@MoRadwan74
Copy link
Member

Hello @limmyjw,

I hope that the solution provided by @Youssef-Harby has mentioned fixes the issue for you.

On the other hand, as you are using Windows, allow me to introduce you to the Cartoview Windows installer that you can download and try from here but bear in mind that it's not working properly on Windows 11 nevertheless we will launch a fix for this soon.

@limmyjw
Copy link
Author

limmyjw commented Jun 29, 2022 via email

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

No branches or pull requests

3 participants