2022-11-30 02:20:48 +01:00
|
|
|
DEPLOY_DIR := ./deploy
|
|
|
|
|
2024-12-24 14:19:23 +01:00
|
|
|
# SETTING ENV
|
2022-11-30 02:20:48 +01:00
|
|
|
up:
|
2024-12-24 14:19:23 +01:00
|
|
|
- sh ${DEPLOY_DIR}/scripts/start-docker.sh
|
2022-11-30 02:20:48 +01:00
|
|
|
|
|
|
|
down:
|
2023-06-24 15:40:54 +02:00
|
|
|
- docker stack rm egommerce
|
2024-12-24 14:19:23 +01:00
|
|
|
|
|
|
|
k8s-up:
|
2024-12-24 14:29:04 +01:00
|
|
|
- sh ${DEPLOY_DIR}/start-k8s.sh
|
2024-12-24 14:19:23 +01:00
|
|
|
|
|
|
|
k8s-down:
|
2024-12-24 14:29:04 +01:00
|
|
|
- kubectl delete -f deploy/k8s/stack.yml
|
2024-12-24 14:19:23 +01:00
|
|
|
|
|
|
|
# GENERATING CERTS
|
|
|
|
certs:
|
|
|
|
- bash ${DEPLOY_DIR}/scripts/gen-certs.sh
|
|
|
|
|
2024-12-24 14:29:04 +01:00
|
|
|
volumes-restart:
|
|
|
|
- docker stack rm egommerce
|
|
|
|
- docker volume prune -af
|
|
|
|
- sh ${DEPLOY_DIR}/start-stack.sh
|