https://github.com/rlancer/gcloud-nodejs-docker
Docker image designed for deploy App Engine Node apps via GitLab CI / CD
https://github.com/rlancer/gcloud-nodejs-docker
Last synced: 5 months ago
JSON representation
Docker image designed for deploy App Engine Node apps via GitLab CI / CD
- Host: GitHub
- URL: https://github.com/rlancer/gcloud-nodejs-docker
- Owner: rlancer
- Created: 2019-01-22T22:08:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T20:02:49.000Z (about 7 years ago)
- Last Synced: 2025-01-23T06:45:11.195Z (over 1 year ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/rlancer/gcloud-node
- Size: 3.03 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AppEngine GitLab - CI / CD Base Image
View on Docker Hub - https://hub.docker.com/r/rlancer/gcloud-node
## Included in tag 1.0.2
* **NodeJS @ 10.15.3- NPM @ 6.9.0**
* **gcloud command-line tool @ 241.0.0** - https://cloud.google.com/sdk/gcloud/
* **gae-ayaml-env @ 0.0.19** - https://www.npmjs.com/package/gae-ayaml-env - app.yaml generator for populating enviorment varibles in the CI / CD process
* **install-me-maybe @ 0.0.3** - https://www.npmjs.com/package/install-me-maybe, prevents having to install node modules twice if the previous version has been cached (currently GitLab's CI / CD GKE runner does not support caching)
## Example useage
```yaml
deploy:
image: "rlancer/gcloud-node:1.0.1"
script:
- install-me-maybe # or npm i
- npm run build
- gae-ayaml-env # to puplulate app.yaml with env vars
- echo $GCLOUD_SERVICE > /tmp/$CI_PIPELINE_ID.json
- gcloud auth activate-service-account --key-file /tmp/$CI_PIPELINE_ID.json
- gcloud --quiet --project $GCLOUD_PROJECT_ID app deploy app.yaml
```