Skip to content

Commit 101941b

Browse files
authored
Containers/Ubuntu-22/Dockerfile: Get iasl from Project Mu NuGet feed (#227)
Resolves #228 Recently acpica.org has been unavailable, see: acpica/acpica#888 Project Mu already publishes iasl to a NuGet feed. To fix the immediate container build issue and reduce external dependencies for the future, this change gets iasl from the NuGet feed instead of from acpica.org. A NuGet client application is not involved to keep the container build steps light. The executable is moved to `/usr/bin` which is already on the system path. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
1 parent 82f9b9c commit 101941b

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Containers/Ubuntu-22/Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ FROM ubuntu:22.04 AS build
1414
# Versions
1515
ARG GCC_MAJOR_VERSION=12
1616
ARG NASM_VERSION=2.16.01
17-
ARG IASL_VERSION=20210105
1817
ARG CSPELL_VERSION=5.20.0
1918
ARG MARKDOWNLINT_VERSION=0.32.2
2019

20+
# Visit this NuGet package version page to see the latest version available
21+
# https://dev.azure.com/projectmu/acpica/_artifacts/feed/mu_iasl/NuGet/edk2-acpica-iasl/versions
22+
ARG IASL_VERSION=20210105.0.6
23+
2124
# Set environment variable to avoid interaction.
2225
ENV DEBIAN_FRONTEND=noninteractive
2326
ENV TZ=UTC
@@ -43,6 +46,7 @@ RUN apt-get update && \
4346
python3-venv \
4447
software-properties-common \
4548
sudo \
49+
unzip \
4650
uuid-dev \
4751
wget \
4852
&& \
@@ -74,10 +78,11 @@ RUN wget -O - https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/nasm-${
7478
./autogen.sh && ./configure && make -j $(nproc) && make install && \
7579
cd .. && rm -rf nasm-${NASM_VERSION}
7680

77-
RUN wget -O - https://acpica.org/sites/acpica/files/acpica-unix-${IASL_VERSION}.tar.gz | \
78-
tar xz && cd acpica-unix-${IASL_VERSION} && \
79-
make clean && make -j $(nproc) iasl && make install && \
80-
cd .. && rm -rf acpica-unix-${IASL_VERSION}
81+
RUN mkdir -p iasl_temp && cd iasl_temp && \
82+
wget -O iasl_${IASL_VERSION}.nupkg "https://pkgs.dev.azure.com/projectmu/acpica/_apis/packaging/feeds/mu_iasl/nuget/packages/edk2-acpica-iasl/versions/${IASL_VERSION}/content?api-version=6.0-preview.1" && \
83+
unzip iasl_${IASL_VERSION}.nupkg -d /iasl_pkg_contents && \
84+
find /iasl_pkg_contents -type f -name "iasl" -exec cp {} /usr/bin \; && chmod +x /usr/bin/iasl && \
85+
cd .. && rm -rf iasl_temp
8186

8287
RUN wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb" && \
8388
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb && \

0 commit comments

Comments
 (0)