Skip to content

rstradling/webApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors