Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from open-ness/rel_1912_update
Browse files Browse the repository at this point in the history
Remove usage of sudo from hddl Dockerfile (#158)
  • Loading branch information
cjnolan authored Dec 20, 2019
2 parents 3e44cdd + e4eca0e commit 84a3af7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build/hddlservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ RUN useradd -m -s /bin/bash hddl
RUN adduser hddl sudo
RUN echo 'hddl:hddl' | chpasswd
RUN echo "hddl ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers
USER hddl
# Set the current working directory to the cloned ncsdk directory
WORKDIR "/home/hddl/"
RUN sudo usermod -a -G users,video hddl
RUN usermod -a -G users,video hddl

ARG OPENVINO_LINK=http://registrationcenter-download.intel.com/akdlm/irc_nas/15791/l_openvino_toolkit_fpga_p_2019.2.275.tgz

Expand All @@ -44,12 +43,13 @@ RUN cd /home/hddl && \
pwd && ls && \
cd l_openvino_toolkit* && \
sed -i 's/decline/accept/g' silent.cfg && \
sudo -E ./install_openvino_dependencies.sh && \
sudo -E ./install.sh -s silent.cfg && \
./install_openvino_dependencies.sh && \
./install.sh -s silent.cfg && \
rm -rf /tmp/l_openvino_toolkit*
# Edit hddl_autoboot config and hddl_service config in order to stop failing on reset and enabling additional logs for service
RUN sudo -E sed -i '/"abort_if_hw_reset_failed"/ s/true/false/' /opt/intel/openvino_2019.2.275/deployment_tools/inference_engine/external/hddl/config/hddl_autoboot.config && \
sudo -E sed -i '/"device_snapshot_mode"/ s/none/full/' /opt/intel/openvino_2019.2.275/deployment_tools/inference_engine/external/hddl/config/hddl_service.config
RUN sed -i '/"abort_if_hw_reset_failed"/ s/true/false/' /opt/intel/openvino_2019.2.275/deployment_tools/inference_engine/external/hddl/config/hddl_autoboot.config && \
sed -i '/"device_snapshot_mode"/ s/none/full/' /opt/intel/openvino_2019.2.275/deployment_tools/inference_engine/external/hddl/config/hddl_service.config
USER hddl
RUN echo "source /opt/intel/openvino/bin/setupvars.sh" >> ~/.bashrc

FROM hddl-deps-image
Expand Down

0 comments on commit 84a3af7

Please sign in to comment.