Giter VIP home page Giter VIP logo

gama.docker's People

Contributors

actions-user avatar chintanp avatar lesquoyb avatar roiarthurb avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gama.docker's Issues

Sign in Docker-Hub

The GAMA 1.8.0 is ready and an associated Github Action should be working to automatically upload compiling dockerfile (cf. README to see how to try it locally on your computer) :D

Just need to create a gama account to let everyone enjoy the GAMA headless in a docker container ✌

$ docker -v
Docker version 19.03.5, build 633a0ea838

$ docker run gama -help                          
/usr/sbin/gama-headless
******************************************************************
* GAMA version 1.8                                               *
* http://gama-platform.org                                       *
* (c) 2007-2019 UMI 209 UMMISCO IRD/SU & Partners                *
******************************************************************
 Welcome to Gama-platform.org version GAMA 1.8
sh ./gama-headless.sh [Options] [XML Input] [output directory]

List of available options:
      -help     				 	-- get the help of the command line
      -version     				-- get the the version of gama
      -m [mem]    					-- allocate memory (ex 2048m)
      -c        					-- start the console to write xml parameter file
      -v 							-- verbose mode
      -hpc [core] 					-- set the number of core available for experimentation
      -socket [socketPort] 		-- start socket pipeline to interact with another framework

      -p        					-- start pipeline to interact with another framework

      -validate [directory]    	-- invokes GAMA to validate the models present in the directory passed as argument
      -test [directory]		   	-- invokes GAMA to execute the tests present in the directory and display their results
      -failed		   				-- only display the failed and aborted test results
      -xml	[experimentName] [modelFile.gaml] [xmlOutputFile.xml]	-- only display the failed and aborted test results
 sh ./gama-headless.sh -xml experimentName gamlFile xmlOutputFile

      build an xml parameter file from a model

[QUESTION] JDK or JRE?

Hello,

I want to create a docker image of GAMA (which should not be too complicated... Or at least I hope so!) and I'm listing everything which has to be bundled in the container.

I'm looking for GAMA-friendly Linux JDK in a container, and it looks that mainly people upload JRE in place of JDK. The logic behind is that a container will only execute java application and not compile them and, so, a JRE is enough.

So, I'm wondering if GAMA needs a full JDK to be executed or if a simple JRE will be enough? The container will (I think) mainly be used for the headless aspect, so maybe I don't need a JDK inside... Or does GAMA need it to compile GAML files and start the simulation? 🤔🤔🤔

Error on headless start, missing jar

When I try to launch the headless in the docker container, it fails every time...

Here's inside the container :

$ docker run -i -t --entrypoint /bin/bash --rm roiarthurb/gama:1.8.0 
root@af90f06ddb53:/headless# bash gama-headless.sh 
gama-headless.sh
******************************************************************
* GAMA version 1.8                                               *
* http://gama-platform.org                                       *
* (c) 2007-2019 UMI 209 UMMISCO IRD/SU & Partners                *
******************************************************************

An error has occurred.  See the log file
/headless/configuration/1569068396591.log

root@af90f06ddb53:/headless# cat configuration/1569068396591.log 
!SESSION Sat Sep 21 12:19:56 GMT 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-09-21 12:19:56.595
!MESSAGE Could not find extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.400.v20190208-1533.jar
!ENTRY org.eclipse.equinox.launcher 4 0 2019-09-21 12:19:56.597
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:658)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1449)
	at org.eclipse.core.launcher.Main.main(Main.java:44)

It looks like the v1.8.0/GAMA_1.8_Linux.zip archive had some default on it or it's missing an unknown dependency....

Any idea @AlexisDrogoul @hqnghi88 ?

Tools to create custom GAMA image

Goal

Being able to easily create custom GAMA image with custom plugins installed in.

Purpose

Easily explore models with packaged version of GAMA (and compatible with external software like OpenMole)

Several possible strategies

Proposal by @benoitgaudou

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.