From: Pan Xiuli xiuli.pan@linux.intel.com
apt will not use environment proxy in ubuntu, need to set proxy in apt.conf file
Modify Dockerfile to get apt.conf from host and add an empty apt.conf for those host that need no proxy.
You can either copy apt.conf from host or edit the apt.conf in scripts/docker_build
Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com --- scripts/README.docker | 5 +++++ scripts/docker_build/Dockerfile | 2 ++ scripts/docker_build/apt.conf | 0 3 files changed, 7 insertions(+) create mode 100644 scripts/docker_build/apt.conf
diff --git a/scripts/README.docker b/scripts/README.docker index fd390d6..c6273c5 100644 --- a/scripts/README.docker +++ b/scripts/README.docker @@ -10,6 +10,11 @@ First, build the docker container. This step needs to be done initially and when the toolchain or alsa dependencies are updated.
cd scripts/docker_build + +Optional for user need proxy to access internet +cp /etc/apt/apt.conf ./ +or edit the apt.conf file + docker build --build-arg UID=$(id -u) -t sof .
After the container is built, it can be used to run the scripts. diff --git a/scripts/docker_build/Dockerfile b/scripts/docker_build/Dockerfile index 6b587e2..9947c96 100644 --- a/scripts/docker_build/Dockerfile +++ b/scripts/docker_build/Dockerfile @@ -17,6 +17,8 @@ FROM ubuntu ARG UID=1000
+COPY apt.conf /etc/apt/ + RUN apt-get -y update && \ apt-get install -y \ autoconf \ diff --git a/scripts/docker_build/apt.conf b/scripts/docker_build/apt.conf new file mode 100644 index 0000000..e69de29