Unverified Commit 8c812ebc authored by Yuxiang Zhang's avatar Yuxiang Zhang Committed by GitHub
Browse files

Merge pull request #1 from Sam13/parametrize-mirror

Ubuntu mirror can be parameterized
parents d22c0f91 1afb68a9
......@@ -4,12 +4,14 @@ MAINTAINER z4yx <z4yx@users.noreply.github.com>
# build with docker build --build-arg VIVADO_VERSION=2018.1 --build-arg VIVADO_TAR_FILE=Xilinx_Vivado_SDK_2018.1_0405_1.tar.gz -t vivado:2018.1 .
ARG UBUNTU_MIRROR=mirror.tuna.tsinghua.edu.cn
#install dependences for:
# * downloading Vivado (wget)
# * xsim (gcc build-essential to also get make)
# * MIG tool (libglib2.0-0 libsm6 libxi6 libxrender1 libxrandr2 libfreetype6 libfontconfig)
# * CI (git)
RUN sed -i.bak s/archive.ubuntu.com/mirror.tuna.tsinghua.edu.cn/g /etc/apt/sources.list && \
RUN sed -i.bak s/archive.ubuntu.com/${UBUNTU_MIRROR}/g /etc/apt/sources.list && \
apt-get update && apt-get install -y \
build-essential \
sudo \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment