-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile_with_clone
39 lines (29 loc) · 1.16 KB
/
Makefile_with_clone
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
# NAME = Transcendance
# RED = \033[0;31m
# GRN = \033[0;32m
# YLW = \033[0;33m
# BLU = \033[0;36m
# DFT = \033[0;37m
# # all: fclean up
# up: clone
# @docker-compose -f ./docker-compose.yml up --build -d;
# @echo "$(GRN)>>> docker compose up$(DFT)"
# down: rm
# @docker-compose -f ./docker-compose.yml down;
# @echo "$(YLW)>>> docker compose down$(DFT)"
# image:
# @docker pull node:lts
# @echo "$(GRN)>>> docker image download$(DFT)"
# clone:
# @git clone https://github.com/Gaepo-transcendance-fighters/BACK-END.git ./srcs/requirements/nestjs/backend_server 2> /dev/null || true
# @git clone https://github.com/Gaepo-transcendance-fighters/FRONT-END.git ./srcs/requirements/nextjs/frontend 2> /dev/null || true
# cp ./.env ./srcs/requirements/nestjs/backend_server/backend_server
# cp ./.env ./srcs/requirements/nextjs/frontend/frontend
# rm:
# @docker-compose -f ./docker-compose.yml down --volumes --remove-orphans
# rm -rf ./srcs/requirements/nestjs/backend_server
# rm -rf ./srcs/requirements/nextjs/frontend
# clean: down
# @docker system prune -af
# @echo "$(RED)>>> docker stop and remove networks and caches$(DFT)"
# .PHONY: up down clean