Created
May 3, 2021 08:55
-
-
Save kovagoz/f114e59c4d39f45271a5c23b55273c7f to your computer and use it in GitHub Desktop.
Setup docker-machine for the Go Board
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/bash | |
set -e | |
# Create the virtual machine (VM) | |
docker-machine create -d virtualbox default | |
# VM must be stopped before USB configuration | |
docker-machine stop | |
# Enable USB (OHCI!) | |
vboxmanage modifyvm default --usb on | |
# Start the VM again | |
docker-machine start | |
# Make the Go Board automatically accessible in VM | |
vboxmanage usbfilter add 0 --target default --name ftdi --vendorid 0x0403 --productid 0x6010 | |
# Load the FTDI kernel module | |
docker-machine ssh default "sudo modprobe ftdi_sio" | |
# Setup docker environment variables for the CLI client | |
eval $(docker-machine env default) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment