wip: docker stuff

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/851/head
Gergely Nagy 4 years ago
parent 5f7d50e5ce
commit 736d13bdd9
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -580,6 +580,7 @@ docker_simulator_tests() {
docker run --rm -it \ docker run --rm -it \
-v "${BOARD_HARDWARE_PATH}/keyboardio:/kaleidoscope/hardware/keyboardio" \ -v "${BOARD_HARDWARE_PATH}/keyboardio:/kaleidoscope/hardware/keyboardio" \
-v "$(pwd):/kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope" \ -v "$(pwd):/kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope" \
-e DOCKER_COMMAND="make run-simulator-tests" \
kaleidoscope/simulator kaleidoscope/simulator
} }

@ -17,4 +17,5 @@ RUN /usr/local/bin/arduino-cli core install arduino:avr
VOLUME ["/kaleidoscope/hardware/keyboardio"] VOLUME ["/kaleidoscope/hardware/keyboardio"]
ENV BOARD_HARDWARE_PATH "/kaleidoscope/hardware" ENV BOARD_HARDWARE_PATH "/kaleidoscope/hardware"
WORKDIR /kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope WORKDIR /kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope
ENTRYPOINT ["make", "run-simulator-tests"] COPY docker-entrypoint /kaleidoscope/entry-point
ENTRYPOINT ["/kaleidoscope/entry-point"]

@ -0,0 +1,2 @@
#! /bin/bash
eval "${DOCKER_COMMAND}"
Loading…
Cancel
Save