Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #167 from hashicorp/include_eula_and_toe
Browse files Browse the repository at this point in the history
Include EULA and Terms of Evaluation if included in the zip
  • Loading branch information
kpenfound authored Jun 18, 2021
2 parents 1283c3b + 88f9ac1 commit f568128
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 0.X/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ RUN set -eux && \
wget ${HASHICORP_RELEASES}/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_SHA256SUMS.sig && \
gpg --batch --verify consul_${CONSUL_VERSION}_SHA256SUMS.sig consul_${CONSUL_VERSION}_SHA256SUMS && \
grep consul_${CONSUL_VERSION}_linux_${consulArch}.zip consul_${CONSUL_VERSION}_SHA256SUMS | sha256sum -c && \
unzip -d /bin consul_${CONSUL_VERSION}_linux_${consulArch}.zip && \
unzip -d /tmp/build consul_${CONSUL_VERSION}_linux_${consulArch}.zip && \
cp /tmp/build/consul /bin/consul && \
if [ -f /tmp/build/EULA.txt ]; then mkdir -p /usr/share/doc/consul; mv /tmp/build/EULA.txt /usr/share/doc/consul/EULA.txt; fi && \
if [ -f /tmp/build/TermsOfEvaluation.txt ]; then mkdir -p /usr/share/doc/consul; mv /tmp/build/TermsOfEvaluation.txt /usr/share/doc/consul/TermsOfEvaluation.txt; fi && \
cd /tmp && \
rm -rf /tmp/build && \
gpgconf --kill all && \
Expand Down

0 comments on commit f568128

Please sign in to comment.