Commit 15a6ad49 authored by Colm Ryan's avatar Colm Ryan
Browse files

🎉 initial commit

parents
FROM ubuntu:14.04
MAINTAINER Colm Ryan <cryan@bbn.com>
#install dependences for:
# * xsim (gcc build-essential to also get make)
# * MIG tool (libglib2.0-0 libsm6 libxi6 libxrender1 libxrandr2 libfreetype6 libfontconfig)
# * CI (git)
RUN apt-get update && apt-get install -y \
build-essential \
libglib2.0-0 \
libsm6 \
libxi6 \
libxrender1 \
libxrandr2 \
libfreetype6 \
libfontconfig \
git
#Copy in Vivado installer and config file
# TODO: is there any way to save image size here?
ADD Xilinx_Vivado_SDK_2015.3_0929_1.tar.gz /
COPY install_config.txt /Xilinx_Vivado_SDK_2015.3_0929_1/
#run the install
RUN /Xilinx_Vivado_SDK_2015.3_0929_1/xsetup --agree 3rdPartyEULA,WebTalkTerms,XilinxEULA --batch Install --config /Xilinx_Vivado_SDK_2015.3_0929_1/install_config.txt
#make a Vivado user
RUN adduser --disabled-password --gecos '' vivado
USER vivado
WORKDIR /home/vivado
#add vivado tools to path
RUN echo "source /opt/Xilinx/Vivado/2015.3/settings64.sh" >> /home/vivado/.bashrc
#copy in the license file
RUN mkdir /home/vivado/.Xilinx
COPY Xilinx.lic /home/vivado/.Xilinx/
# vivado-docker
Vivado installed into a docker image for CI purposes.
## Build instructions
1. Copy the Vivado installer (Xilinx_Vivado_SDK_2015.3_0929_1.tar.gz) file into the directory.
1. Copy your Vivado `Xilinx.lic` file into the directory.
2. Potentialy modify the `install_config.txt` to change the install options.
3. Build the image (will take about 10 minutes)
```shell
docker build -t caryan/vivado:2015.3 .
```
## Running
The `Dockerfile` sets up a `vivado` user to avoid running as root. I have only considered running Vivado in `batch` mode for running CI simulations and building bit files. For development work with the GUI you may have to fiddle with X11 settings.
#### Vivado WebPACK Install Configuration ####
Edition=Vivado WebPACK
# Path where Xilinx software will be installed.
Destination=/opt/Xilinx
# Choose the Products/Devices the you would like to install.
Modules=Software Development Kit:0,DocNav:0,Zynq-7000:0,System Generator for DSP:0,Artix-7:1,Kintex-7:0
# Choose the post install scripts you'd like to run as part of the finalization step. Please note that some of these scripts may require user interaction during runtime.
InstallOptions=Acquire or Manage a License Key:0,Enable WebTalk for SDK to send usage statistics to Xilinx:0
## Shortcuts and File associations ##
# Choose whether Start menu/Application menu shortcuts will be created or not.
CreateProgramGroupShortcuts=0
# Choose the name of the Start menu/Application menu shortcut. This setting will be ignored if you choose NOT to create shortcuts.
ProgramGroupFolder=Xilinx Design Tools
# Choose whether shortcuts will be created for All users or just the Current user. Shortcuts can be created for all users only if you run the installer as administrator.
CreateShortcutsForAllUsers=0
# Choose whether shortcuts will be created on the desktop or not.
CreateDesktopShortcuts=0
# Choose whether file associations will be created or not.
CreateFileAssociation=0
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