Merge pull request #903 from keyboardio/docker-simplification

docker: Simplify the Dockerfile a little
pull/909/head
Jesse Vincent 4 years ago committed by GitHub
commit 6321f69d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,5 +16,4 @@ docker build -t kaleidoscope/docker etc
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="$*" \ kaleidoscope/docker -c "$*"
kaleidoscope/docker

@ -17,4 +17,4 @@ 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 ["/bin/bash", "-c", "eval \"${DOCKER_COMMAND}\""] ENTRYPOINT ["/bin/bash"]

Loading…
Cancel
Save