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
## 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 . . |
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
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/ |
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
{ | |
"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", |
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
# 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 |