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
Vivado Docker
Commits
f1b9a917
Commit
f1b9a917
authored
Oct 17, 2018
by
zyx
Browse files
reduce image layers
parent
26c6971a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
f1b9a917
...
...
@@ -27,19 +27,19 @@ RUN sed -i.bak s/archive.ubuntu.com/mirror.tuna.tsinghua.edu.cn/g /etc/apt/sourc
ARG
VIVADO_VERSION
ARG
VIVADO_TAR_FILE
RUN
mkdir
/install_vivado
COPY
install_config.txt /
COPY
${VIVADO_TAR_FILE} /
# ADD does the extraction
ADD
${VIVADO_TAR_FILE} /install_vivado/
# run the install
RUN
mkdir
/install_vivado
&&
\
tar
-xf
${
VIVADO_TAR_FILE
}
-C
/install_vivado
&&
\
/install_vivado/
*
/xsetup
--agree
3rdPartyEULA,WebTalkTerms,XilinxEULA
--batch
Install
--config
/install_config.txt
&&
\
RUN
/install_vivado/
*
/xsetup
--agree
3rdPartyEULA,WebTalkTerms,XilinxEULA
--batch
Install
--config
/install_config.txt
&&
\
rm
-rf
/
${
VIVADO_TAR_FILE
}
/install_config.txt /install_vivado
#make a Vivado user
RUN
adduser
--disabled-password
--gecos
''
vivado
RUN
usermod
-aG
sudo
vivado
RUN
echo
"vivado ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
RUN
adduser
--disabled-password
--gecos
''
vivado
&&
\
usermod
-aG
sudo
vivado
&&
\
echo
"vivado ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
USER
vivado
WORKDIR
/home/vivado
...
...
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