Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
71 lines (59 loc) · 2.04 KB
/
Copy pathDockerfile
File metadata and controls
71 lines (59 loc) · 2.04 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# syntax = docker/dockerfile:experimental
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
# When DOCKER_BUILDKIT=1 is supported:
# RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
# RUN --mount=type=cache,target=/var/cache/apt,id=apt-cache \
# --mount=type=cache,target=/var/lib/apt,id=apt-lib \
RUN \
\
apt-get update \
&& apt-get install --assume-yes --no-install-recommends \
awscli \
bc \
curl \
gcc \
# required by sdaccel_setup.sh \
git \
graphviz \
groff \
golang-go \
jq \
less \
libgtk2.0-dev \
make \
python3 \
python3-yaml \
rsync \
# required by sdaccel_setup.sh \
sudo \
time \
zip \
unzip \
# required by sdaccel_setup.sh \
lsb-release
# Needed for sdaccel_setup.sh
RUN mkdir -p /etc/OpenCL/vendors
COPY build/reco /opt/sdaccel-builder
COPY aws/*.sh /opt/
ENV USER=root AWS_DEFAULT_REGION=us-east-1
WORKDIR /mnt
COPY examples /mnt/examples
# Vivado doesn't support dash as /bin/sh, it expects bash.
RUN echo "dash dash/sh boolean false" | debconf-set-selections \
&& dpkg-reconfigure dash
# Workaround for Vivado's compiler not looking in the right place...
RUN find /usr/include/x86_64-linux-gnu/ -type d -exec bash -c 'mkdir -p /usr/include/${1#/usr/include/x86_64-linux-gnu/}' -- {} \; \
&& find /usr/include/x86_64-linux-gnu/ -iname '*.h' -exec bash -c 'ln -sf $1 /usr/include/${1#/usr/include/x86_64-linux-gnu/}' -- {} \;
# Configurable.
ENV RIO_AWS_FPGA_VERSION=v1.4.5
# Clone aws-fpga to /opt/aws-fpga. This is needed so that we can source
# sdaccel_setup.sh, which expects a git clone to be available.
# Sourcing this script is required in order to run the AFI generation tools.
RUN git clone \
--recursive \
--shallow-submodules \
--depth=1 \
--branch=${RIO_AWS_FPGA_VERSION} \
https://github.com/aws/aws-fpga \
/opt/aws-fpga