-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·29 lines (25 loc) · 942 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·29 lines (25 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
DISPLAY_POSTFIX="$DISPLAY"
# possible commands:
# /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/ise
# /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/fpga_editor
# /opt/Xilinx/14.7/ISE_DS/common/bin/lin64/xlcm
# /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/impact
cmd="-c /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/ise"
open -a Xquartz
sleep 3
# mac address and hostname are set to get a constant ID for the node specific licenses
docker run -it --rm \
-v "${HOME}/Documents/Xilinx/code:/code" \
-v "${HOME}/Documents/Xilinx/lic:/code/.xilinx" \
-v "${HOME}/.Xauthority:/code/.Xauthority" \
-e "DISPLAY=host.docker.internal${DISPLAY_POSTFIX}" \
-e XILINXD_LICENSE_FILE=/code/.xilinx/Xilinx.lic \
-e HOME=/code \
-e XKEYSYMDB=/usr/share/X11/XKeysymDB \
-u "$(id -u):$(id -g)" \
--entrypoint "/opt/entrypoint.sh" \
--mac-address=02:43:ac:11:ff:fe \
--hostname=xilinx \
--name ise \
xilinx-ise $cmd