-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG REPO=RMIT-AURC-Team/AuroraV-Avionics-lib
FROM archlinux:base-devel
# Perform initial system update
RUN pacman -Syu --noconfirm
# Install base requirements for development
RUN pacman -S --noconfirm arm-none-eabi-gcc arm-none-eabi-newlib cmake git
# Install extra packages
RUN pacman -S --noconfirm wget # Required for pulling JLink GDB server
RUN pacman -S --noconfirm neovim # Include neovim for editing
# Pull JLink GDB server package
RUN wget --post-data "accept_license_agreement=accepted" https://www.segger.com/downloads/jlink/JLink_Linux_V812b_x86_64.tgz
# Unpack and remove tarball
RUN tar -xzf JLink_Linux_V812b_x86_64.tgz && rm -r JLink_Linux_V812b_x86_64.tgz
# Add to path
ENV PATH="/JLink_Linux_V812b_x86_64:${PATH}"
# Copy over repo files
COPY . /root/Australis-Avionics-firmware/
# Pull latest libavionics and add to Lib
RUN curl -sL $(curl -s https://api.github.com/repos/${REPO}/releases/latest \
| grep "http.*libavionics.*zip" | awk '{print $2}' | sed 's|[\"\,]*||g') | bsdtar -xvf- -C /root/Australis-Avionics-firmware/Australis-Avionics/Lib