Skip to content

Commit

Permalink
Address Dockerfile linter warnings (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSimons authored Sep 9, 2024
1 parent 6f0a027 commit b4a15e6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/almalinux/8/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ RUN rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-p
# Required for asp.net core test runs
sudo \
libicu \
libmsquic
libmsquic && \
yum clean all

RUN python3 -m pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple && \
python3 -m pip install ./helix_scripts-*-py3-none-any.whl
Expand Down
5 changes: 4 additions & 1 deletion src/centos/stream9/mlnet/helix/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ RUN dnf install --setopt tsflags=nodocs --refresh -y \
&& \
dnf clean all

RUN dnf install perl-FindBin --setopt tsflags=nodocs --refresh -y
RUN dnf install --setopt tsflags=nodocs --refresh -y \
perl-FindBin \
&& \
dnf clean all

# Install openmp from llvm 3.9.1.
RUN wget http://releases.llvm.org/3.9.1/openmp-3.9.1.src.tar.xz
Expand Down
6 changes: 3 additions & 3 deletions src/ubuntu/20.04/webassembly-net8/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

ENV CMAKE_VERSION=3.17
RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz \
&& tar -xf cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz --strip 1 -C /usr/local \
&& rm cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz
RUN curl -sSL https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz -o cmake.tar.gz \
&& tar -xf cmake.tar.gz --strip 1 -C /usr/local \
&& rm cmake.tar.gz

# WebAssembly build needs working UTF-8 locale
RUN locale-gen en_US.UTF-8
Expand Down
6 changes: 3 additions & 3 deletions src/ubuntu/20.04/webassembly/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

ENV CMAKE_VERSION=3.17
RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz \
&& tar -xf cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz --strip 1 -C /usr/local \
&& rm cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz
RUN curl -sSL https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.0-Linux-x86_64.tar.gz -o cmake.tar.gz \
&& tar -xf cmake.tar.gz --strip 1 -C /usr/local \
&& rm cmake.tar.gz

# WebAssembly build needs working UTF-8 locale
RUN locale-gen en_US.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion src/ubuntu/22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN apt-get update \
&& mkdir -p /etc/apt/keyrings \
&& curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/keyrings/microsoft.gpg > /dev/null \
&& chmod go+r /etc/apt/keyrings/microsoft.gpg \
&& echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/azure-cli.list \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/azure-cli.list \
&& apt-get update \
&& apt-get install -y azure-cli \
&& rm -rf /var/lib/apt/lists/*
Expand Down
7 changes: 3 additions & 4 deletions src/ubuntu/24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# Remove older version of node & install node 20
RUN cd /etc/apt/sources.list.d && \
rm -f nodesource.list && \
apt --fix-broken install && \
apt update && \
RUN rm -f /etc/apt/sources.list.d/nodesource.list && \
apt-get --fix-broken install && \
apt-get update && \
apt-get remove nodejs -y && \
apt-get remove nodejs-doc -y && \
apt-get remove libnode-dev -y
Expand Down

0 comments on commit b4a15e6

Please sign in to comment.