You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
300 B
12 lines
300 B
#!/bin/bash
|
|
|
|
IMAGE_NAME=$(basename $(pwd))
|
|
|
|
echo "***"
|
|
echo "*** buildig image with: 'docker build . -t $IMAGE_NAME'"
|
|
docker build . -t $IMAGE_NAME
|
|
|
|
|
|
echo "***"
|
|
echo "*** start image with: 'docker run --rm --device /dev/gpiochip0 $IMAGE_NAME'"
|
|
docker run --rm -it --device /dev/gpiochip0 $IMAGE_NAME
|
|
|