Giter Site home page Giter Site logo

repast's Introduction

Repast Simphony Development Environment

This is a basic eclipse-based image with the Repast Simphony development environment.

Tags

Latest Repast Simphony:

  • latest

Usage

Since this is an image for development, the workspace folder is shared from the host. Besides, for enabling writing permissions it requires the host user id (UID), by default 1001, but you can change it as required.

If you need to rebuild the image, use the following command (with your host UID and UNAME):

docker build --build-arg UID={YOUR HOST UID} --build-arg UNAME={YOUR HOST UNAME} -t uolmultiot/repast .

For running:

  • With no opengl support:

docker run --name repast -it -e DISPLAY -v $XAUTHORITY:/home/{YOUR HOST USER NAME}/.Xauthority --net=host -v {YOUR HOST WORKSPACE PATH}:/home/{YOUR CONTAINER USER NAME}/eclipse-workspace uolmultiot/repast:latest ./eclipse/eclipse

  • With opengl:

docker run -ti --name repast -e DISPLAY -v="/tmp/.X11-unix:/tmp/.X11-unix:rw" -v $XAUTHORITY:/home/{YOUR UNAME}/.Xauthority --net=host --device=/dev/dri/card0:/dev/dri/card0 --device=/dev/dri/renderD128:/dev/dri/renderD128 --privileged -v {YOUR HOST WORKSPACE PATH}:/home/{YOUR UNAME}/eclipse-workspace uolmultiot/repast:latest ./eclipse/eclipse

Troubleshooting

  • For the eclipse GUI to work you might need to enable connection to xserver from the container, on the host terminal:
  1. xhost +
  2. Run the container (See command for running container above)
  3. docker inspect --format '{{ .NetworkSettings.IPAddress }}' $containerId
  4. xhost -
  5. xhost +local: $IP (IP obtained in step 3)
  • From within eclipse, you might need to configure Groovy compiler version 2.4 at project and workspace level. Project -> Groovy Compiler and Window -> Preferences -> Groovy -> Compiler -> Switch to 2.4.xx.

  • If you have problems with video rendering (opengl), find out the right dri devices to map in the docker run command, by running in the host: ls dev/dri then, replace the left side of the --device parameters with the right device e.g. --device=/dev/dri/card1:/dev/dri/card0 For me, the above run command works for Intel UHD 620 Graphics. You cand find out yours with: sudo lspci -s 02 -v

  • You can test if rendering is correclty mapped by running this command inside the container: sudo glxinfo | grep "OpenGL version string" | rev | cut -d" " -f1 | rev you should get the version of driver running, normally the same on the host.

  • You can read this blog that shows alternative solutions for Nvidia cards.

Acknowledgements

  • Some ideas for script and adaptation of running command from this blog.

repast's People

Contributors

mperhez avatar

Stargazers

Rob avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.