Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maker #27

Merged
merged 3 commits into from
Nov 11, 2019
Merged

Maker #27

merged 3 commits into from
Nov 11, 2019

Conversation

byarbrough
Copy link
Owner

Manual testing with makefile on CPU works. Will move to Raspberry Pi after this merge.

Close #15
Began with dreaded cv2 not found. Having earned agony earlier in this project,
I knew that the problem was most likely with running setupvars and init OpenVINO env.

Log in with a shell (as root, which prompted the run_root addition) and running
'source /opt/intel/openvino/bin/setupvars.sh' allowed me to then
run the classification sample. Actually, I had to unearth some dependencies first,
such as libsm6, libgtk... all the ones now included in the first RUN in Dockerfile.

The 'source' command in bash essentially makes variables and things set when the script
is executed available to later processes. Simply calling setupvars.sh didn't solve the
problem because then nothing was changed when I ran inference. However, source is not
included in sh, which is Docker default. Fortunately, '.' served enough of the same
purpose.

I opted to switch to . instead of using SHELL in the Dockerfile to switch the default.

I also added a '-l' to the CMD. This is to make sure that .bashrc gets sourced when
going into an interactive shell.
fatal: Invalid path '/opt/intel/openvino_2019.2.242/bin/setupvars.sh allowed me to then
run the classification sample. Actually, I had to unearth some dependencies first,
such as libsm6, libgtk... all the ones now included in the first RUN in Dockerfile.

The source command in bash essentially makes variables and things set when the script
is executed available to later processes. Simply calling setupvars.sh didn't solve the
problem because then nothing was changed when I ran inference. However, source is not
included in sh, which is Docker default. Fortunately, . served enough of the same
purpose.

I opted to switch to . instead of using SHELL in the Dockerfile to switch the default.

I also added a -l to the CMD. This is to make sure that .bashrc gets sourced when
going into an interactive shell.
This reduces the size of docker context, which reduces build times.
@byarbrough byarbrough merged commit 4fdd5f6 into master Nov 11, 2019
@byarbrough
Copy link
Owner Author

Close #25

@byarbrough byarbrough deleted the maker branch November 11, 2019 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant