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.

Nix Entry Shell with TTY

See original GitHub issue

A major weak spot right now for Windows Containers is the support for a POSIX shell that supports TTY.

Installing a POSIX-compliant runtime and SHELL statement pointing at an installed shell (bash, sh, zsh) doesn’t offer TTY and stdout is only capable on docker without the -t option. You essentially have to either issue commands with no stdout or not be able to interact.

Additionally, the Windows Subsystem for Linux doesn’t install on containers.

Real world example of why this is important:

Jenkins v2 Swarm can’t light up Windows Container support because executors expect to be able to issue the id and cat commands with TTY with build containers

With AWS bringing Windows Containers into Beta (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_Windows.html), this seems like a huge win for MS to sell Cloud Lic for Jenkins users.

BTW, Fantastic work on this container digest. We have all been cultivating this stuff since last fall, but good to see some MVPs organizing the public effort.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
StefanScherercommented, Apr 30, 2017

Thanks @toddpi314, my journey with Windows containers began long before I became a MVP.

I agree, a Jenkins swarm working with Windows Containers would help a lot of people. I wonder why they depend on third-party tools like id and cat as they are not part of vanilla Windows. So here the problem begins as neither Cloudbees nor Microsoft really can help to make it work. I only can suggest to start a discussion about removing that dependency in the Jenkins swarm and use Windows native commands instead. Are there any open issues in the Jenkins / Jenkins swarm repos?

I only know these issues arround MSYS / Cygwin:

0reactions
StefanScherercommented, Jun 17, 2017

I’ll close this issue here as it has to be resolve probably in cygwin / mingw. We have collected a lot of links to other issues to follow the progress there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Development environment with nix-shell - NixOS Wiki
Nix can be used to provide some kind of virtual environment through the nix-shell command. If you already have a nix package definition...
Read more >
CLI guideline - NixOS
nix command provides a single entry to a number of sub-commands that help developers and system administrators in the life-cycle of a software...
Read more >
Cannot set Elvish shell as login shell #42764 - NixOS/nixpkgs
Issue description When setting the login shell to elvish in configuration.nix, I get the error: error: ...
Read more >
Writing One Shell script to first enter nix shell, then enter the ...
I try to do this by writing a shell script, run ./enter.sh . #!/bin/bash nix-shell -p python38Full python38Packages.virtualenv; source .venv/bin ...
Read more >
How to Learn Nix, Part 47: New and unimproved shells
nix shell , the command that opens a shell, was renamed to nix develop . nix develop is not only more to type...
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