diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e74719 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM alpine:edge + +ENV PROJECT_PATH=/basicmac + +RUN mkdir -p $PROJECT_PATH +WORKDIR $PROJECT_PATH + +RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories + +RUN apk add --no-cache \ + ca-certificates \ + make \ + git \ + bash \ + gcc-arm-none-eabi \ + newlib-arm-none-eabi \ + python3 \ + openocd \ + alpine-sdk \ + screen + +RUN pip3 install \ + Click \ + intelhex \ + PyYAML + +ADD tools/openocd/stlink-rules.tgz /etc/udev/rules.d/ + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e4dbc0b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3" +services: + basicmac: + privileged: true + build: + context: . + dockerfile: Dockerfile + volumes: + - ./:/basicmac + - /dev/bus/usb:/dev/bus/usb + - /dev/ttyACM0:/dev/ttyACM0 +