Skip to content

Instantly share code, notes, and snippets.

@gorkem
Created December 7, 2020 17:32
Show Gist options
  • Save gorkem/78fd17864218a125b2bd9146728a1af8 to your computer and use it in GitHub Desktop.
Save gorkem/78fd17864218a125b2bd9146728a1af8 to your computer and use it in GitHub Desktop.
gastsby devfile
schemaVersion: 2.0.0
components:
- name: gatsby
container:
image: quay.io/eclipse/che-nodejs10-ubi:nightly
mountSources: true
memoryLimit: 700Mi
endpoints:
- name: web
targetPort: 8000
commands:
- id: gatsby-develop
exec:
commandLine: "gatsby develop -H 0.0.0.0"
component: gatsby
group:
kind: run
attributes:
restart: "false"
- id: setup-gatsby-cli
exec:
commandLine: "npm install -g gatsby-cli && npm install"
component: gatsby
events:
postStart:
- setup-gatsby-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment