Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/

12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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