-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 754 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 754 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
IMAGE_NAME_BITNUKE=unixvoid/bitnuke
IMAGE_NAME_NGINX=unixvoid/nginx
IMAGE_NAME_REDIS=unixvoid/redis
DOCKER_OPTIONS="--no-cache"
DOCKER_PREFIX=sudo
build:
# build bitnuke
cd bitnuke/ && \
wget https://cryo.unixvoid.com/bin/bitnuke/bitnuke-latest-linux-amd64 && \
chmod +x bitnuke* && \
$(DOCKER_PREFIX) docker build $(DOCKER_OPTIONS) -t $(IMAGE_NAME_BITNUKE) . && \
cd ../nginx/ && \
$(DOCKER_PREFIX) docker build $(DOCKER_OPTIONS) -t $(IMAGE_NAME_NGINX) . && \
cd ../redis/ && \
wget https://cryo.unixvoid.com/bin/redis/filesystem/rootfs.tar.gz && \
$(DOCKER_PREFIX) docker build $(DOCKER_OPTIONS) -t $(IMAGE_NAME_REDIS) .
compose:
$(DOCKER_PREFIX) docker-compose up
clean:
rm -f bitnuke/bitnuke-latest*
rm -f redis/rootfs.tar.gz