TODO Add github action to build and store in github archives
docker \
api
src
Dockerfile
frontend
src
Dockerfile
NOTE ENVs are seeded from docker.mk
version: '2'
services:
api:
build: docker/api
image: ${ORGANIZATION}/${API_NAME}:${BUILD_TAG}
frontend:
build: docker/frontend
image: ${ORGANIZATION}/${APP_NAME}:${BUILD_TAG}...
# Service Vars
NAME=starter-bundle
# API Vars
API_NAME=starter-bundle-api
API_PORT=3000
API_USER=admin
API_PASS=mypassword
# APP Vars
APP_NAME=starter-bundle-frontend
APP_PORT=5000
init :
-helm init --upgrade
config : init
docker-compose config --quiet
build : config
docker-compose build
up : init
docker-compose up -d
down :
docker-compose down
push : build
docker-compose push
NOTE this step is not documented b/c charts will be different depending on the application requirements. A good starting point: How To Create Your First Helm Chart
deploy : init
-kubectl create namespace $(NAMESPACE)
-helm init
-kubectl create namespace $(NAMESPACE)
helm upgrade -i $(SERVICE) helm/$(SERVICE) \
--namespace $(NAMESPACE) \
--set build.tag=$(BUILD_TAG) \
-f values.yaml \
--timeout 120 \
--wait
delete :
helm del --purge $(SERVICE)