|
|
|
@ -0,0 +1,20 @@ |
|
|
|
include ../servicios/.env |
|
|
|
export IMG_VERSION = ${VERSION} |
|
|
|
# limpia todo
|
|
|
|
all: imagen clean install |
|
|
|
|
|
|
|
imagen: |
|
|
|
cd ../servicios; make |
|
|
|
|
|
|
|
install: |
|
|
|
-kubectl create -f pv-local-libros.yaml |
|
|
|
-kubectl create -f libros-prod-persistentvolumeclaim.yaml |
|
|
|
-envsubst < libros-deployment.yaml |kubectl create -f - |
|
|
|
|
|
|
|
clean: |
|
|
|
-envsubst < libros-deployment.yaml |kubectl delete -f - |
|
|
|
-kubectl delete -f libros-prod-persistentvolumeclaim.yaml |
|
|
|
-kubectl delete -f pv-local-libros.yaml |
|
|
|
|
|
|
|
prueba: |
|
|
|
@echo $(VERSION) |