2021-01-20 15:20:12 -06:00
|
|
|
FROM ghcr.io/lnis-uofu/openfpga-env
|
2021-01-29 12:16:57 -06:00
|
|
|
RUN mkdir -p /opt/openfpga
|
2021-01-22 17:27:55 -06:00
|
|
|
WORKDIR /opt/openfpga
|
2021-01-29 12:16:57 -06:00
|
|
|
COPY . /opt/openfpga
|
2022-08-25 16:42:53 -05:00
|
|
|
RUN chmod +x build/vtr-verilog-to-routing/abc/abc build/vtr-verilog-to-routing/ace2/ace build/openfpga/openfpga build/vtr-verilog-to-routing/vpr/vpr
|
2023-02-04 15:18:42 -06:00
|
|
|
RUN chmod +x build/yosys/bin/yosys build/yosys/bin/yosys-abc build/yosys/bin/yosys-config build/yosys/bin/yosys-filterlib build/yosys/bin/yosys-smtbmc
|
|
|
|
ENV PATH="/opt/openfpga/build/openfpga:/opt/openfpga/build/yosys/bin:${PATH}"
|
2022-08-25 16:42:53 -05:00
|
|
|
ENV PATH="/opt/openfpga/build/vtr-verilog-to-routing/ace2:/opt/openfpga/build/vtr-verilog-to-routing/abc:/opt/openfpga/build/vtr-verilog-to-routing/vpr:${PATH}"
|
2021-01-29 12:16:57 -06:00
|
|
|
ENV OPENFPGA_PATH="/opt/openfpga"
|
2022-05-14 23:34:35 -05:00
|
|
|
|
|
|
|
ARG NB_USER=openfpga_user
|
|
|
|
ARG NB_UID=1000
|
|
|
|
ENV USER ${NB_USER}
|
|
|
|
ENV NB_UID ${NB_UID}
|
|
|
|
ENV HOME /home/${NB_USER}
|
|
|
|
|
|
|
|
RUN adduser --disabled-password \
|
|
|
|
--gecos "Default user" \
|
|
|
|
--uid ${NB_UID} \
|
|
|
|
${NB_USER}
|
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN chown -R ${NB_UID} ${HOME}
|
|
|
|
RUN chmod -R +r /opt/openfpga/
|
2022-05-23 11:08:42 -05:00
|
|
|
RUN git config --global --add safe.directory .
|
2022-05-14 23:34:35 -05:00
|
|
|
USER ${NB_USER}
|
|
|
|
|
|
|
|
WORKDIR ${HOME}
|