Switch installation method for inspec
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2021-01-04 23:02:25 +01:00
parent 23bbce6b40
commit cab531fff3
1 changed files with 7 additions and 5 deletions

View File

@ -36,7 +36,8 @@ RUN dpkg -i /tmp/packages-microsoft-prod.deb && \
rm -f /tmp/packages-microsoft-prod.deb && \ rm -f /tmp/packages-microsoft-prod.deb && \
apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \ apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
ansible \ ansible \
build-essential \ # build-essential \
curl \
git \ git \
jq \ jq \
libxml2-dev \ libxml2-dev \
@ -48,15 +49,16 @@ RUN dpkg -i /tmp/packages-microsoft-prod.deb && \
unzip && \ unzip && \
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen && \ locale-gen && \
gem install inspec && \ curl https://omnitruck.chef.io/install.sh | bash -s -- -P inspec && \
# gem install inspec && \
# gem install inspec-bin && \ # gem install inspec-bin && \
apt-get remove -y \ # apt-get remove -y \
build-essential && \ # build-essential && \
apt-get autoremove -y && \ apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
pwsh -Command "Set-PSRepository -Name 'PSGallery' -InstallationPolicy 'Trusted' -Verbose" && \ pwsh -Command "Set-PSRepository -Name 'PSGallery' -InstallationPolicy 'Trusted' -Verbose" && \
pwsh -Command "Install-Module -Name 'powershell-yaml','VMware.PowerCLI' -Verbose" && \ pwsh -Command "Install-Module -Name 'powershell-yaml','VMware.PowerCLI' -Verbose" && \
pwsh -Command "Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP \$False" && \ pwsh -Command "Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP \$False -Confirm:\$False" && \
sh /tmp/ovftool-installer --console --eulas-agreed --required && \ sh /tmp/ovftool-installer --console --eulas-agreed --required && \
rm -f /tmp/ovftool-installer rm -f /tmp/ovftool-installer