/yaw2

yet another webserver

Primary LanguageHCL

yaw

yet another webserver

patterns

  • Hello World app
  • Releasable artifact
  • [-] Hosting Infrastructure
  • release process codified
  • Automated Release process
  • [/] Multi-zone/region

Installation

prereq

docker, python 3.11, pip, terragrunt, terraform, nektos/act

github token

Build

cd hello-app
pip install -r requirements
python -m build

Deploy

# cd infra/live/cloud/aws/yaw-eng-act/us-west-1/dev/yaw-svc && terragrunt apply
cd hello-app
pip install .
yaw start &

Usage

curl localhost:8000
# Hello World

CICD

github actions

act -s GITHUB_TOKEN=$GITHUB_TOKEN \
-P self-hosted=catthehacker/ubuntu:act-22.04 \
--container-architecture linux/amd64 \
pull_request