Steps to run the full stack in local environment:
docker-compose down -> Will delete old containers
docker-compose build --no-cache -> Build new containers and copy updated files to containers
docker-compose up -> run new containers
note: If you only edit the frontend, you only need to rebuild the frontend. So to make the process faster you can do "docker-compose build --no-cache frontend". The same applies to backend.
Steps to commit backend docker image to cluster
cd ./backend
docker build --platform=linux/amd64 -t container.cs.vt.edu/fhurtado14/corps-directory/backend:latest .
docker push container.cs.vt.edu/fhurtado14/corps-directory/backend:latest
Go to CS Launch and scale down backend deployment to 0, then scale back up to 1.
Steps to commit frontend docker image to cluster
cd ./frontend
docker build --platform=linux/amd64 -t container.cs.vt.edu/fhurtado14/corps-directory/frontend:latest .
docker push container.cs.vt.edu/fhurtado14/corps-directory/frontend:latest
Go to CS Launch and scale down backend deployment to 0, then scale back up to 1.