question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an ability to specify entrypoint for kube and openshift tool in Devfile

See original GitHub issue

Description

@sleshchenko proposal for the format:

tools:
  - name: app
    type: kubernetes
    local: app.yaml
    entrypoints:
      - pod: container #optional
        container: app #optional
        command: ['/bin/sh', '-c']
        args: ['tail -f /dev/null']

Applying that to a devfile that uses yamls from Kubernetes Node.js and MongoDB sample:

specVersion: 0.0.1
name: fix-the-kube
projects:
  - name: nodejs-mongo-app
    source:
      type: git
      location: 'https://github.com/ijason/NodeJS-Sample-App.git'
tools:
  - name: theia-editor
    type: cheEditor
    id: org.eclipse.che.editor.theia:1.0.0
  - name: exec-plugin
    type: chePlugin
    id: che-machine-exec-plugin:0.0.1
  - name: mongodb
    type: kubernetes
    local: mongo-controller.yaml
  - name: nodejs
    type: kubernetes
    local: node-controller.yaml
    entrypoints:
      - command: ['/bin/sh', '-c']
        args: ['tail -f /dev/null']

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
garagatyicommented, Feb 21, 2019

Both pod and container could be optional if local YAML contains just a single pod with a single container which is common practice.

0reactions
metloscommented, Mar 20, 2019

PR #12856 has been merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 4. Authoring devfiles - Red Hat Customer Portal
Overriding container environment variables. To provision or override entrypoints in a OpenShift component, configure it in the following way:.
Read more >
OpenShift Container Platform 4.10 release notes
OpenShift Container Platform 4.10 introduces the ability for installing a cluster on Alibaba Cloud using installer-provisioned infrastructure in Technology ...
Read more >
Import a project from your laptop to an Eclipse Che workspace.
So in this blog post I will use only kubectl and rsync tools ... Define an Eclipse Che workspace for my project (create...
Read more >
Introduction to Devfile - GitHub Pages
A list of projects: the source code repositories; A list of commands: actions to manage the workspace components like running the dev tools,...
Read more >
Introduction to Eclipse Che :: Eclipse Che Documentation
A multi-container workspace for each developer with the ability to ... mode” layer on top of those, adding intelligent code completion and IDE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found