Devops
Containerizing scala backend
Logged in kops.<domain>.com as superuser (sudo su)
cd /home/ubuntu/tf_files/cootbackend
Used the Dockerfile in this location
We need to definitely have the COPY <dir>-rest-services /<dir>-rest-services in the Dockerfile.
Only then the image can have the resources we need to do the scala
Build the image:
docker build -t <dockerhub registry name>/<bkend-scala-image-v0:v0 .
Run the image docker run -p 8091:8091 --name backend_service_v0 \ -it -v /home/ubuntu/tf_files:/tf_files <dockerhub registry name>/bkend-scala-image-v0:v0
Get a bash in docker VM docker exec -it f27eed929330 bash -c "export COLUMNS=
tput cols
; export LINES=tput lines
; exec bash"
Kubernetes
Horizontal pod autoscaling
Last updated
Was this helpful?