-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 844 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
# Project namespace: maiorsi by default
NAMESPACE ?= maiorsi
# Docker registry
REGISTRY ?= ghcr.io
IMAGE ?= ${REGISTRY}/${NAMESPACE}/ldap-test-server:latest
# Make sure recipes are always executed
.PHONY: build push clean
# Build and tag Docker image
build:
@echo "Building Docker Images ..."
docker build -t ${IMAGE} .
# Docker compose
up:
@echo "Docker compose up ..."
docker-compose up --build --force-recreate --detach
down:
@echo "Docker compose down ..."
docker-compose down
# Push Docker image
#push:
# @echo "Pushing Docker images ..."
# docker push ${IMAGE}
#release: build push clean
# Clean up the created images locally and remove rvm gemset
clean:
@echo "Cleaning Docker images ..."
docker rmi -f ${IMAGE}
purge:
@echo "Cleaning Docker volumes ..."
docker volume rm ldap-test-server_config ldap-test-server_data