This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Helloworld auf GCP
DennisSentler edited this page Oct 2, 2019
·
2 revisions
- Bei GCP registrieren und Projekt erstellen, PROJECT_ID: ornate-antler-254609
- Beispielanwendung implementieren
Helloworld implementiert nach dem Beispiel von Google.
- Dockerfile anlegen, im Verzeichnis der Anwendung
- Lokale Anwendungen installieren (Docker, Google Cloud SDK)
- Anwendung mit Google Cloud SDK hochladen
gcloud auth login
-- Login im SDK
gcloud config set project ornate-antler-254609
-- Projekt in das SDK einbinden
gcloud builds submit --tag eu.gcr.io/ornate-antler-254609/helloworld
-- Bezeichnung nach Muster: [HOSTNAME]/[PROJECT_ID]/[IMAGE]. Anwendung ins Projekt übertragen und bauen. Image wird innerhalb eines Containers gebaut.
gcloud container images list-tags eu.gcr.io/ornate-antler-254609/helloworld
-- Auflistung der aktuellen Revisionen des Images.
- Image in unter Cloud Run auf der Google Cloud Platform deployen.
Link zur deployeden Webanwendung: https://helloworld-4ergqeef4a-ew.a.run.app/
-
API
-
Tutorials