Viewing Images

15 views
Skip to first unread message

Matt Heckathorn

unread,
Apr 7, 2015, 2:21:05 PM4/7/15
to is...@googlegroups.com
Hey Jon,

First off, thank you for your work on ISLET.  One of the tools we use in training produces images (png, svg, ps) that need to be viewed by the student.  Is there a method for doing this with ISLET?

Thanks,
Matt

Jon Schipp

unread,
Apr 7, 2015, 4:52:03 PM4/7/15
to Matt Heckathorn, islet
Hello Matt, 

This will be less of an ISLET thing and more of Docker container configuration.
You can do this by passing options through an ISLET config file which are passed to ``docker run''.
There's a few ways it could be done with lesser or greater feasibility, two ideas come to mind:

1.) plain X11 forwarding - bind mount an X11 unix socket from the host, the user sets the DISPLAY variable in the container with their workstation's IP (dependent on networking/firewalls). e.g. container>$ display data.png
2.) Run a web server or file sharing service on the host and mount that directory in the containers e.g.
$ cat /etc/islet/test.conf
...
MOUNT="-v /var/ww/html:/images"
...
Users can generate the images from their containers and copy/move the files to /images which would be served over the network. Then they can view them via a provided URL in a web browser, ftp, mount it locally, etc. depending on the service used.

There are other ways to do this but you just have to be creative.
I plan to look more into this area in the future to make it easier but right now ISLET is suited for working with
interactive command-line environments.


--
You received this message because you are subscribed to the Google Groups "ISLET" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islet+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Matt Heckathorn

unread,
Apr 8, 2015, 7:40:29 AM4/8/15
to is...@googlegroups.com, matthec...@gmail.com
Thanks for the quick reply Jon.

I decided to make use of the web server option, and after altering the permissions on the /var/www/html directory to allow the demo user to write to it, it meets our needs.

Thanks again,
Matt

Jon Schipp

unread,
Apr 8, 2015, 12:03:05 PM4/8/15
to Matt Heckathorn, islet
Awesome, glad you could get it working. Let me know if you need anything else.
Thanks
Reply all
Reply to author
Forward
0 new messages