Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Anduril Docker Dev files
version: "3.8"
services:
a2:
build: .
volumes:
- ./a2:/opt:cached
stdin_open: true
tty: true
FROM alpine:3.15 AS base
RUN apk --update add --no-cache \
build-base \
gcc-avr \
avr-libc \
binutils-avr \
avrdude \
breezy \
make \
vim \
perl \
bash \
&& rm -rf /usr/share/man /tmp/* /var/cache/apk/*
RUN apk add --no-cache --virtual .at_deps \
curl \
&& curl http://packs.download.atmel.com/Atmel.ATtiny_DFP.1.10.348.atpack -o ATtinyDL.zip \
&& unzip ATtinyDL.zip -d /root/ATtinyDL \
&& rm ATtinyDL.zip \
&& apk del .at_deps
ENV ATTINY_DFP=/root/ATtinyDL
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/sh
if [ -z "$(ls -A /opt)" ]; then
cd /opt
brz branch https://code.launchpad.net/~toykeeper/flashlight-firmware/anduril2
cd ~
fi
if [ ! -d /root/anduril2 ]; then
ln -s /opt/anduril2 /root
fi
cd ~
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment