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.
21 lines
643 B
21 lines
643 B
4 years ago
|
#! /bin/sh
|
||
|
## -*- mode: sh -*-
|
||
|
set -e
|
||
|
|
||
|
uname_S=$(uname -s 2>/dev/null || echo not)
|
||
|
|
||
|
ARDUINO_LOCAL_LIB_PATH="${ARDUINO_LOCAL_LIB_PATH:-${HOME}/Arduino}"
|
||
|
|
||
|
if [ "${uname_S}" = "Darwin" ]; then
|
||
|
ARDUINO_LOCAL_LIB_PATH="${ARDUINO_LOCAL_LIB_PATH:-${HOME}/Documents/Arduino}"
|
||
|
fi
|
||
|
|
||
|
BOARD_HARDWARE_PATH="${BOARD_HARDWARE_PATH:-${ARDUINO_LOCAL_LIB_PATH}/hardware}"
|
||
|
|
||
|
docker build -t kaleidoscope/docker etc
|
||
|
docker run --rm -it \
|
||
|
-v "${BOARD_HARDWARE_PATH}/keyboardio:/kaleidoscope/hardware/keyboardio" \
|
||
|
-v "$(pwd):/kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope" \
|
||
|
-e DOCKER_COMMAND="$*" \
|
||
|
kaleidoscope/docker
|