Giter VIP home page Giter VIP logo

webapp's Introduction

webApp

This uses scala3, kubernetes, colima, postgresql, cats, doobie, and http4s to create a simple web service that does not do a ton.

Running locally

Colima Install and running

Install colima and run it with kubernetes and containerd. Make sure you don't have Docker desktop running. If you do, turn it off. If you want to do this docker desktop you are on your own. The reason I recommend against Docker desktop is because

  • It is slow and resource intensive on a Mac
  • Licensing can be awkward

To start colima on MacOS do something like the below

colima start --cpu 2 --memory 2 --kubernetes --vm-type=vz --runtime=containerd

This says to start a vm with 2 cpus and 2 GB of memory using a containerd runtime with kubernetes support using the vm machine vz.

Nerdctl Install

Nerdctl is a docker compatible cli, but it works with containerd. To install, run

colima nerdctl install

Kubectl

Kubectl is a cli for talking with kubernetes. Please follow these instructions for your given OS to install them.

Build the docker image

Colima requires that ANY images that you want kubernetes to see you must use the nerdctl namespace k8s.io for it.

nerdctl build -f docker/Dockerfile -t web-app:latest --progress plain --namespace k8s.io .

Kustomize

Kustomize is a tool for overlays for creating kubernetes infrastructure. It is built into kubectl.

kubectl create namespace web-app-dev
kubectl apply -k kube/overlays/local

webapp's People

Contributors

mcatalano26 avatar rstradling avatar strad234 avatar

Watchers

 avatar  avatar

webapp's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.