-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 830 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 830 Bytes
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
IMAGE ?= yeet-try
# Pick your poison
HOSTNAMES := darling hilshire goat pirate the-bear noodle dopey ace \
penguin blacky mopey quick-save snake donut weasel tooth \
wilshire shadow ghost saucy prancer grumpy sleepy hambone
RANDOM_HOST = $(shell echo "$(HOSTNAMES)" | tr ' ' '\n' | grep -v '^$$' | \
awk 'BEGIN{srand()} {a[NR]=$$0} END{print a[int(rand()*NR)+1]}')
.PHONY: all build run banger
all: build run
banger:
@./opt/scripts/banger/manage.sh
build:
docker build --build-arg YEET_CACHEBUST=$$(date +%s) -t $(IMAGE) . > /dev/null
run:
docker run --rm -it --hostname $(RANDOM_HOST) \
--label "yeet.hostname=$(RANDOM_HOST)" \
-e TERM=xterm-256color \
-e COLORTERM=truecolor \
-e FORCE_COLOR=1 \
-e CLICOLOR=1 \
-e CLICOLOR_FORCE=1 \
$(IMAGE)