mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Add PSScriptAnalyzer to default container.
This commit is contained in:
@@ -49,5 +49,23 @@ RUN ln -s python2.7 /usr/bin/python2
|
||||
RUN ln -s python3.6 /usr/bin/python3
|
||||
RUN ln -s python3 /usr/bin/python
|
||||
|
||||
RUN apt-get update -y && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
apt-transport-https \
|
||||
&& \
|
||||
apt-get clean
|
||||
ADD https://packages.microsoft.com/config/ubuntu/16.04/prod.list /etc/apt/sources.list.d/microsoft.list
|
||||
RUN curl --silent https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
|
||||
RUN apt-get update -y && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
dotnet-sdk-2.1.4 \
|
||||
powershell \
|
||||
&& \
|
||||
apt-get clean
|
||||
RUN dotnet --version
|
||||
RUN pwsh --version
|
||||
COPY requirements/sanity.ps1 /tmp/
|
||||
RUN /tmp/sanity.ps1
|
||||
|
||||
ENV container=docker
|
||||
CMD ["/sbin/init"]
|
||||
|
||||
Reference in New Issue
Block a user