-
Notifications
You must be signed in to change notification settings - Fork 166
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
ansible: update nodejs to 20 in Dockerfile #3767
Conversation
As per the documentation, the user with write access on container registry need to run the following steps:
Repeat the steps for other container registries
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is this PR good to merge and deploy? It has been open for 48 hours during the week as required by governance, and received 5 approvals. |
The deploy instructions are in comment #3767 (comment), which a person with write permissions need to run. Once they succeed, I'll add them them in the metrics README https://github.com/nodejs/build/tree/main/ansible/roles/metrics |
@trivikr I'm getting some prompts at the last step:
I selected |
According to the help, the region can be passed with For the unauthenticated question, the docs say:
|
I confirmed from existing YAML files that all Google Cloud Run instances have ingress all. labels:
cloud.googleapis.com/location: us-central1
annotations:
run.googleapis.com/ingress: all
run.googleapis.com/ingress-status: all I also verified from Console Networking tab that Ingress is "All". However, under Security Tab Authentication section, the "Require authentication: Manage authorized users with Cloud IAM." is checked, and "Allow unauthenticated invocations" is not. Based on this observation, I think the command should be: gcloud run deploy processcloudflare --image gcr.io/nodejs-org/processcloudflare:latest --region us-central1 --no-allow-unauthenticated |
|
The logs say: |
As per Reddit, this might be happening if docker build is run on different architecture The solution was to use https://github.com/docker/buildx, which is included with Docker Desktop.
I also noticed the service name is |
I requested an Editor role at #3774 |
I'd to run one more command to serve traffic to latest revision: $ gcloud run services update-traffic processlogs --to-latest --region us-central1 |
The deployment is successful: EVENT TYPE: OBJECT_FINALIZE
Node version is: v20.14.0
BUCKET cloudflare-logs-nodejs
FILENAME 20240625/20240625T143942Z_20240625T144053Z_f733a7db.log.gz
PROCESSEDFILENAME 20240625/20240625T143942Z_20240625T144053Z
INSIDE CREATE PIPELINE
String length: 31023581
Array Length: 61791
SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at /usr/src/app/process-cloudflare.js:164:34 at callback (/usr/src/app/node_modules/@google-cloud/storage/build/src/file.js:1624:17) at /usr/src/app/node_modules/@google-cloud/storage/build/src/file.js:1640:87 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Upload complete
rss 195.75 MB
heapTotal 62.63 MB
heapUsed 47.92 MB
external 34.1 MB
arrayBuffers 30.99 MB I'll deploy other folders, and post a PR with update instructions in README for each of the Cloud Run source code folder. |
Commands run for
The |
Commands run for
The |
Copy from where? |
I copied them from earlier version of They maybe available in Btw, I added update instructions in #3779 |
Refs: #3697 (comment)
I went through the JavaScript source code run in these Dockerfiles, and verified that there are no Node.js APIs being used which were deprecated between Node.js 14.x and 20.x
cc @richardlau