Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC - Dockerize node app and deploy #2

Open
taitruong opened this issue Mar 1, 2021 · 1 comment
Open

PoC - Dockerize node app and deploy #2

taitruong opened this issue Mar 1, 2021 · 1 comment
Assignees

Comments

@taitruong
Copy link
Member

taitruong commented Mar 1, 2021

Create a docker file and deploy on Google App Engine

Goal:

Add interesting findings to #3

@RouvenGonzalez
Copy link

RouvenGonzalez commented Mar 5, 2021

Dockerize and Deploy a Node App in Google Cloud

Stepps before the Start:

Setup and Deploy your App:

grant users these roles for the project

  • go to IAM
    • press "ADD"
    • select one or more users in "New members"
    • add these two roles: "Cloud Run Admin" and "Storage Admin"

enable the Container Registry for your project

  • as described [here(https://cloud.google.com/container-registry/docs/quickstart)
    • Before building your image, make sure you set two environment variables in your dockerfile:
      • ENV PORT the port your app is using
      • ENV HOST 0.0.0.0
        these two are processed in Cloud Run during deployment
        here is the dockerfile used for our test image

create a "compute service account"

  • check if service account exists
    • go here, select project and check whether it exists
  • create a service account
  • select project (e.g sanbox-xxx)
  • a text "Compute Engine is getting ready. This may take a minute or more. Compute Engine documentation" appears on top
    This will create a compute service account
  • grant user role "Service Account User"

Setup Cloud Buld API and Cloud RUN

@KlugeCh KlugeCh mentioned this issue Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants