docker compose -f "BuildTools/docker-compose.yml" restart frontend
We use docker compose to build app image and to link the app to mariadb.
Under the Build directory copy the envvars.example and name it .envvars Edit the .envvars to have the database creds you want for the db
IN WSL
bash setup_containers.sh teardown cleanup standup
or
docker compose -f BuildTools/docker-compose.yml up -d --build --remove-orphans
or
docker-compose -f BuildTools/docker-compose.yml build --no-cache && docker compose -f BuildTools/docker-compose.yml up -d
docker compose -f "BuildTools/docker-compose.yml" down --volumes --remove-orphans
https://releases.hashicorp.com/terraform/1.7.2/terraform_1.7.2_windows_amd64.zip
Enable Kubernetes within Docker Desktop's settings first
Run Powershell as an administrator
Run this powershell command and when prompted enter A to accept all prompts
choco install azure-cli kubernetes-cli
Verify the installation
kubectl version
kubctl cluster-info
The cluster information should have a Kubernetes control plane and Core DNS with a url containing kubernetes.docker.internal
kubectl create naespace csc490-stocks
Run the commands below to view the endpoints available for React to use
docker exec -it stocks_backend bash
source /var/local/bin/stocks_venv/bin/activate;
python3 manage.py show_urls | grep -vP "^/admin"