https://github.com/mithro/docker-xilinx
Package Xilinx FPGA tools into docker containers, useful for CI situations.
https://github.com/mithro/docker-xilinx
Last synced: 3 months ago
JSON representation
Package Xilinx FPGA tools into docker containers, useful for CI situations.
- Host: GitHub
- URL: https://github.com/mithro/docker-xilinx
- Owner: mithro
- License: apache-2.0
- Created: 2014-10-18T02:37:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-20T11:49:45.000Z (over 11 years ago)
- Last Synced: 2025-04-04T22:45:53.627Z (about 1 year ago)
- Language: Shell
- Size: 133 KB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xilinx-docker
Dockerize Xilinx FPGA tools to allow "throw away" environment for doing CI style builds.
# Running the container
```bash
docker run -t \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY \
\
-v /home/tansell/.Xilinx:/home/xilinx/.Xilinx \
\
-i mithro/xilinx-ise:14.7-1015-base \
/bin/bash
```
# Larger Docker Containers
Add "--storage-opt dm.basesize=30G" to your /etc/default/docker file. Then stop
docker, **remove all your docker images** and start docker again.
This option **won't** take effect until you remove all your images and start
again, sorry about that :(.
```bash
DOCKER_OPTS="${DOCKER_OPTS} --storage-driver=devicemapper --storage-opt dm.basesize=30G"
```
# Getting the GUI tools working
Allow X connections from anywhere with `xhost +` on container.
Run docker container with the following extra arguments;
* `-v /tmp/.X11-unix:/tmp/.X11-unix` - Maps the X11 sockets into the docker container.
* `-e DISPLAY=$DISPLAY` - Set up the $DISPLAY environment variable.
See http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/
# License stuff
`-v /home/$USER/.Xilinx:/home/xilinx/.Xilinx` - Maps the Xilinx license files into the docker container.
- [ ] FIXME: How to deal with docker MAC address stuff?
# Mapping USB into docker
`--device=/dev/bus/usb/001/001`