-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathctf.yaml
50 lines (45 loc) · 1.93 KB
/
ctf.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
# This template requires Lima v0.7.0 or later.
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/24.04/release-20240725/ubuntu-24.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:d2377667ea95222330ca2287817403c85178dad397e9fed768a9b4aec79d2a7f"
- location: "https://cloud-images.ubuntu.com/releases/24.04/release-20240725/ubuntu-24.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:2c47dbf04477993ebcd921250b1aab8e582d2fdd03d7576b57d28b6aeeff1427"
# Fallback to the latest release image.
# Hint: run `limactl prune` to invalidate the cache
- location: "https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-arm64.img"
arch: "aarch64"
# containerd is managed by k3s, not by Lima, so the values are set to false here.
containerd:
system: false
user: false
### In case you wish to mount your home directory
# mounts:
#- location: "~"
provision:
- mode: system
script: |
#!/bin/sh
sudo apt-get update; sudo apt-get install -y linux-tools-$(uname -r) libbpf-dev clang vim golang-go git llvm
sudo curl -L https://github.com/isovalent/eBPF-Summit-2024-CTF/raw/main/bin/emperium-$(uname -m) > /tmp/emperium && chmod +x /tmp/emperium
- mode: user
script: |
#!/bin/sh
curl -fsSL https://code-server.dev/install.sh | sh
probes:
- script: |
#!/bin/bash
message: |
Welcome to the eBPF Summit 2024 !!
------
In one terminal you can connect to your running instance with the command:
limactl shell ctf sudo /tmp/emperium
In another terminal connect with
ssh -F $HOME/.lima/ctf/ssh.config -L "*:8082:0.0.0.0:80" lima-ctf
Start code-server with:
PASSWORD=password code-server --bind-addr=0.0.0.0 > /tmp/code.log &
------