From 84f04087fb83bbb9ef02a7d6603727229ff4d153 Mon Sep 17 00:00:00 2001 From: Shaojun Liu <61072813+liu-shaojun@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:29:14 +0800 Subject: [PATCH] Add intelanalytics/ipex-llm:sources image for OSPDT (#11296) * Add intelanalytics/ipex-llm:sources image * apt-get source --- docker/llm/sources/Dockerfile | 17 +++++++++++++++++ docker/llm/sources/README.md | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 docker/llm/sources/Dockerfile create mode 100644 docker/llm/sources/README.md diff --git a/docker/llm/sources/Dockerfile b/docker/llm/sources/Dockerfile new file mode 100644 index 00000000..9ac5f611 --- /dev/null +++ b/docker/llm/sources/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu:22.04 + +# Add deb-src entries to the sources.list +RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse" >> /etc/apt/sources.list + +# Update package lists and install dpkg-dev +RUN apt-get update && apt-get install -y dpkg-dev + +# Create a temporary directory, adjust permissions, and download source code for the specified packages +RUN mkdir -p /usr/local/src/git-source && \ + chown _apt:root /usr/local/src/git-source && \ + cd /usr/local/src/git-source && \ + apt-get source \ + git \ + gnupg \ + numactl \ + wget \ No newline at end of file diff --git a/docker/llm/sources/README.md b/docker/llm/sources/README.md new file mode 100644 index 00000000..ddb8a1c2 --- /dev/null +++ b/docker/llm/sources/README.md @@ -0,0 +1,12 @@ +This is used for OSPDT review. + +A separate Docker container layer tagged as: :-sources tag for sources of 3d party packages with MPL 1.x, MPL 2.x, GPL 1.x, GPL 2.x and GPL 3.x variants. + +### Build Image +```bash +docker build \ + --build-arg http_proxy=.. \ + --build-arg https_proxy=.. \ + --build-arg no_proxy=.. \ + --rm --no-cache -t intelanalytics/ipex-llm:sources . +```