Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASfpga
Petalinux Docker
Commits
bc448c78
Commit
bc448c78
authored
Oct 20, 2019
by
Steffen Vogel
🎅🏼
Browse files
minor adjustments to Dockerfile
parent
0b93f88f
Pipeline
#195992
failed with stage
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
bc448c78
...
...
@@ -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
#
mak
e a Vivado user
#
Creat
e 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} /
#
r
un the install
#
R
un the install
er
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
#
m
ake /bin/sh symlink to bash instead of dash:
#
M
ake /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
#
a
dd vivado tools to path
#
A
dd vivado tools to path
RUN
echo
"source /opt/Xilinx/petalinux/settings.sh"
>>
/home/vivado/.bashrc
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment