Skip to content

Instantly share code, notes, and snippets.

@tacocode-dev
tacocode-dev / build-and-push.sh
Created September 5, 2021 00:36 — forked from chris-cmsoft/Makefile
TLDR - Laravel In Kubernetes Part 3
# Registry Credentials
export REGISTRY_URL=registry.gitlab.com
export REGISTRY_USER=XXX
export REGISTRY_PASS=XXX # You can also use your Gitlab token here as the password
# Registry Settings
export IMAGE_VERSION=v0.0.1
export IMAGE_URL=registry.gitlab.com/laravel-in-kubernetes/laravel-app
# Login to Docker Registry
@tacocode-dev
tacocode-dev / .gitignore
Created September 5, 2021 00:36 — forked from chris-cmsoft/.gitignore
TLDR - Laravel In Kubernetes Part 4
# Local .terraform directories
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
@tacocode-dev
tacocode-dev / .dockerignore
Created September 5, 2021 00:34 — forked from chris-cmsoft/.dockerignore
TLDR - Laravel In Kubernetes Part 2
/vendor
/node_modules
@tacocode-dev
tacocode-dev / install-application.sh
Created September 5, 2021 00:34 — forked from chris-cmsoft/install-application.sh
TLDR - Laravel In Kubernetes Part 1
export APP_PORT=8080
# Create a directory to store application
mkdir -p laravel-in-kubernetes-tutorial
cd laravel-in-kubernetes-tutorial
# Create Laravel application
curl -s "https://laravel.build/laravel-in-kubernetes?with=mysql,redis" | bash
cd laravel-in-kubernetes