- suppress docs/

- clean up and modify readme
- launch docker
This commit is contained in:
asus
2023-09-03 16:39:41 +02:00
parent c12b121288
commit dbf2e27d89
6 changed files with 106 additions and 238 deletions

View File

@@ -25,9 +25,7 @@ RESET = "\e[0m"
COMPOSE = ./srcs/docker-compose.yml
VOLUMES_D = $(shell grep "^HOST_VOLUME" ./srcs/.env | cut -d "=" -f 2)
#VOLUME_PATH = $(shell grep "^HOST_VOLUME" ./srcs/.env | cut -d "=" -f 2)
#VOLUMES_D = $(VOLUME_PATH)/wp_volume \
# $(VOLUME_PATH)/db_volume
WP_URL = $(shell grep "WP_URL" ./srcs/.env | cut -d "=" -f 2)
# list of running containers, see : https://stackoverflow.com/questions/10024279/how-to-use-shell-commands-in-makefile
@@ -47,13 +45,13 @@ build:
- if ! grep "127.0.0.1 $(WP_URL)" /etc/hosts 2> /dev/null; then \
bash -c 'echo -e "\n# adding for inception (you can delete it)\n127.0.0.1 $(WP_URL)" >> /etc/hosts'; \
fi
docker-compose -f $(COMPOSE) build
docker compose -f $(COMPOSE) build
up:
docker-compose -f $(COMPOSE) up -d
docker compose -f $(COMPOSE) up -d
down:
docker-compose -f $(COMPOSE) down
docker compose -f $(COMPOSE) down
# list images, containers, volumes
list:
@@ -85,10 +83,6 @@ fclean: fclean-images fclean-volumes
re: fclean all
# !! remove everything everything
erase_v:
- rm -rf $(VOLUMES_D)
new: erase_v re
.PHONY : all $(VOLUMES_D) build up list clean fclean re erase_v new
.PHONY : all $(VOLUMES_D) build up list clean fclean re