Closed masinter closed 2 years ago
@reflektoin thanks for your note.
I tried this myself and was able to (re)install docker desktop for windows and, following the advice in https://github.com/Interlisp/medley/wiki/Running-with-Docker and I had problems.
VNC uses socket 5900. X uses socket 6000. The container has Xvnc running in it. If Medley uses the DISPLAY of the Xvnc server, then you want -p 6000:6000 (instead of 5900) and want the command line to use the DISPLAY setting to be the IP address (followed by :0) of the machine running X. I can get this to work on the command line inside the container
export DISPLAY=
If you want to use VNC, that works OK if I use a VNC viewer I got from Microsoft store, but TightVNC complains about authentication or loopback. The problem that @reflektoin reported is that CHAT(SHELL) doesn't work unless I do
export SHELL=/bin/sh
before calling run-medley.
The docker image don't pass on the screen dimensions but always use fixed 1200x720.
Running with Docker has the ability to use https://docs.docker.com/storage/volumes/ volumes to mount various volumes on the docker host, including read-only. It would be useful to include an example of mounting (in the docker run command) of mounting /mnt/c readonly the c: volume and mounting the user's "ilisp" directory as /home/medley.
Probably we will need to push some of the logic in the "online" edition into the image.
This is a one-line fix in maiko if we assume that /bin/sh
is a usable/reasonable default (assuming it's present in /etc/shells
) if SHELL
is not set.
Any objections to that?
I think that's fine. The rest of the discussion should be another issue on the "Running with Docker" instructions
This one was closed by Interlisp/maiko#424
I'm not sure what (CHAT 'SHELL) should do when running in a docker container. (CHAT "hostname") should run "ssh" without having to set up a tunnel to the server -- should we set up the ssh tunnel? Also -- using docker with X rather than VNC -- is that important?
@fghalasz @stumbo what do you think?
Discussed in https://github.com/Interlisp/medley/discussions/688