Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
framps committed Dec 10, 2023
1 parent 342718e commit 14133a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker/raspiDocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ initialize) ## start vm in detached mode

interactive) ## start in interactive mode
# docker run -it --name $CONTAINER_NAME $IMAGE_NAME
# docker volume create nfs
docker container rm $CONTAINER_NAME
#docker run -it --name $CONTAINER_NAME -v $(pwd)/2020-02-13-raspbian-buster-lite.img:/sdcard/filesystem.img -v nfs:/nfs $IMAGE_NAME
docker volume create nfs
#docker container rm $CONTAINER_NAME
docker run -it --name $CONTAINER_NAME -v $(pwd)/2020-02-13-raspbian-buster-lite.img:/sdcard/filesystem.img -v nfs:/nfs $IMAGE_NAME
docker run -it --name $CONTAINER_NAME -v $(pwd)/2020-02-13-raspbian-buster-lite.img:/sdcard/filesystem.img $IMAGE_NAME
;;

Expand All @@ -63,6 +63,10 @@ start) ## start raspberrypi
echo "Raspberrypi ssh access: ssh -p 5022 pi@$containerIP"
;;

inspect) ## Open bash shell in container
docker exec -it Raspberry /bin/sh
;;

*) ##help
echo "Possible commands"
grep -E '^[a-zA-Z_-]+\).*?## .*$$' $ME |sort | awk 'BEGIN {FS = ").*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $1, $2}'
Expand Down

0 comments on commit 14133a1

Please sign in to comment.