Skip to content

Instantly share code, notes, and snippets.

View andersondario's full-sized avatar

Anderson Dario andersondario

View GitHub Profile
@andersondario
andersondario / Dockerfile
Last active January 18, 2023 01:20
Dockerfile for Angular
## Reference: https://snyk.io/blog/10-best-practices-to-containerize-nodejs-web-applications-with-docker/
FROM node:14.20.1-alpine AS builder
ARG ENV_NAME
WORKDIR /app
ENV ENV_NAME ${ENV_NAME}
COPY package.json package-lock.json ./
RUN npm install
COPY . .
minikube start --addons=ingress --cpus=4 --cni=flannel --install-addons=true --kubernetes-version=stable --memory=6g
minikube dashboard (optional)
export NAMESPACE=awx
kubectl create ns ${NAMESPACE}
kubectl config set-context --current --namespace=$NAMESPACE
git clone https://github.com/ansible/awx-operator.git
cd awx-operator/
@andersondario
andersondario / settings.json
Last active February 27, 2021 01:04 — forked from diego3g/settings.json
VSCode Settings (Updated)
{
"terminal.integrated.fontSize": 14,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 4,
"editor.fontSize": 14,
"editor.lineHeight": 22,
"editor.fontFamily": "Fira Code",
@andersondario
andersondario / fedora_setup.sh
Last active May 14, 2022 23:05
Fedora Setup
# Initial update
sudo yum update -y
# Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
sudo rpm -ivh minikube-latest.x86_64.rpm