-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77ff8e6
commit 6189308
Showing
1 changed file
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
FROM python:3 | ||
FROM ubuntu:latest | ||
|
||
ADD requirements.txt / | ||
WORKDIR /home | ||
RUN apt update && apt-get install | ||
|
||
RUN pip install -r requirements.txt | ||
# install python3.12 | ||
RUN apt install -y python3 python3-pip python3-venv python3-tk | ||
|
||
ENV WORKSPACE=/workspace | ||
RUN mkdir -p ${WORKSPACE} | ||
VOLUME ${WORKSPACE} | ||
WORKDIR ${WORKSPACE} | ||
# setup virtaul environment | ||
ENV VIRTUAL_ENV="/venv" | ||
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
ENV FAB_ROOT=/home | ||
RUN python3 -m venv $VIRTUAL_ENV | ||
|
||
COPY . /workspace/ | ||
# install requirements | ||
COPY . . | ||
RUN python3 -m pip install pip --upgrade | ||
RUN pip3 install -r requirements.txt | ||
|
||
CMD [ "/bin/bash"] | ||
# install yosys | ||
RUN apt install -y yosys | ||
|
||
#install nextpnr | ||
RUN apt install -y nextpnr-generic | ||
|
||
#install ghdl | ||
RUN apt install -y ghdl | ||
|
||
# install GTKwave | ||
RUN apt install -y gtkwave | ||
|
||
# install icarus | ||
RUN apt install -y iverilog |