Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Aug 13, 2023
1 parent acf5351 commit f55d2b7
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions extra_scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ RUN apt-get update -y && \
apt-get autoclean && \
apt-get autoremove

RUN vagrant_latest_version=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version') && \
URL="https://releases.hashicorp.com/vagrant/${vagrant_latest_version}/" && \
HTML=$(curl -s "$URL") && \
vagrant_pkgs=$(echo "$HTML" | grep -oE 'href="([^"]+\.deb)"' | sed -e 's/href="//' -e 's/"$//') && \
for pkg in $vagrant_pkgs; do if echo "$pkg" | grep -q "amd64"; then deb_filename=$(basename "$pkg"); fi; done && \
curl -O "https://releases.hashicorp.com/vagrant/${vagrant_latest_version}/${deb_filename}" && \
chmod 777 "${deb_filename}" && \
dpkg -i "${deb_filename}" && \
# RUN vagrant_latest_version=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version') && \
# URL="https://releases.hashicorp.com/vagrant/${vagrant_latest_version}/" && \
# HTML=$(curl -s "$URL") && \
# vagrant_pkgs=$(echo "$HTML" | grep -oE 'href="([^"]+\.deb)"' | sed -e 's/href="//' -e 's/"$//') && \
# for pkg in $vagrant_pkgs; do if echo "$pkg" | grep -q "amd64"; then deb_filename=$(basename "$pkg"); fi; done && \
# curl -O "https://releases.hashicorp.com/vagrant/${vagrant_latest_version}/${deb_filename}" && \
# chmod 777 "${deb_filename}" && \
# dpkg -i "${deb_filename}" && \
# vagrant plugin install vagrant-libvirt && \
# vagrant box add --provider libvirt peru/windows-10-enterprise-x64-eval && \
# vagrant init peru/windows-10-enterprise-x64-eval

RUN curl -O "https://github.com/hashicorp/vagrant/releases/download/2.3.8.dev%2B000032-f72cda8b/vagrant_2.3.8.dev-1_amd64.deb" && \
chmod 777 vagrant_2.3.8.dev-1_amd64.deb && \
dpkg -i vagrant_2.3.8.dev-1_amd64.deb && \
vagrant plugin install vagrant-libvirt && \
vagrant box add --provider libvirt peru/windows-10-enterprise-x64-eval && \
vagrant init peru/windows-10-enterprise-x64-eval
Expand Down

0 comments on commit f55d2b7

Please sign in to comment.