Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download api/cloudbuild.yaml from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 822 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/edb5ea459a6e19d91e941f078c1ff1799d310731/api/cloudbuild.yaml
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@edb5ea459a6e19d91e941f078c1ff1799d310731/api/cloudbuild.yaml
-
curl -L -o cloudbuild.yaml https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/edb5ea459a6e19d91e941f078c1ff1799d310731/api/cloudbuild.yaml
822 Bytes
| steps: | |
| - name: "gcr.io/kaniko-project/executor:v1.23.2" | |
| id: "Build image and push" | |
| dir: "api" | |
| args: | |
| - "--destination=us.gcr.io/$PROJECT_ID/$_SERVICE_NAME:$SHORT_SHA" | |
| - "--destination=us.gcr.io/$PROJECT_ID/$_SERVICE_NAME:latest" | |
| - "--dockerfile=Dockerfile" | |
| - "--context=." | |
| - "--build-arg=GIT_COMMIT=$SHORT_SHA" | |
| - "--snapshot-mode=time" | |
| - id: "Deploy to cloud run" | |
| name: "gcr.io/cloud-builders/gcloud" | |
| entrypoint: "bash" | |
| args: | |
| - "-c" | |
| - | | |
| gcloud run deploy $_SERVICE_NAME \ | |
| --image=us.gcr.io/$PROJECT_ID/$_SERVICE_NAME:$SHORT_SHA \ | |
| --region=$_REGION --platform managed --allow-unauthenticated \ | |
| --port=8000 | |
| options: | |
| substitutionOption: ALLOW_LOOSE | |
| substitutions: | |
| _SERVICE_NAME: http-sms-api | |
| _REGION: us-east1 | |