-
Notifications
You must be signed in to change notification settings - Fork 171
/
Dockerfile
52 lines (44 loc) · 1.37 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Use the official image as a parent image
FROM ubuntu:22.04
USER root
# add user with uid:gid 1000:1000 to match host system
RUN groupadd -g 1000 jenkins
RUN useradd -r -u 1000 -g 1000 -d /var/jenkins_home jenkins
# Override interactive installations and install dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
bison \
build-essential \
clang \
cmake \
curl \
dfu-util \
flex \
gawk \
gcc-arm-none-eabi \
git \
jq \
libboost-all-dev \
libeigen3-dev \
libreadline-dev \
openocd \
pkg-config \
python3 \
python3-pip \
python3-venv \
tcl \
tcl-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
ARG CACHEBUST=1
RUN curl -L $(curl -s "https://api.github.com/repos/YosysHQ/oss-cad-suite-build/releases/latest" \
| jq --raw-output '.assets[].browser_download_url' | grep "linux-x64") --output oss-cad-suite-linux-x64.tgz \
&& tar zxvf oss-cad-suite-linux-x64.tgz
RUN pip3 install git+https://github.com/CapableRobot/CapableRobot_USBHub_Driver --upgrade
USER jenkins
# add to PATH for pip/source package installations
ENV PATH="/root/.local/bin:/oss-cad-suite/bin:$PATH"
# add the Cynthion board rev
ENV LUNA_PLATFORM="cynthion.gateware.platform:CynthionPlatformRev0D4"
# Inform Docker that the container is listening on port 8080 at runtime
EXPOSE 8080