forked from stv0g/xilinx-hw-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 1.14 KB
/
Dockerfile
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
30
31
32
33
34
35
FROM ubuntu:20.04 AS installer
ARG INSTALLER="Xilinx_Vivado_Lab_Lin_2021.2_1021_0703.tar.gz"
RUN mkdir /xilinx
WORKDIR /xilinx
RUN uname -a
ADD Xilinx_Vivado_Lab_Lin_2021.2_1021_0703.tar.gz /xilinx/
RUN cd Xilinx_Vivado_* && \
./xsetup \
--agree XilinxEULA,3rdPartyEULA \
--batch Install \
--edition "Vivado Lab Edition (Standalone)" \
--location /installed
FROM ubuntu:20.04
RUN mkdir -p /xilinx/{bin,lib}
RUN echo /xilinx/lib/ >> /etc/ld.so.conf
COPY --from=installer /installed/Vivado_Lab/2021.2/bin/unwrapped/lnx64.o/hw_server /xilinx/bin/
COPY --from=installer /installed/Vivado_Lab/2021.2/lib/lnx64.o/libxftdi.so \
/installed/Vivado_Lab/2021.2/lib/lnx64.o/libdpcomm.so.2 \
/installed/Vivado_Lab/2021.2/lib/lnx64.o/libdjtg.so.2 \
/installed/Vivado_Lab/2021.2/lib/lnx64.o/libdftd2xx.so.1 \
/installed/Vivado_Lab/2021.2/lib/lnx64.o/libdabs.so.2 \
/installed/Vivado_Lab/2021.2/lib/lnx64.o/libdmgr.so.2 \
/installed/Vivado_Lab/2021.2/lib/lnx64.o/libusb-1.0.so.0 /xilinx/lib/
RUN ldconfig
CMD ["/xilinx/bin/hw_server"]