gama-platform / gama.docker Goto Github PK
View Code? Open in Web Editor NEW⛴ Docker image of GAMA headless
Home Page: https://hub.docker.com/r/gamaplatform/gama
License: GNU General Public License v3.0
⛴ Docker image of GAMA headless
Home Page: https://hub.docker.com/r/gamaplatform/gama
License: GNU General Public License v3.0
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
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? 🤔🤔🤔
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 ?
Docker Hub will start to create a lot of limitation on its free plan (number of pulls, keeping images), so it'll be a good idea to upload containers on some other platforms.
Here's a list of other possibilities (please update if you know other ones):
Broken here because the name have the commit hash in it...
Dear Devs,
GAMA 1.9.1 has been release, however no docker image is available for this version on docker hub:
https://hub.docker.com/r/gamaplatform/gama/tags
Would it be possible to publish one?
Best,
Romain
Being able to easily create custom GAMA image with custom plugins installed in.
Easily explore models with packaged version of GAMA (and compatible with external software like OpenMole)
Proposal by @benoitgaudou
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.