Skip to content

Commit

Permalink
Docker build only lfs pulls main/src/resources/large (#7727)
Browse files Browse the repository at this point in the history
* Docker build now only downloads the main large resources from git-lfs.  Previously it pulled everything.
* This should make building the docker substantially faster locally and possibly speed up the test suite slightly.
  • Loading branch information
lbergelson authored and mcovarr committed Apr 25, 2022
1 parent 761297b commit 0322dbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ RUN add-apt-repository universe && apt update
RUN apt-get --assume-yes install git-lfs
RUN git lfs install --force

RUN git lfs pull
#Download only resources required for the build, not for testing
RUN git lfs pull -include src/main/resources/large

RUN export GRADLE_OPTS="-Xmx4048m -Dorg.gradle.daemon=false" && /gatk/gradlew clean collectBundleIntoDir shadowTestClassJar shadowTestJar -Drelease=$RELEASE
RUN cp -r $( find /gatk/build -name "*bundle-files-collected" )/ /gatk/unzippedJar/
Expand Down

0 comments on commit 0322dbb

Please sign in to comment.