Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker/Dockerfile.demo_vitis_ai
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
# Main Vitis AI docker env
FROM xilinx/vitis-ai:1.4.916

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF7F09730B3F0A4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment describing which key this is, why it needs to be added? Searching for the key finds this stackoverflow post, suggesting that it is related to kitware/cmake key, but it would be good to have that information in the file as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, When I use this Dockerfile to build docker image, I met this error:

Err:7 https://apt.kitware.com/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6AF7F09730B3F0A4

So, I add this
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF7F09730B3F0A4
in dockrfile, and solved this error.


RUN apt-get update --fix-missing

COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
Expand Down
4 changes: 2 additions & 2 deletions docker/bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,12 @@ if [[ "${DOCKER_IMAGE_NAME}" == *"demo_vitis_ai"* && -d "/dev/shm" && -d "/opt/x
)

XCLMGMT_DRIVER="$(find /dev -name xclmgmt\*)"
for DRIVER in "${XCLMGMT_DRIVER}"; do
for DRIVER in ${XCLMGMT_DRIVER}; do
DOCKER_DEVICES+=( --device="${DRIVER}" )
done

RENDER_DRIVER="$(find /dev/dri -name renderD\*)"
for DRIVER in "${RENDER_DRIVER}"; do
for DRIVER in ${RENDER_DRIVER}; do
DOCKER_DEVICES+=( --device="${DRIVER}" )
done
fi
Expand Down
2 changes: 1 addition & 1 deletion docker/install/ubuntu_install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ apt-get install -y python-pip python-dev python3.6 python3.6-dev
rm -f /usr/bin/python3 && ln -s /usr/bin/python3.6 /usr/bin/python3

# Install pip
cd /tmp && wget -q https://bootstrap.pypa.io/get-pip.py && python3.6 get-pip.py
cd /tmp && wget -q https://bootstrap.pypa.io/pip/3.6/get-pip.py && python3.6 get-pip.py

# Pin pip and setuptools versions
pip3 install pip==19.3.1 setuptools==58.4.0