diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..54310c0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,24 @@ +**/.classpath +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/azds.yaml +**/bin +**/charts +**/docker-compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8889ef2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# GCC support can be specified at major, minor, or micro version +# (e.g. 8, 8.2 or 8.2.0). +# See https://hub.docker.com/r/library/gcc/ for all supported GCC +# tags from Docker Hub. +# See https://docs.docker.com/samples/library/gcc/ for more on how to use this image +FROM gcc:latest as dev + +# These commands copy your files into the specified directory in the image +# and set that as the working location +COPY SDK/nRF5_SDK_17.0.2_d674dde /usr/src/myapp +WORKDIR /usr/src/myapp/examples/ble_peripheral/ble_app_blinky + +# This command compiles your app using GCC, adjust for your source code +# RUN g++ -o myapp main.cpp + +# This command runs your application, comment out this line to compile only +# CMD ["./myapp"] + +LABEL Name=nordic-gcc Version=0.0.1 diff --git a/README.md b/README.md index cf3f542..92a45fc 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,11 @@ This is a project aimed to create a HID dongle for my Filco Minila bluetooth keyboard. I love this keyboard, but it cannot be used during BIOS, and will have some connection issue. I would love to create a HID dongle for this keyboard only. This dongle is created out of nRF52840 dongle from nordic + +Reference: +* [The nRF52840 USB Dongle Tutorial (Part 1)](https://www.novelbits.io/nrf52840-usb-dongle-tutorial-1/) +* [nRF52840 Dongle Programming Tutorial](https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial) +* [Nordic Semiconductor: Programming the nRF52840 Dongle](https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nc_programmer%2FUG%2Fnrf_connect_programmer%2Fncp_programming_dongle.html) +* [Docker for nRF52840](https://hub.docker.com/r/hardwario/gcc-arm-embedded-nrf52) + +Update on 2020-02-14: This project is currently paused. As testing shows that nRF52840 USB Dongle cannot detect the Filco minila air. So, I have to go back to raspberry pi zero w. \ No newline at end of file diff --git a/docker-compose.debug.yml b/docker-compose.debug.yml new file mode 100644 index 0000000..5b83dcf --- /dev/null +++ b/docker-compose.debug.yml @@ -0,0 +1,8 @@ +version: '3.4' + +services: + hidkeyboarddongle: + image: hidkeyboarddongle + build: + context: . + dockerfile: ./Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..28f959d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3.4' + +services: + nordic-gcc: + container_name: nordic-gcc + # image: hidkeyboarddongle + build: + context: . + dockerfile: ./Dockerfile + entrypoint: /bin/sh + working_dir: /usr/ + stdin_open: true + tty: true