Skip to content

Beispiel CI/CI nach AWS eines simplen Nginx Image

Notifications You must be signed in to change notification settings

codingluke/bbzbl-modul-324-nginx

Repository files navigation

BBZBL Modul 324: Nginx Beispiel App

Beispiel CI/CI Pipeline nach AWS, eines simplen Nginx Image

Woher

Wie man ein einfaches NGINX image erstellt könnt Ihr in diesem Tutorial nachbauen.

Da wird auch darauf eingegangen, dass ihr direkt ein offizielles Image von Nginx angeben könnt. Das ist in der praxis vorzuziehen, zum über ist es aber gut es selbst zu bauen.

AWS CLI

TODO

  • Basic Nginx Image
  • Docker Compose file to build Nginx
  • Connect to AWS with aws-cli from github actions
  • Configure terraform to work on AWS / Basic EC2
  • Add devcontainer
    • .devcontainer in github.dev nicht möchlich :(
  • .devcontainer with aws-cli, terraform and kamal working
  • Configure aws registry via terraform
  • Build nginx and push it to registry
    • We should not commit the "terraform.tfstate" file
    • It is deleted after every deploy so resources are created multiple times
    • We import the resources now live!! 😄
  • Check resouces with aws-cli and import them with terraform
  • HTML Linting
  • Install Kamal
    • repository info to kamal via env
    • Remote SSH ection with public ip
  • Access nginx via http port 80
  • add .editorconfig
  • Kamal config under ./kamal and not ./config

Bonus

  • Access nginx via https port 443 and letsencrypt
  • [] Deploy nginx container to aws fargate

About

Beispiel CI/CI nach AWS eines simplen Nginx Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published