Skip to content

Instantly share code, notes, and snippets.

@kesslerdev
Last active June 5, 2020 10:22
Show Gist options
  • Save kesslerdev/1e19cf82efc7779879fc169207c1a5ca to your computer and use it in GitHub Desktop.
Save kesslerdev/1e19cf82efc7779879fc169207c1a5ca to your computer and use it in GitHub Desktop.
untitled

Eclipse CHE runtime overrides

curl -s https://gist.githubusercontent.com/kesslerdev/1e19cf82efc7779879fc169207c1a5ca/raw/run.sh| bash -s <original entrypoint + command>
components:
  - mountSources: true
    endpoints:
      - name: 8080-tcp
        port: 8080
    memoryLimit: 512Mi
    type: dockerimage
    alias: go-cli
    image: 'quay.io/eclipse/che-golang-1.12:nightly'
    command: ["bash", "-c", "curl -s https://gist.githubusercontent.com/kesslerdev/1e19cf82efc7779879fc169207c1a5ca/raw/run.sh | bash /entrypoint.sh tail -f /dev/null"]
    env:
      - value: '/go:$(CHE_PROJECTS_ROOT)'
        name: GOPATH
      - value: /tmp/.cache
        name: GOCACHE
      - value: 'on'
        name: GO111MODULE
      - value: '/project/bin'
        name: ADD_PATH
if [ -n "$ADD_PATH" ]
then
export PATH="$ADD_PATH:$PATH"
fi
exec $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment