-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (36 loc) · 1.29 KB
/
Makefile
File metadata and controls
42 lines (36 loc) · 1.29 KB
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
default: build-exeuntu
ARCH := $(shell uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
build-shelley: ## Download latest shelley binary from GitHub releases
@echo "Downloading latest shelley for linux_$(ARCH)..."
@curl -fsSL https://api.github.com/repos/boldsoftware/shelley/releases/latest \
| jq -r '.assets[] | select(.name == "shelley_linux_$(ARCH)") | .browser_download_url' \
| xargs curl -fsSL -o shelley
@chmod +x shelley
@echo "✓ Downloaded shelley"
build-exeuntu: build-shelley ## Build the exeuntu Docker image locally
@echo "Building exeuntu Docker image..."
docker build -t ghcr.io/boldsoftware/exeuntu:latest .
@echo "✓ Image built locally as ghcr.io/boldsoftware/exeuntu:latest"
build: build-exeuntu
run: build-exeuntu
docker run -it \
--cap-add=ALL \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
--cgroupns private \
--tmpfs /run \
--tmpfs /run/lock \
--tmpfs /tmp \
--tmpfs /sys/fs/cgroup:rw \
ghcr.io/boldsoftware/exeuntu:latest
run-bash: build-exeuntu
docker run -it \
--cap-add=ALL \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
--cgroupns private \
--tmpfs /run \
--tmpfs /run/lock \
--tmpfs /tmp \
--tmpfs /sys/fs/cgroup:rw \
ghcr.io/boldsoftware/exeuntu:latest bash