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