-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt at building arm64 docker images
- Loading branch information
1 parent
a53a963
commit 2a44519
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM debian:bookworm | ||
MAINTAINER Jonathan Bennett | ||
SHELL ["/bin/bash", "-c"] | ||
RUN <<EOF | ||
useradd ubuntu -m -s /bin/bash | ||
usermod -a -G sudo ubuntu | ||
apt update | ||
apt upgrade -y | ||
apt install curl pip git python3-venv pkg-config libicu-dev sudo podman zip jq wget -y | ||
sed -i /etc/sudoers -re 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' | ||
ln -s /usr/bin/podman /usr/bin/docker | ||
EOF | ||
|
||
WORKDIR /home/ubuntu | ||
USER ubuntu | ||
|
||
RUN <<EOF | ||
cd /home/ubuntu | ||
mkdir runner | ||
latest_runner_version=$(curl -I -v -s https://github.com/actions/runner/releases/latest 2>&1 | perl -ne 'next unless s/^< location: //; s{.*/v}{}; s/\s+//; print') | ||
curl -sL "https://github.com/actions/runner/releases/download/v${latest_runner_version}/actions-runner-linux-arm64-${latest_runner_version}.tar.gz" | tar xzvC ./runner/ | ||
sudo ./runner/bin/installdependencies.sh | ||
python3 -m venv ./ | ||
source ./bin/activate | ||
pip install -U platformio adafruit-nrfutil | ||
pip install -U meshtastic --pre | ||
EOF |