Anduril Docker Dev files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
a2: | |
build: . | |
volumes: | |
- ./a2:/opt:cached | |
stdin_open: true | |
tty: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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