Thanks Jan for sharing! I never used Docker for training/workshop, but I would 
suspect a priori that Docker would be not a straightforward solution for many 
people. This technology is still so new and still not a turn-key solution. VM 
can be easier in that regard (with its own set of baggage). The principle that 
I learned from others regarding novice learning is: minimize the infrastructure 
set-up procedure and things unrelated to the core skills to be learned.

-- 
Wirawan Purwanto
Computational Scientist, Research Computing Group
Information Technology Services
Old Dominion University
Norfolk, VA 23529

On 9/18/18, 2:30 PM, "Jan T Kim via discuss" <[email protected]> 
wrote:

    Hi All,
    
    I've recently run some in-house training using Docker and images I prepared
    for the sessions. This choice was motivated by a combination of reasons,
    including
    
        * using the opportunity to introduce Docker and promoting its use
          in-house and beyond,
    
        * leaving participants with a system they can continue to work with,
          and that can be adapted / extended for their requirements,
    
        * minimising problems caused by conflicts with pre-existing
          installations on participants' computers.
    
    I emailed participants ahead of the first session, asking them to install
    Docker using the instructions on the Docker website. Also, I included an 
intro
    to Docker at the start of the first session, and the first hands-on was on
    starting a Docker container running the image I had prepared.
    
    Installations on Windows proved less straightforward than I anticipated
    from my naive Linux perspective. A somewhat major source of problems was
    the requirement of Windows 10 Professional or Enterprise for installing
    the current Docker Community Edition. A majority of particpants did manage
    to get the legacy "Docker Toolbox" to work, but that is rather less of a
    smooth install than Docker CE.
    
    Further, I got participants started with a bind mount right from the
    start, and the rather longish command line required for that caused more
    delays and problems than I had anticipated. My thinking behind this was
    that I wanted to avoid people ending up in a state where they wrote
    something substantial in the container and then would be unable to
    save their work. With the benefit of hindsight now, I consider accepting
    that risk for the first stages of the shell lesson, and to introduce
    bind mounting after the first coffee break or so.
    
    In conclusion, I would not recommend Docker as a backup unreservedly.
    It does require preparation of an image and pushing that to DockerHub,
    and installing Docker can turn out to be fiddly and cause delays. However,
    as a primary option I think Docker is very good, because (1) it provides
    all participants with an identical environment (defined by the image),
    and (2) having Docker on their laptop after the workshop enables them to
    benefit from many images that are already available. The latter is most
    definitely worth having where participants' collaborators and employers
    use Docker to provision software and working environments. Another
    advantage is that all prerequisite software and data can be bundled up
    in one image, eliminating the need for time to allow sorting out setup
    problems at the start of python / git / R modules.
    
    Do others have experiences and thoughts regarding Docker-based workshops?
    I'm definitely interested.
    
    Best regards, Jan
    
          
    On Tue, Sep 18, 2018 at 09:49:55AM -0400, Dav Clark via discuss wrote:
    > To Tim's point on Docker vs. Python/R installation, I will say that at UC
    > Berkeley, prior to the emergence of the JupyterHub approach, some large
    > classes were using VM-based solutions. This provides a single positive
    > target (get virtualization working) vs. a complex potential target of
    > dependency hell - users with multiple versions of R/Python already
    > installed, and interacting in confusing ways. We quickly came up with a
    > list of known problems and solutions that we kept track of via a local
    > mailing list.
    > 
    > The initial requirements (work in low resource / poor internet) are a
    > useful point of reference for problems we have not solved at Gigantum...
    > but I still think we have a nice solution that provides some of the
    > accessibility of binder, while empowering new users to be "producers" of
    > their own environments right away.
    > 
    > Regarding the server solution - I wonder if you've thought about just
    > putting together a cheap standalone server? Intel NUCs, for example can be
    > quite inexpensive, fit in the palm of your hand, have great WiFi (Intel,
    > natch), and are modestly upgradable (RAM / storage). Running RStudio on
    > such a system serving as an ad-hoc wireless hub would work in most
    > locations as long as there is electricity. Single-node JupyterHub is also
    > getting quite easy to set up. Or you could literally give everyone a
    > raspberry pi who needed one for quite cheap as well! (if only the pi zero
    > didn't have the foolishly small HDMI port...). This also avoids security
    > concerns with using a mission critical system for supporting students.
    > 
    > Best,
    > Dav
    > 
    > On Tue, Sep 18, 2018 at 1:33 AM Tim Head via discuss <
    > [email protected]> wrote:
    > 
    > > Hey there,
    > >
    > > I work on mybinder.org.
    > >
    > > On Tue, Sep 18, 2018 at 1:41 AM Darya Vanichkina via discuss <
    > > [email protected]> wrote:
    > >
    > >>
    > >> Do colaboratory and/or binder and/or any of the other tools deal with
    > >> this in an efficient way???
    > >>
    > >>
    > > Speaking for mybinder.org: Technically yes, in practice probably no.
    > >
    > > The tool we use behind the scenes to turn a repository into a running
    > > docker image is 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepo2docker.readthedocs.io%2Fen%2Flatest%2F&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=WAnYYWpgUfmFHhNX4F1C0TiLf5jtOveBYTk50cOp1jg%3D&amp;reserved=0
 which you
    > > can also use locally. However it uses Docker, so if the setup 
instructions
    > > for the carpentry required software aren't working, chances are that
    > > installing Docker won't work either.
    > >
    > > If you install `pip install jupyter-repo2docker` and then run 
`repo2docker
    > > 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2F&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=9c%2B0GcVSPVeMLMDUkx7ZHojv%2F7YapPkHEgOOxwqNaVA%3D&amp;reserved=0`
 in a terminal you get exactly what
    > > you'd get if you visited 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmybinder.org%2Fv2%2Fgh%2Fnorvig%2Fpytudes%2Fmaster&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=4ghblL9iouMtbEPG%2FMH98DH7MYPLQt89J6jJrVqQdMA%3D&amp;reserved=0
    > >
    > > T
    > > --
    > > Let us be your hub hero 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhubhero.net&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=SudZHAvnFE61RkKj93DaG6zZRHlSjKaTrJV00Gl%2Fenc%3D&amp;reserved=0
    > > *The Carpentries 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcarpentries.topicbox.com%2Flatest&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=Y8f916kbt5LI1k%2B0YBmTzPWyjht9ctHTJZq7zLw6HU8%3D&amp;reserved=0>*
 / discuss /
    > > see discussions 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcarpentries.topicbox.com%2Fgroups%2Fdiscuss&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=8hkD1%2BI9tIHk0LRd2eJOCiCn85gdMHi7uRRzBA8b9%2Bk%3D&amp;reserved=0>
 +
    > > participants 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcarpentries.topicbox.com%2Fgroups%2Fdiscuss%2Fmembers&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=aCn0yhV20rS4WAoh%2BuhBI3oQqS5XVZQGeOMgju8MFDU%3D&amp;reserved=0>
 + delivery
    > > options 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcarpentries.topicbox.com%2Fgroups%2Fdiscuss%2Fsubscription&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=sTnKWSm3onRSPkPyUAB2qI47xlpeBqAE1cWDvacx7mI%3D&amp;reserved=0>
    > > Permalink
    > > 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcarpentries.topicbox.com%2Fgroups%2Fdiscuss%2FT963f4b806cda01a2-M6ccddc1067af3173e5dd2fae&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052458916&amp;sdata=6po10gQ3LDdH2vpRNsLBS%2FIBeG3phU7tr%2Bqwy40e3Fs%3D&amp;reserved=0>
    > >
    
    ------------------------------------------
    The Carpentries: discuss
    Permalink: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcarpentries.topicbox.com%2Fgroups%2Fdiscuss%2FTd76d2aa1ce58e4c3-M469ef340c531efd1d7aa98a4&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052468925&amp;sdata=tEew39R5g%2FVkExQC3IQY5lzHgo%2BHdszi%2FxXCKLppH%2Bs%3D&amp;reserved=0
    Delivery options: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcarpentries.topicbox.com%2Fgroups%2Fdiscuss%2Fsubscription&amp;data=02%7C01%7Cwpurwant%40odu.edu%7C70a23a731a344d0c7e6c08d61d94c083%7C48bf86e811a24b8a8cb368d8be2227f3%7C0%7C0%7C636728922052468925&amp;sdata=VLkuJj1tty%2FGgd8rBjZIuIkvHX8CuR3eyv8pCrdo%2BDQ%3D&amp;reserved=0
    


------------------------------------------
The Carpentries: discuss
Permalink: 
https://carpentries.topicbox.com/groups/discuss/Td76d2aa1ce58e4c3-Ma73c1ea6eb5b43575b53fa87
Delivery options: https://carpentries.topicbox.com/groups/discuss/subscription

Reply via email to