removed Xilinx.lic file from docker image, mount it instead.

This commit is contained in:
Christof Harnischmacher 2018-06-30 18:26:43 +02:00
parent 9bf9bbb64f
commit 52cbda3d2d
4 changed files with 14 additions and 11 deletions

View File

@ -19,9 +19,7 @@ RUN cd /root/install && \
wget "http://127.0.0.1:8765/Xilinx_ISE_DS_14.7_1015_1-2.zip.xz" && \
wget "http://127.0.0.1:8765/Xilinx_ISE_DS_14.7_1015_1-3.zip.xz" && \
wget "http://127.0.0.1:8765/Xilinx_ISE_DS_14.7_1015_1-4.zip.xz" && \
wget "http://127.0.0.1:8765/Xilinx.lic" && \
tar xvf Xilinx_ISE_DS_14.7_1015_1-1.tar && \
TERM=xterm /root/setup && \
cd && \
mv /root/install/Xilinx.lic /root/.Xilinx/ && \
rm -rf /root/setup /root/install

View File

@ -26,13 +26,6 @@ To build the docker image, do the following:
cp ~/Downloads/Xilinx_ISE_DS_14.7_1015_* xilinx-installer/
```
1. Create a free license via the [Licensing Solution Center](https://www.xilinx.com/getlicense)
1. Add license:
```
cp ~/Downloads/Xilinx.lic xilinx-installer/
```
1. Run docker build:
```
./build
@ -60,3 +53,13 @@ To build the docker image, do the following:
[-autoassign] [ise|pa]
user@machine ~/xilinx-ise #
```
1. Create a free license via the [Licensing Solution Center](https://www.xilinx.com/getlicense)
1. Add license to your home dir:
```
mkdir -p $HOME/.Xilinx
cp ~/Downloads/Xilinx.lic $HOME/.Xilinx/
```
The license is mounted into the docker container from `$HOME/.Xilinx/Xilinx.lic` by default. If you like to use another location set up the `XILINX_LIC` environment variable to point to the `Xilinx.lic` file.

2
build
View File

@ -4,7 +4,7 @@ set -e
cd $(dirname $0)
DOCKER_TARGET=docker.i74.de:5000
DOCKER_TARGET=${DOCKER_TARGET:-docker.i74.de:5000}
IMAGE_NAME=xilinx-ise
IMAGE_TAG=14.7

4
xilinx
View File

@ -1,3 +1,5 @@
#!/bin/bash
docker run --rm -it -v $(pwd):/build docker.i74.de:5000/xilinx-ise:latest /usr/local/bin/wrapper "$@"
XILINX_LIC=${XILINX_LIC:-$HOME/.Xilinx/Xilinx.lic}
docker run --rm -it -v $XILINX_LIC:/root/.Xilinx/Xilinx.lic -v $(pwd):/build docker.i74.de:5000/xilinx-ise:latest /usr/local/bin/wrapper "$@"