Skip to content

Commit

Permalink
Fixup fingerprint issue in Dockerfile (tikv#6455)
Browse files Browse the repository at this point in the history
Signed-off-by: Ana Hobden <operator@hoverbear.org>
  • Loading branch information
Hoverbear authored and c1ay committed May 9, 2020
1 parent 7e29f6f commit bbd0f79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/gen-dockerfile.sh
Expand Up @@ -93,11 +93,12 @@ RUN mkdir -p ./cmd/src/bin && \\
EOT

# Remove fingerprints for when we build the real binaries.
fingerprint_dirs=(tikv $(for i in ${components[@]}; do echo ./target/release/.fingerprint/$(basename ${i})-*; done | xargs))
echo "RUN rm -rf ${fingerprint_dirs}"
fingerprint_dirs=$(for i in ${components[@]}; do echo ./target/release/.fingerprint/$(basename ${i})-*; done | xargs)
echo "RUN rm -rf ${fingerprint_dirs} ./target/release/.fingerprint/tikv-*"
for i in "${components[@]:1}"; do
echo "COPY ${i} ${i}"
done
echo "COPY src src"

# Build real binaries now
cat <<EOT
Expand Down

0 comments on commit bbd0f79

Please sign in to comment.