Skip to content

Instantly share code, notes, and snippets.

@darkporpoise
Created February 22, 2022 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkporpoise/7bb3ec560c8d2aba5ac5489b76c8d327 to your computer and use it in GitHub Desktop.
Save darkporpoise/7bb3ec560c8d2aba5ac5489b76c8d327 to your computer and use it in GitHub Desktop.
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