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
417 B
12 lines
417 B
#!/bin/bash
|
|
|
|
IMAGE_NAME=$(basename $(pwd))
|
|
|
|
echo "***"
|
|
echo "*** building image with: 'docker build . -t $IMAGE_NAME'"
|
|
|
|
docker build . -t $IMAGE_NAME
|
|
echo "***"
|
|
echo "*** after starting the image, execute (within the container): 'gpioset 0 20=1' to switch on yellow LED"
|
|
echo "*** starting image with: 'docker run --rm -it --device=/dev/gpiochip0 $IMAGE_NAME'"
|
|
docker run --rm -it --device=/dev/gpiochip0 $IMAGE_NAME
|
|
|