Skip to content
Snippets Groups Projects
Commit dc69feee authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Docker] download PYNQ board files in entrypoint script, add .gitignore

parent 88b46c0c
No related branches found
No related tags found
No related merge requests found
......@@ -81,3 +81,6 @@ MANIFEST
# SSH key dir mounted into Docker
/ssh_keys/
# PYNQ board files
/board_files/
......@@ -37,7 +37,7 @@ RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev
RUN apt-get install -y verilator zsh
RUN apt-get -y install sshpass
RUN apt-get -y install sshpass wget unzip
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
# cloning dependency repos
......
......@@ -43,7 +43,7 @@ RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev
RUN apt-get install -y verilator nano zsh rsync
RUN apt-get -y install sshpass
RUN apt-get -y install sshpass wget unzip
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
COPY requirements.txt .
......
......@@ -57,4 +57,19 @@ if [ ! -z "$VITIS_PATH" ];then
export XILINX_VITIS=$VITIS_PATH
source $VITIS_PATH/settings64.sh
fi
# download PYNQ board files if not already there
if [ ! -d "/workspace/finn/board_files" ]; then
gecho "Downloading PYNQ board files for Vivado"
wget -q https://github.com/cathalmccabe/pynq-z1_board_files/raw/master/pynq-z1.zip
wget -q https://d2m32eurp10079.cloudfront.net/Download/pynq-z2.zip
unzip -q pynq-z1.zip
unzip -q pynq-z2.zip
mkdir /workspace/finn/board_files
mv pynq-z1/ board_files/
mv pynq-z2/ board_files/
rm pynq-z1.zip
rm pynq-z2.zip
fi
exec "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment