Skip to content

Instantly share code, notes, and snippets.

@themr0c
Created September 17, 2019 10:23
Show Gist options
  • Save themr0c/ef8e59a162748a8be07e900b6401e6a8 to your computer and use it in GitHub Desktop.
Save themr0c/ef8e59a162748a8be07e900b6401e6a8 to your computer and use it in GitHub Desktop.
che-docs
metadata:
name: che-docs-in-che02ile
projects:
- name: che-docs
source:
location: 'https://github.com/eclipse/che-docs.git'
type: git
components:
- mountSources: true
endpoints:
- name: che-docs-web-server
attributes:
public: 'true'
protocol: http
path: /
port: 4000
- name: che-docs-livereload-server
attributes:
public: 'true'
protocol: http
path: /
port: 35729
memoryLimit: 1Gi
type: dockerimage
alias: che-docs-dev
image: 'eclipse/che-docs:latest'
- id: eclipse/che-theia/next
type: cheEditor
apiVersion: 1.0.0
commands:
- name: build che-docs
actions:
- workdir: /projects/che-docs/src/main
type: exec
command: 'mkdir -p _site && jekyll build --config _config.yml,_config-war.yml'
component: che-docs-dev
- name: serve che-docs
actions:
- workdir: /projects/che-docs/src/main
type: exec
command: jekyll serve --incremental --livereload -H 0.0.0.0
component: che-docs-dev
- name: killall ruby
actions:
- type: exec
command: killall ruby
component: che-docs-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment