File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ RUN yum install -y \
3535 && yum clean all
3636
3737# Download and configure Microsoft Repository config file
38- RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo
38+ RUN set -o pipefail \
39+ && curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo
3940
4041# Install latest powershell from Microsoft YUM Repo
4142RUN yum install -y \
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ ENV LC_ALL $LANG
3636RUN localedef --charmap=UTF-8 --inputfile=en_US $LANG
3737
3838# Download and configure Microsoft Repository config file
39- RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo
39+ RUN set -o pipefail \
40+ && curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo
4041
4142# Install latest powershell from Microsoft YUM Repo
4243RUN dnf install -y powershell-${POWERSHELL_VERSION} \
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ ENV LC_ALL $LANG
3737RUN localedef --charmap=UTF-8 --inputfile=en_US $LANG
3838
3939# Download and configure Microsoft Repository config file
40- RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo
40+ RUN set -o pipefail \
41+ && curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo
4142
4243# Install latest powershell from Microsoft YUM Repo
4344RUN dnf install -y powershell-${POWERSHELL_VERSION} \
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ RUN apt-get update \
4444RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
4545
4646# Register the Microsoft Ubuntu 14.04 repository
47- RUN curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | tee /etc/apt/sources.list.d/microsoft.list
47+ RUN set -o pipefail \
48+ && curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | tee /etc/apt/sources.list.d/microsoft.list
4849
4950# Install powershell from Microsoft Repo
5051RUN apt-get update \
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ RUN locale-gen $LANG && update-locale
4545RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
4646
4747# Register the Microsoft Ubuntu 16.04 repository
48- RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/microsoft.list
48+ RUN set -o pipefail \
49+ && curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/microsoft.list
4950
5051# Install powershell from Microsoft Repo
5152RUN apt-get update \
You can’t perform that action at this time.
0 commit comments