/spleeter-docker-gcp

Builds docker image and deploys on GCP to avoid M1 chip problems

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

GCP config

gcloud init

gcloud auth configure-docker

gcloud builds submit --tag gcr.io/[]/my-spleeter-image . 

After the build: You can verify this by checking the list of images in GCR: gcloud container images list --repository=gcr.io/[PROJECT_ID]

gcloud run deploy my-spleeter-service [params]

Then: gcloud builds submit --config cloudbuild.yaml . # enables layer cache, speeds up docker image building

Define env vars on GCP config:

then: bucket_name = os.getenv('BUCKET_NAME', 'default-bucket-name') stems_number = os.getenv('STEMS_NUMBER', '5')