-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
45 lines (38 loc) · 1.2 KB
/
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
41
42
43
44
45
# Determine the number of processing cores available
NPROC := $(shell nproc)
###################################################################################################
# CLEANUP COMMANDS
###################################################################################################
mkdocs:
python3 automate_mkdocs.py
gendocs --config mkgendocs.yml
cp *.md docs/
cp -r readme-res/ docs/
cp README.md docs/home.md
mkdocs build --verbose
mkdocs serve
# Clean Docker images and containers
clean:
# This command removes all stopped containers and unused images
docker image prune -a
# Remove all unused Docker images
clean-docker:
# Removes unused Docker images
docker image prune
# Removes all Docker images
docker image prune -a
# Force removal of all images
docker rmi $(docker images -a -q)
clean-docker-volume:
# Removes all Docker volumes
docker volume prune -f
# Fully clean Docker environment
clean-docker-full:
# Removes unused Docker images and containers
docker image prune
docker image prune -a
# Fully clean the Docker system (containers, networks, and images)
docker system prune -a -f
docker volume prune -a
# Force removal of all images
docker rmi $(docker images -a -q)