Skip to content

UserNotes:euank

Euan Kemp edited this page Jan 2, 2017 · 5 revisions

2017-01-01

ptty allocation breaks things

The command euank/htop is public. Running the following works:

$ ssh -t alpha.cmd.io euank/htop
# wait a couple seconds
q
$ # back to terminal prompt

However, if I send a large number of terminal resize events (e.g. just drag the terminal to be larger and smaller for a few seconds), the process no longer responds to 'q', and I'm left with what's basically a broken terminal (ctrl+c, f10, and q all don't exit).

The process also never resizes

2016-11-01

sl and terminal issues

Installed my euank/sl command, observed some messyness of terminal stuff. I'm totally unsurprised and it could lie in the TERM var mismatch + not doing the same term translation as docker. *shrug

Registry integration

This needs some sort of registry integration that isn't bad. I should be able to docker push directly to cmdio. Potentially I should be able to sorta "push into prebuild templates".

So one, the simplicity of this thing will be broken the second it depends on a custom build/push tool that isn't ssh, so that's out... other than piping docker save output or implementing it as a git push hook (where I effectively push a dockerfile and reference a name of a cmd it builds to somehow).

Workflow might look like:

$ git init
echo 'hello world' > script
cat > Dockerfile <<EOF
FROM alpine
COPY script script
RUN chmod +x script
CMD script
EOF
$ git remote add cmd ssh://progrium@cmd.io/dockerimages/cmd.io/hello-world
$ git push -u cmd HEAD
$ ssh cmd.io :add hello-world cmd.io/hello-world

Of course, dealing with storing docker images is a pain! May I recommend just proxying to ECR or the like?

more terminal stuff

On further examination, it seems very likely that resize events are being lost somewhere in there.

Try also the wonderful jess/htop (with config TERM=xterm).

Also, may I recommend defaulting TERM?

Clone this wiki locally