This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: | |
type: dockerfile | |
url: file:///home/pmundt/devel/git/accelerator-base-containers/examples/edgetpu-devicequery/Dockerfile | |
build_context: | |
path: /home/pmundt/devel/git/accelerator-base-containers/examples/edgetpu-devicequery | |
dir_name: edgetpu-devicequery | |
target: | |
registry_ip: localhost:5000 | |
images: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ $# != 1 ] && echo "Usage: $0 input-file.yaml" && exit 1 | |
get_abs_path() { | |
# $1 : relative path | |
[ ! -z $1 ] && echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" | |
} | |
input=$(get_abs_path $1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: | |
type: dockerfile | |
url: file:///path/to/Dockerfile | |
username: my_optional_username | |
password: my_optional_password | |
build_context: | |
dir_name: build_context_dir_name | |
# local build context | |
path: /path/to/local/build/context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: | |
type: dockerfile | |
url: https://raw.githubusercontent.com/adaptant-labs/accelerator-base-containers/master/examples/edgetpu-devicequery/Dockerfile | |
build_context: | |
dir_name: accelerator-base-containers | |
subdir: examples/edgetpu-devicequery | |
url: https://github.com/adaptant-labs/accelerator-base-containers | |
target: | |
registry_ip: localhost:5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM acceleratorbase/edgetpu-std | |
ADD devicequery.py / | |
CMD [ "python3", "devicequery.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from edgetpu.basic import edgetpu_utils | |
version = edgetpu_utils.GetRuntimeVersion() | |
print(version) | |
all_edgetpu_paths = edgetpu_utils.ListEdgeTpuPaths(edgetpu_utils.EDGE_TPU_STATE_NONE) | |
print('Available EdgeTPU Device(s):') | |
print(''.join(all_edgetpu_paths)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: http-echo-rpi4b-ncs2-pod | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: adaptant/http-echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: http-echo-edgetpu-pod | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: adaptant/http-echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: http-echo-gpu-pod | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: adaptant/http-echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: http-echo-service | |
spec: | |
type: NodePort | |
selector: | |
app: http-echo | |
ports: |
NewerOlder