-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 loc) · 825 Bytes
/
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
# Official Python 3.6 image for now
ARG PYTHON_VERSION=3.6
FROM python:${PYTHON_VERSION}
# Add requirements first
RUN mkdir /app
ADD app/requirements.txt /app/
# Set the working directory to /app
WORKDIR /app
#Install iverilog
RUN apt-get update && apt-get -y install iverilog && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Compile myhdl.vpi
RUN make -C /usr/local/share/myhdl/cosimulation/icarus
# Copy the app into the container at /app
ADD app /app
# Move compiled vpi
RUN mv /usr/local/share/myhdl/cosimulation/icarus/myhdl.vpi \
./lib/myhdl.vpi
# Environment variables here
ENV NAME MIPS32
# python path hack TODO: fix this up
ENV PYTHONPATH /app
# Try running the tests
CMD ["python", "test/test_all_modules.py"]