Skip to content

Commit 5e5a6f9

Browse files
authored
Merge branch 'main' into patch-1
2 parents 07f28cd + 6755195 commit 5e5a6f9

7 files changed

Lines changed: 77 additions & 1 deletion
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Set AWS EKS kubeconfig
2+
command: aws eks update-kubeconfig --region {{region}} --name {{cluster}} --alias {{alias}}
3+
arguments:
4+
- name: region
5+
description: AWS region of the cluster
6+
- name: cluster
7+
description: The EKS cluster name
8+
- name: alias
9+
description: Alias for the cluster
10+
11+
12+
tags: ["kubeconfig"]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Opens a Bash shell into Kubernetes pod
2+
command: kubectl -n {{namespace}} exec -it {{pod_name}} -- /bin/sh
3+
arguments:
4+
- name: namespace
5+
default_value: default
6+
description: The namespace of the pod
7+
- name: pod_name
8+
description: The pod into which to exec
9+
10+
tags: ["kubectl"]

specs/kubernetes/run_a_bash_command_within_a_kubernetes_pod.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
name: Run a Bash command within a Kubernetes pod
3-
command: 'kubectl exec -it --namespace=tools {{pod_name}} -- bash -c "{{bash_command}}"'
3+
command: 'kubectl exec -it --namespace={{namespace}} {{pod_name}} -- bash -c "{{bash_command}}"'
44
tags:
55
- kubernetes
66
description: 'Runs a Bash command in a Kubernetes pod. The double dash symbol "--" is used to separate the command you want to run inside the container from the kubectl arguments.'
77
arguments:
8+
- name: namespace
9+
description: The namespace in which the pod is located
810
- name: pod_name
911
description: The name of the pod
1012
default_value: ~

specs/laravel/laravel_migrate.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Run Laravel database migrations
3+
command: |-
4+
php artisan migrate
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command runs Laravel database migrations
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Drop all tables and run Laravel's migrations
3+
command: |-
4+
php artisan migrate:fresh
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command will drop all excisting tables and run Laravel database migrations after that
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Drop all tables and run Laravel's migrations and seeders
3+
command: |-
4+
php artisan migrate:fresh --seed
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command will drop all excisting tables and run Laravel database migrations after that, with seeding the database at the end.
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Pretend to run Laravel database migrations
3+
command: |-
4+
php artisan migrate --pretend
5+
tags:
6+
- Laravel
7+
- Php
8+
description: This command will return the SQL statement that would be performed when we would run the migration
9+
arguments: []
10+
source_url: "https://laravel.com/docs/10.x/migrations#running-migrations"
11+
author: Bert De Swaef
12+
author_url: "https://github.com/BurtDS"
13+
shells: []

0 commit comments

Comments
 (0)