Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebda249
commit 9e00361
Showing
7 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
build: | ||
docker compose up -d | ||
docker exec -it drupal-fpm sh | ||
|
||
build-minikube: | ||
minikube start | ||
Kubectl apply -f iac/docker/helm | ||
Kubectl apply -f iac/docker/helm/nginx | ||
Kubectl apply -f iac/docker/helm/drupal | ||
Kubectl apply -f iac/docker/helm/mysql | ||
|
||
build-tunnel: | ||
minikube tunnel | ||
|
||
run-minikube: | ||
minikube service ngnix | ||
|
||
deploy-minikube: | ||
cd app && composer install && cd .. | ||
chmod +x scripts/deploy-k8s && scripts/deploy-k8s | ||
|
||
update-minikube: | ||
cd app && composer install && cd .. | ||
chmod +x scripts/deploy-k8s && scripts/deploy-k8s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
POD=$(kubectl get pods -l app=drupal-fpm -o custom-columns=:metadata.name) | ||
echo $POD | ||
kubectl exec $POD -- /bin/sh -c "rm -rf /var/www/html/*" | ||
kubectl cp app/ $POD:/var/www/html/ -c drupal-fpm -n default | ||
kubectl exec $POD -- bash -c "mv /var/www/html/app/* /var/www/html/." | ||
kubectl exec $POD -- bash -c "cd /var/www/html && make build-drupal" | ||
|
||
POD=$(kubectl get pods -l app=ngnix -o custom-columns=:metadata.name) | ||
echo $POD | ||
kubectl exec $POD -- /bin/sh -c "rm -rf /var/www/html/*" | ||
kubectl cp app/ $POD:/var/www/html/ -c ngnix -n default | ||
kubectl exec $POD -- /bin/sh -c "mv /var/www/html/app/* /var/www/html/." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
POD=$(kubectl get pods -l app=drupal-fpm -o custom-columns=:metadata.name) | ||
echo $POD | ||
kubectl exec $POD -- /bin/sh -c "rm -rf /var/www/html/*" | ||
kubectl cp app/ $POD:/var/www/html/ -c drupal-fpm -n default | ||
kubectl exec $POD -- bash -c "mv /var/www/html/app/* /var/www/html/." | ||
kubectl exec $POD -- bash -c "cd /var/www/html && make drupal-update" | ||
|
||
POD=$(kubectl get pods -l app=ngnix -o custom-columns=:metadata.name) | ||
echo $POD | ||
kubectl exec $POD -- /bin/sh -c "rm -rf /var/www/html/*" | ||
kubectl cp app/ $POD:/var/www/html/ -c ngnix -n default | ||
kubectl exec $POD -- /bin/sh -c "mv /var/www/html/app/* /var/www/html/." |