Hi Maria, NetLogo is tricky to run inside a docker container if you want to bring up its GUI. We set up a NetLogo Docker example at https://github.com/comses/wolf-sheep last year to see what it would take to have a "fully repeatable" netlogo model + analysis pipeline. It's still a work-in-progress and isn't archival-ready but should still be working as a proof-of-concept prototype.
In order to install any custom extensions you'd have to bundle them explicitly in your codebase (ideal) or download them from the network (with the assumption that you're accessing them from a permanent URL). In the first case you would include the extension zipfile in your codebase repository and have a COPY / ADD command in your Dockerfile to move that extension into your Docker image. In the second case your Dockerfile would initiate a wget or curl to download the extension from a URL. In order to bring up the netlogo GUI we've been installing NetLogo into a VNC container and then run a remote desktop into the Docker container with NetLogo installed. The steps to do this are available at https://github.com/comses/wolf-sheep#interact-with-the-workflow - this isn't our ideal workflow but it's the best we've found so far and are very open to any suggestions / improvements. Best regards, Allen On Tuesday, January 30, 2018 at 6:29:26 AM UTC-7, María wrote: > > Hi, > > I'm trying to generate a Docker image containing NetLogo 5.2.1 and some > extensions. So far, I found similitude/netlogo-sample-simmer ( > https://hub.docker.com/r/similitude/netlogo-sample-simmer/builds/be7mncockt87fxdt3s8t3km/) > > and similitude/netlogo-docker ( > https://hub.docker.com/r/similitude/netlogo-docker/~/dockerfile/). > > I am able to launch a basic NetLogo docker image with: > > docker run --name testingnl -v SOURCE_FOLDER:/nl1 -i -t > similitude/netlogo-sample-simmer /bin/bash > > Now I would need to install the extensions I need for my code but I > haven´t been able to find an example code or something to follow. > > Finally, I would like to test if the installation goes alright and for > that I would need to run the model from Docker Terminal, right? How can I > do that? > > Thanks for the help! -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.