Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] Preview link?

Hi,

I understood that the answer could be interpreted that way but instead of just answering "it can't be done", I was going to answer with "do you mean how to enable a preview link? If so, here is information on how to do that:..."

But since I don't know how to do the preview link, I thought I would ask here for my own self-improvement.

Thanks for answering the original poster's question!

Dave.

On 13/03/2019 14:04, Yevhen Ivantsov wrote:
Hi Dave! The question seems to be not about preview link but about a possibility to open a browser tab on a host machine by a python script that runs in a container (at least I understood it this way).

And my answer is that it's barely possible unless a workspace container is running in a privileged mode. There can be some hacks like mounting a host volume but it's not allowed in Che (though on Docker there's an env [1] for wsmaster that may help)

1. https://github.com/eclipse/che/blob/master/assembly/assembly-wsmaster-war/src/main/webapp/WEB-INF/classes/che/che.properties#L91

On Wed, Mar 13, 2019 at 7:52 PM Dave Neary <dneary@xxxxxxxxxx <mailto:dneary@xxxxxxxxxx>> wrote:

    Hi all,

    I was trying to answer a question on StackOverflow [1] with a request
    for more information. The question is, "how do I open a new browser tab
    from Python code running in Che?"

    I was going to ask whether the author was looking for a way to
    specify a
    "Preview" link and open that preview in a new tab - when I realized
    that
    I have no idea how we do that!

    Anyone know how to prepare a stack with a deployment command that
    allows
    a live preview à la Yeoman?

    Thanks,
    Dave.

    [1]
    https://stackoverflow.com/questions/54882713/how-can-i-open-a-new-browser-tab-from-python-in-eclipse-che

-- Dave Neary - Eclipse Che Ecosystem & Community Manager
    Open Source and Standards - Red Hat
    E: dneary@xxxxxxxxxx <mailto:dneary@xxxxxxxxxx> / T: @nearyd / Ph:
    +1-978-799-3338
    _______________________________________________
    che-dev mailing list
    che-dev@xxxxxxxxxxx <mailto:che-dev@xxxxxxxxxxx>
    To change your delivery options, retrieve your password, or
    unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/che-dev



--

EUGENE IVANTSOV

Red Hat

<https://www.redhat.com/>

eivantsov@xxxxxxxxxx <mailto:eivantsov@xxxxxxxxxx>

<https://red.ht/sig>


_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/che-dev


--
Dave Neary - Eclipse Che Ecosystem & Community Manager
Open Source and Standards - Red Hat
E: dneary@xxxxxxxxxx / T: @nearyd / Ph: +1-978-799-3338


Back to the top