google-coral / examples-camera

Small code snippets that show how to stream camera images to a Coral device.
Apache License 2.0
357 stars 115 forks source link

nativeapp: missing docker #91

Closed jlpoolen closed 2 years ago

jlpoolen commented 2 years ago

Description

Following directions to build nativeapp, ran into:

mendel@coral1:~/coral/examples-camera$ date
Mon 09 May 2022 08:08:40 PM PDT
mendel@coral1:~/coral/examples-camera$ # READEME.md at https://github.com/google-coral/examples-camera/tree/master/nativeapp
mendel@coral1:~/coral/examples-camera$ cd nativeapp/
mendel@coral1:~/coral/examples-camera/nativeapp$ make DOCKER_TARGETS=mendelcam DOCKER_CPUS=aarch64 docker-build
docker build  -t "native-app-debian-buster" \
    --build-arg IMAGE=debian:buster /home/mendel/coral/examples-camera/nativeapp/docker
/bin/bash: docker: command not found
make: *** [/home/mendel/coral/examples-camera/nativeapp/docker/docker.mk:30: docker-image] Error 127
mendel@coral1:~/coral/examples-camera/nativeapp$ 

I tried installing what I thought might be the needed package, but I failed. See below:

mendel@coral1:~/coral/examples-camera$ apt-cache search docker
amazon-ecr-credential-helper - Amazon ECR Credential Helper for Docker
cockpit-docker - Cockpit user interface for Docker containers
debocker - docker-powered package builder for Debian
docker - transitional package
docker-compose - Punctual, lightweight development environments using Docker
docker-doc - Linux container runtime -- documentation
docker-registry - Docker toolset to pack, ship, store, and deliver content
docker.io - Linux container runtime
docker2aci - CLI tool to convert Docker images to ACIs
gnome-shell-extension-hide-veth - hides veth devices typically used by docker and lxc
golang-docker-credential-helpers - native stores to safeguard Docker credentials
golang-docker-dev - Transitional package for golang-github-docker-docker-dev
golang-github-aanand-compose-file-dev - Parser for the Docker compose file format version 3
golang-github-appc-docker2aci-dev - library to convert Docker images to ACIs
golang-github-docker-distribution-dev - Docker toolset to pack, ship, store, and deliver content (source)
golang-github-docker-docker-credential-helpers-dev - native stores to safeguard Docker credentials - library
golang-github-docker-docker-dev - reusable Go packages included with Docker
golang-github-docker-engine-api-dev - client and server components compatible with the Docker engine
golang-github-docker-go-connections-dev - Golang utility package to work with network connections
golang-github-docker-go-dev - Go packages with small patches autogenerated (used for canonical/json)
golang-github-docker-go-events-dev - Composable event distribution for Go
golang-github-docker-go-metrics-dev - Package for metrics collection in Docker projects
golang-github-docker-go-units-dev - parse and print size and time units in human-readable format
golang-github-docker-goamz-dev - Enable Go programs to interact with Amazon Web Services
golang-github-docker-leadership-dev - distributed leader election using docker/libkv
golang-github-docker-libkv-dev - Key/Value store abstraction library
golang-github-docker-libtrust-dev - Primitives for identity and authorization
golang-github-docker-notary-dev - library for running and interacting with trusted collections
golang-github-docker-spdystream-dev - multiplexed stream library using spdy
golang-github-fsouza-go-dockerclient-dev - Docker client library in Go
golang-github-jfrazelle-go-dev - Transitional package for golang-github-docker-go-dev
golang-github-samalba-dockerclient-dev - Docker client library in Go
kdocker - lets you dock any application into the system tray
libnss-docker - nss module for finding Docker containers
openvswitch-common - Open vSwitch common components
python-docker - Python wrapper to access docker.io's control socket
python-dockerpty - Pseudo-tty handler for docker Python client (Python 2.x)
python-dockerpycreds - Python bindings for the docker credentials store API
python3-docker - Python 3 wrapper to access docker.io's control socket
python3-dockerpty - Pseudo-tty handler for docker Python client (Python 3.x)
python3-dockerpycreds - Python3 bindings for the docker credentials store API
rawdns - raw DNS interface to the Docker API
ruby-docker-api - Ruby gem to interact with docker.io remote API
ruby-kitchen-docker - Docker Driver for Test Kitchen
sen - Terminal user interface for docker engine
vim-syntax-docker - Docker container engine - Vim highlighting syntax files
whalebuilder - Debian package builder using Docker
wmdocker - System tray for KDE3/GNOME2 docklet applications
mendel@coral1:~/coral/examples-camera$ sudo apt install docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  wmdocker
The following NEW packages will be installed:
  docker wmdocker
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.2 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mendel-linux.org/apt/eagle eagle/main arm64 wmdocker arm64 1.5-2 [12.7 kB]
Get:2 https://mendel-linux.org/apt/eagle eagle/main arm64 docker all 1.5-2 [2,556 B]
Fetched 15.2 kB in 1s (16.4 kB/s)
Selecting previously unselected package wmdocker.
(Reading database ... 58997 files and directories currently installed.)
Preparing to unpack .../wmdocker_1.5-2_arm64.deb ...
Unpacking wmdocker (1.5-2) ...
Selecting previously unselected package docker.
Preparing to unpack .../archives/docker_1.5-2_all.deb ...
Unpacking docker (1.5-2) ...
Setting up wmdocker (1.5-2) ...
Setting up docker (1.5-2) ...
Processing triggers for man-db (2.8.5-2) ...
mendel@coral1:~/coral/examples-camera$ script examples-camera_nativeapp_may_09_2022_B.script
Script started, file is examples-camera_nativeapp_may_09_2022_B.script
mendel@coral1:~/coral/examples-camera$ cd nativeapp/
mendel@coral1:~/coral/examples-camera/nativeapp$ make DOCKER_TARGETS=mendelcam DOCKER_CPUS=aarch64 docker-build
docker build  -t "native-app-debian-buster" \
    --build-arg IMAGE=debian:buster /home/mendel/coral/examples-camera/nativeapp/docker
