Error when building an image using Dockerfile
REQUIRED for all errors and issues:
a) GATK version used:
b) Exact command used:
c) Entire program log:
Hello,
I am trying to build an image using this Dockerfile, and I got this error message.
=> ERROR [gradlebuild 7/11] RUN git lfs pull –include src/main/resources/large
------
> [gradlebuild 7/11] RUN git lfs pull --include src/main/resources/large:
#0 0.884 Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository (or any of the parent directories): .git\n"
#0 0.888 Not in a git repository.
------
Dockerfile:26
--------------------
24 |
25 | #Download only resources required for the build, not for testing
26 | >>> RUN git lfs pull --include src/main/resources/large
27 |
28 | RUN export GRADLE_OPTS="-Xmx4048m -Dorg.gradle.daemon=false" && /gatk/gradlew clean collectBundleIntoDir shadowTestClassJar shadowTestJar -Drelease=$RELEASE
--------------------
ERROR: failed to solve: process "/bin/sh -c git lfs pull --include src/main/resources/large" did not complete successfully: exit code: 128
Any help please !
-
=> [gradlebuild 5/11] RUN rm /etc/apt/sources.list.d/google-cloud-sdk.list && apt update && apt-key list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && add-apt-repository universe && apt update && apt-get --assume-yes install git-lfs && apt-get -y
=> [gradlebuild 6/11] RUN git lfs install --force
=> ERROR [gradlebuild 7/11] RUN git lfs pull --include src/main/resources/large ------
> [gradlebuild 7/11] RUN git lfs pull --include src/main/resources/large:
#0 0.412 Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository (or any of the parent directories): .git\n"
#0 0.416 Not in a git repository.
------
Dockerfile:26
--------------------
24 |
25 | #Download only resources required for the build, not for testing
26 | >>> RUN git lfs pull --include src/main/resources/large
27 |
28 | RUN export GRADLE_OPTS="-Xmx4048m -Dorg.gradle.daemon=false" && /gatk/gradlew clean collectBundleIntoDir shadowTestClassJar shadowTestJar -Drelease=$RELEASE
-------------------- -
Hi E Ra
Have you performed any modifications in the docker file or are you using it directly from our repo?
Our docker images for each release and nightly builds are already available through hub.docker.com. Is there a specific reason that you would like to build your own?
The error message specifically states that you need to have the git repo cloned to your local environment to build this image. Can you try running it directly from the cloned git repository?
Regards.
Please sign in to leave a comment.
2 comments