node
node copied to clipboard
akash provider lease-shell and the way it handles EOF
akash v0.16.4-rc2.
There are different use-cases getting broken due to the way akash provider lease-shell handles EOF.
- Can upload the data into the container using this command, despite the error:
$ tar -cf - -C /usr/share -- info | akash provider lease-shell --stdin app1 -- tar -xf - -C /root
Error: EOF: failed while reading from stdin
- When passing "z" flag (compressed tar), it just hangs until I Ctrl+C it:
$ tar -czf - -C /usr/share -- info | akash provider lease-shell --stdin app1 -- tar -xzf - -C /root
halted by signal: interrupt
even a small file:
$ tar -czf - -C /etc -- hosts | akash provider lease-shell --stdin app1 -- tar -xzf - -C /root
halted by signal: interrupt
- It is waiting forever on user input (neither Ctrl+D is helping):
$ echo hi30 | akash provider lease-shell --stdin app1 -- cat -
hi30
<prompt hangs in here>
I think the correct behavior here would be
-
--stdinclose when EOF is received by the local process -
--tty- expect interactive console with user input
Todo
- [ ] check provider-services 0.1.0 (and 0.1.1-rc1 probably as well)