Commit bc448c78 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

minor adjustments to Dockerfile

parent 0b93f88f
Pipeline #195992 failed with stage
in 2 minutes and 12 seconds
......@@ -2,81 +2,86 @@ FROM ubuntu:16.04
MAINTAINER z4yx <z4yx@users.noreply.github.com>
# build with docker build --build-arg PETA_VERSION=2018.1 --build-arg PETA_RUN_FILE=petalinux-v2018.1-final-installer.run -t petalinux:2018.1 .
# Build with:
# docker build \
# --build-arg PETA_VERSION=2018.1 \
# --build-arg PETA_RUN_FILE=petalinux-v2018.1-final-installer.run \
# -t petalinux:2018.1 .
ARG UBUNTU_MIRROR=mirror.tuna.tsinghua.edu.cn
ENV DEBIAN_FRONTEND=noninteractive
#install dependences:
RUN sed -i.bak s/archive.ubuntu.com/${UBUNTU_MIRROR}/g /etc/apt/sources.list && \
dpkg --add-architecture i386 && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
build-essential \
sudo \
tofrodos \
iproute2 \
gawk \
net-tools \
expect \
libncurses5-dev \
tftpd \
update-inetd \
libssl-dev \
flex \
bison \
libselinux1 \
gnupg \
wget \
socat \
gcc-multilib \
libsdl1.2-dev \
libglib2.0-dev \
lib32z1-dev \
zlib1g:i386 \
libgtk2.0-0 \
screen \
pax \
diffstat \
xvfb \
xterm \
texinfo \
gzip \
unzip \
cpio \
chrpath \
autoconf \
lsb-release \
libtool \
libtool-bin \
locales \
kmod \
git \
rsync \
bc \
u-boot-tools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y -q \
build-essential \
sudo \
tofrodos \
iproute2 \
gawk \
net-tools \
expect \
libncurses5-dev \
tftpd \
update-inetd \
libssl-dev \
flex \
bison \
libselinux1 \
gnupg \
wget \
socat \
gcc-multilib \
libsdl1.2-dev \
libglib2.0-dev \
lib32z1-dev \
zlib1g:i386 \
libgtk2.0-0 \
screen \
pax \
diffstat \
xvfb \
xterm \
texinfo \
gzip \
unzip \
cpio \
chrpath \
autoconf \
lsb-release \
libtool \
libtool-bin \
locales \
kmod \
git \
rsync \
bc \
u-boot-tools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ARG PETA_VERSION
ARG PETA_RUN_FILE
RUN locale-gen en_US.UTF-8 && update-locale
#make a Vivado user
# Create a Vivado user
RUN adduser --disabled-password --gecos '' vivado && \
usermod -aG sudo vivado && \
echo "vivado ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
usermod -aG sudo vivado && \
echo "vivado ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
COPY accept-eula.sh ${PETA_RUN_FILE} /
# run the install
# Run the installer
RUN chmod a+rx /${PETA_RUN_FILE} && \
chmod a+rx /accept-eula.sh && \
mkdir -p /opt/Xilinx && \
chmod 777 /tmp /opt/Xilinx && \
cd /tmp && \
sudo -u vivado -i /accept-eula.sh /${PETA_RUN_FILE} /opt/Xilinx/petalinux && \
rm -f /${PETA_RUN_FILE} /accept-eula.sh
chmod a+rx /accept-eula.sh && \
mkdir -p /opt/Xilinx && \
chmod 777 /tmp /opt/Xilinx && \
cd /tmp && \
sudo -u vivado -i /accept-eula.sh /${PETA_RUN_FILE} /opt/Xilinx/petalinux && \
rm -f /${PETA_RUN_FILE} /accept-eula.sh
# make /bin/sh symlink to bash instead of dash:
# Make /bin/sh symlink to bash instead of dash:
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
......@@ -86,6 +91,6 @@ ENV LANG en_US.UTF-8
RUN mkdir /home/vivado/project
WORKDIR /home/vivado/project
#add vivado tools to path
# Add vivado tools to path
RUN echo "source /opt/Xilinx/petalinux/settings.sh" >> /home/vivado/.bashrc
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