-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (32 loc) · 893 Bytes
/
Makefile
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
# Variables
COMPOSE=docker-compose
# Targets
build:
@echo "Building Docker images..."
@$(COMPOSE) build
@echo "Build complete."
up:
@echo "Bringing up services..."
@$(COMPOSE) up -d
@echo "Services are up and running."
keygen:
@echo "Generating AES 128-CBC Keys if they dont exist..."
@python3 keygen.py
@echo "Encryption Keys generated."
down:
@echo "Shutting down services..."
@$(COMPOSE) down
@echo "Services are down."
sync:
@echo "Syncing code with upstream and restarting services..."
@git pull
@echo "Sync complete."
setup:
@echo "Setting up the host OS..."
@cd scripts && chmod +x setup-host.sh && ./setup-host.sh
@echo "Setup complete! now use make up."
cd:
@echo "Setting Up Kube-o-Matic continious Delivery integration..."
@$(COMPOSE) -f cd-docker-compose.yml up -d
@echo "Kube-o-matic Deployed successfully"
.PHONY: build up down sync setup cd keygen