79304871

Date: 2024-12-24 06:20:14
Score: 1
Natty:
Report link

It turns out I needed to first install Java. Here is the final snippet that worked:

- name: gcr.io/cloud-builders/npm
  entrypoint: bash
  dir: edcloud/cloud-function/${_PROJECT_NAME}
  args:
    - -c
    - |
      apt-get update && apt-get install -y openjdk-11-jdk
      npm install -g firebase-tools
      npm install
      firebase emulators:exec --project $PROJECT_ID 'npm test'
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Shamil Jamion