Rubusch / docker__peta-vivado

General staged docker container for the Xilinx/Vivado+Petalinux build environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License: GPL v3

Container for Xilinx Vivado

Docker for Xilinx Vivado IDE. A monolythic build image not based on external base container.

!!! Check out a tagged version in order to build!!!

Requirements

Have docker installed.

Make sure to have:

Preparation

!!! Prepare Xilinx login credentials, append the following variables !!!

Provide Xilinx Vivado installer, Petalinux installer and credentials. Download the installer from the official page.

$ mkdir ./download
$ cp <Downloads>/Xilinx_Unified_*_Lin64.bin ./download
$ cp <Downloads>/petalinux-*-installer.run ./download
$ echo "export UID=$(id -u)" > ./download/.env
$ echo "export GID=$(id -g)" >> ./download/.env
$ vi ./download/.env
    ...
    export XILINXMAIL='<my email>'
    export XILINXLOGIN='<my xilinx password>'

NB: XILINXMAIL and XILINXLOGIN are only needed for container creation. They are not stored inside the container. The entries can be removed from the .env file after installation! The .env is not tracked by git.

Example:

$ tree -a ./download/
    ./download/
    ├── .env
    ├── petalinux-v2023.1-*-installer.run
    └── Xilinx_Unified_2023.1_*_Lin64.bin

    0 directories, 3 files

$ cat ./download/.env
    export UID=105601750
    export GID=105600513
    export XILINXMAIL=my.email@company.com
    export XILINXLOGIN='password123'

After building the image, the folder download can be removed. The installer files will be in the respective build_context folders and can be equally removed.

Build

$ source ./download/.env
$ ./setup.sh

First usage will end, w/o giving a prompt. It should display a message, though.

$ ./setup.sh
<prepares workspace folder>

Usage

$ ./setup.sh
docker$  vivado &
    ...

About

General staged docker container for the Xilinx/Vivado+Petalinux build environment.

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 26.6%Language:Shell 25.5%Language:Vim Script 24.2%Language:Dockerfile 23.7%