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
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
bc448c78
...
...
@@ -2,13 +2,18 @@ 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
\
RUN
dpkg
--add-architecture
i386
&&
\
apt-get update
&&
\
apt-get
install
-y
-q
\
build-essential
\
sudo
\
tofrodos
\
...
...
@@ -60,14 +65,14 @@ 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
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
&&
\
...
...
@@ -76,7 +81,7 @@ RUN chmod a+rx /${PETA_RUN_FILE} && \
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
Supports
Markdown
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