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 build fails with missing git error #552

Closed
jimthompson5802 opened this issue Oct 27, 2019 · 0 comments · Fixed by #553
Closed

docker build fails with missing git error #552

jimthompson5802 opened this issue Oct 27, 2019 · 0 comments · Fixed by #553

Comments

@jimthompson5802
Copy link
Contributor

@jimthompson5802 jimthompson5802 commented Oct 27, 2019

Describe the bug
docker build fails with error message 4 0.537 /bin/sh: 1: git: not found.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ludwig root directory
    2. docker build -t ludwig_image

Expected behavior
Successful build of docker image

Screenshots
This is the docker build log:

docker build -t ludwig_test .
[+] Building 2.1s (5/6)
 => [internal] load build definition from Dockerfile                                                                                   0.1s
 => => transferring dockerfile: 466B                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                      0.0s
 => => transferring context: 2B                                                                                                        0.0s
 => [internal] load metadata for docker.io/tensorflow/tensorflow:latest-py3                                                            1.2s
 => CACHED [1/3] FROM docker.io/tensorflow/tensorflow:latest-py3@sha256:0b236338fac6c3361cf3ae1448f8c053994e260c1edc4fa63ed80adb3045a  0.0s
 => ERROR [2/3] RUN git clone --depth=1 https://github.com/uber/ludwig.git     && cd ludwig/     && pip install -r requirements.txt -  0.7s
------
 > [2/3] RUN git clone --depth=1 https://github.com/uber/ludwig.git     && cd ludwig/     && pip install -r requirements.txt -r requirements_text.txt           -r requirements_image.txt -r requirements_audio.txt           -r requirements_serve.txt -r requirements_viz.txt     && python setup.py install:
#4 0.537 /bin/sh: 1: git: not found
------
failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c git clone --depth=1 https://github.com/uber/ludwig.git     && cd ludwig/     && pip install -r requirements.txt -r requirements_text.txt           -r requirements_image.txt -r requirements_audio.txt           -r requirements_serve.txt -r requirements_viz.txt     && python setup.py install]: runc did not terminate sucessfully
Jim-MacBook-Pro:jim ludwig[508]$

Environment (please complete the following information):

  • OS: MacOS
  • Version 10.15
  • Python version: N/A
  • Ludwig version: 0.2.1
  • Docker version: Docker Desktop for Mac 2.1.0.4

Additional context
Earlier version of Docker file contained RUN apt-get install git command. This was removed in a recent change. I'll submit PR to add back the command.

jimthompson5802 added a commit to jimthompson5802/ludwig that referenced this issue Oct 27, 2019
w4nderlust added a commit that referenced this issue Oct 28, 2019
…issing_git

Fix #552: added git to docker build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.