The infrastructure components for blackblade.
- Run
docker-compose up --build -d
to start the db container - [Optional] Clone the blackblade-batch repo
- [Optional] When the container finishes starting,
cd
intoblackblade-batch
- [Optional] Run
docker-compose up --build
to start the batch container
- Ensure the db container is running
- Run
docker-compose -f docker-compose.backup.yml up --build -d
to start the db backup container - [Optional] Confirm the file is visible in the Docker Control Spaces control panel
- Download the compressed backup from the Digital Ocean Spaces control panel
- Decompress the file using
gzip -dk [file name]
- Run
kubectl get pods
to find the name of the db pod - Run
kubectl port-forward [db pod name] 3306:3306
to connect to the production db pod - Import the backup file into the production db pod
- Use
ctrl+c
to kill thekubectl port-forward
command