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.

I have no name! instead of user name in terminal running custom devfile

See original GitHub issue

After creating a custom minimal devfile:

metadata:
  name: MyDevfile
components:
  - mountSources: true
    args:
      - sleep
      - infinity
    memoryLimit: 512Mi
    type: dockerimage
    alias: ubuntu
    image: picoded/ubuntu-openjdk-8-jdk
apiVersion: 1.0.0

Opening the terminal and executing /bin/bash the user has no name: I have no name!@workspace1grh40aawaiokuav:/workspace$

Also any command requiring root privileges is unauthorized.

I’m trying using multiple standard docker images, but found the same problem. I need a vanilla system where i can try to install some tools, so having a basic user, sudo and root privileges is mandatory.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ultrafabcommented, Apr 22, 2020

@sleshchenko @amisevsk first of all thank you for your support, i’ll try to generate a docker with the arbitrary user patch and try.

Also thanks for the insight about the security issues, i fully understand the rationale behind the Openshift choices.

Just to try to explain my use case and why i’m looking for this kind of solutions: sometimes i would like to be able to test some tools or libraries inside a sandbox running on our company servers, behind a firewall. Sometimes the sandbox is a full VM (kvm) or recently an LXD container. The problem is having an IDE able to reach the sandbox, without the needing of mapping SMB/NFS folders, etc. Eclipse CHE seems the perfect solution, cause if i’m at home (during this lockdown) i can just open my laptop (win/ubuntu or whatever) spinup a container where i’ve a terminal, a working sudo user and an IDE. Of course, for any other needs, during a standard dev process, we have standard and “locked” docker images were all the tools are already installed and under control.

0reactions
che-botcommented, Oct 28, 2020

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When I open Terminal, I get an "I have no name!" prompt
I am asking why, suddenly, my bash prompt displays "I have no name!" rather than a hostname. Perhaps its just a coincidence that...
Read more >
Chapter 4. Authoring devfiles - Red Hat Customer Portal
A minimal devfile sufficient to run a workspace consists of the following parts: Specification version; Name. Example of a minimal devfile with no...
Read more >
Using a customized devfile to create a workspace - IBM
On the main dashboard, click Get Started Page in the upper left. Select the Custom Workspace tab. For a custom devfile enter a...
Read more >
Portable Development Environments using Devfiles
In the new dialog window, enter the name devfile-project and click on Create. ... Hopefully the workspace creation is finished by now, if...
Read more >
Unix Basics
By default, Mac OS X and Linux's Terminal runs the bash shell. ... man <command-name> // Display manual page for the command //...
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