/bin/bash: docker: command not found
make: *** [/home/mendel/coral/examples-camera/nativeapp/docker/docker.mk:30: docker-image] Error 127
mendel@coral1:~/coral/examples-camera/nativeapp$

What should I install so docker runs on the Dev Board?

 mendel@coral1:~/coral/examples-camera/nativeapp$ uname -a
 Linux coral1 4.14.98-imx #1 SMP PREEMPT Tue Nov 2 02:55:21 UTC 2021 aarch64 GNU/Linux
 mendel@coral1:~/coral/examples-camera/nativeapp$
Click to expand! ### Issue Type Documentation Bug ### Operating System Mendel Linux ### Coral Device Dev Board ### Other Devices _No response_ ### Programming Language _No response_ ### Relevant Log Output ```shell mendel@coral1:~/coral/examples-camera$ date Mon 09 May 2022 08:08:40 PM PDT mendel@coral1:~/coral/examples-camera$ # READEME.md at https://github.com/google-coral/examples-camera/tree/master/nativeapp mendel@coral1:~/coral/examples-camera$ cd nativeapp/ mendel@coral1:~/coral/examples-camera/nativeapp$ make DOCKER_TARGETS=mendelcam DOCKER_CPUS=aarch64 docker-build docker build -t "native-app-debian-buster" \ --build-arg IMAGE=debian:buster /home/mendel/coral/examples-camera/nativeapp/docker /bin/bash: docker: command not found make: *** [/home/mendel/coral/examples-camera/nativeapp/docker/docker.mk:30: docker-image] Error 127 mendel@coral1:~/coral/examples-camera/nativeapp$ ```
jlpoolen commented 2 years ago

Fixed with:

 sudo apt install docker.io

Then:

 sudo adduser mendel docker
 exit

Then had to log in so group permissions stuck.

jlpoolen commented 2 years ago

Per Issue #92, this project is not intended for installation on the Coral Dev Board. The binaries resulting from this project, a cross-compiler, are to be staged on the Coral Dev Board.

google-coral-bot[bot] commented 2 years ago

Are you satisfied with the resolution of your issue? Yes No