-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu_arm.yaml
62 lines (53 loc) · 2.38 KB
/
ubuntu_arm.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
arch: "aarch64"
images:
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20230518/ubuntu-22.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:afb820a9260217fd4c5c5aacfbca74aa7cd2418e830dc64ca2e0642b94aab161"
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20230518/ubuntu-22.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:b47f8be40b5f91c37874817c3324a72cea1982a5fdad031d9b648c9623c3b4e2"
# Fallback to the latest release image.
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-arm64.img"
arch: "aarch64"
memory: "12GiB"
cpus: 12
disk: "64GiB"
ssh:
localPort: 4444
provision:
- mode: system
script: |
#!/bin/bash
set -eux -o pipefail
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install --yes vim python3 python3-pip
apt-get install --yes apt-transport-https ca-certificates curl clang jq libzstd-dev
apt-get install --yes libelf-dev libpcap-dev libbfd-dev binutils-dev build-essential make
apt-get install --yes bsdutils
apt-get install --yes build-essential
apt-get install --yes pkgconf
apt-get install --yes zlib1g-dev libelf-dev
apt-get install --yes protobuf-compiler
apt-get install --yes libssl-dev
apt-get install --yes net-tools
apt-get install --yes iperf3
apt-get install --yes cmake
apt-get install --yes bpfcc-tools bpftrace
apt-get install --yes linux-tools-common linux-tools-generic
apt-get install --yes linux-headers-$(uname -r) linux-tools-$(uname -r)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
/root/.cargo/bin/rustup toolchain install nightly --component rust-src
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh 19 all
rm ./llvm.sh
LLVM_SYS_191_PREFIX=/usr/lib/llvm-19 /root/.cargo/bin/cargo install --no-default-features bpf-linker
- mode: user
script: |
#!/bin/bash
set -eux -o pipefail
sudo cp /home/$(whoami).linux/.ssh/authorized_keys /root/.ssh/authorized_keys