Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philmod/google-cloud-build-gulp
Example on how to use gulp with Google Cloud Container Builder
https://github.com/philmod/google-cloud-build-gulp
build cloud google gulp
Last synced: 27 days ago
JSON representation
Example on how to use gulp with Google Cloud Container Builder
- Host: GitHub
- URL: https://github.com/philmod/google-cloud-build-gulp
- Owner: Philmod
- License: apache-2.0
- Created: 2017-03-26T13:56:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-19T23:43:24.000Z (over 7 years ago)
- Last Synced: 2024-10-28T00:19:12.045Z (3 months ago)
- Topics: build, cloud, google, gulp
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# google-container-gulp
Example on how to use gulp with Google Cloud Container Builder.There are a few ways you might want to use the static files generated by gulp.
## Serve
You might want to serve them from a static server of your own. In this case,
let's package the server and the content in a container (using `Dockerfile`):```
gcloud container builds submit . --config=cloudbuild.container.yaml
gcloud docker -- run -p 3000:3000 gcr.io/$PROJECT_ID/gulp-example:latest
curl localhost:3000
```## Google Cloud Storage
You might want to store the static files in Google Cloud Storage from where
your application can fetch them.```
gcloud container builds submit . --config=cloudbuild.gcs.yaml
```Share the files publicly from the Google Cloud Console, then:
```
curl http://storage.googleapis.com/gulp-example/index.html
```