项目作者: gama-platform

项目描述 :
⛴ Docker image of GAMA headless
高级语言: Dockerfile
项目地址: git://github.com/gama-platform/gama.docker.git
创建时间: 2019-09-20T17:49:36Z
项目社区:https://github.com/gama-platform/gama.docker

开源协议:GNU General Public License v3.0

下载


GAMA Docker Container

This project is a simple Docker image that contains a GAMA platform ready to use in headless mode within a minimal Alpine with Eclipse Adoptium OpenJDK 21 64-Bit Server VM container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

In order to run this container you’ll need to install docker.

Usage

Tags

The GAMA Platform Docker repository does contain a lot of different versions of GAMA :

  • Stable releases
  • Rolling releases
    • alpha which is the latest build done with current github code. This is not tested contrary to official releases.
  • Meta tags
    • latest which is the latest official release

Simple usage

The command to run the previously builded image is simple as below

  1. docker run gamaplatform/gama:latest <custom argument for headless execution>

By default, if you don’t add argument after the container image, it will display the help message.

Shutdown the container

The container will stop automatically when the headless run will end.

Enter in the container

If you want to enter in bash inside the gama container, you will have to explicitly change the Docker Entrypoint of the container by this way

  1. docker run -i -t --entrypoint /bin/bash <containerID>

Example

  1. $ docker run --rm gamaplatform/gama:1.8.1 -help
  2. gama-headless.sh
  3. ******************************************************************
  4. * GAMA version 1.8.1 *
  5. * http://gama-platform.org *
  6. * (c) 2007-2019 UMI 209 UMMISCO IRD/SU & Partners *
  7. ******************************************************************
  8. Welcome to Gama-platform.org version GAMA 1.8.1
  9. sh ./gama-headless.sh [Options] [XML Input] [output directory]
  10. List of available options:
  11. -help -- get the help of the command line
  12. -version -- get the the version of gama
  13. -m [mem] -- allocate memory (ex 2048m)
  14. -c -- start the console to write xml parameter file
  15. -v -- verbose mode
  16. -hpc [core] -- set the number of core available for experimentation
  17. -socket [socketPort] -- start socket pipeline to interact with another framework
  18. -p -- start pipeline to interact with another framework
  19. -validate [directory] -- invokes GAMA to validate the models present in the directory passed as argument
  20. -test [directory] -- invokes GAMA to execute the tests present in the directory and display their results
  21. -failed -- only display the failed and aborted test results
  22. -xml [experimentName] [modelFile.gaml] [xmlOutputFile.xml] -- only display the failed and aborted test results
  23. sh ./gama-headless.sh -xml experimentName gamlFile xmlOutputFile
  24. build an xml parameter file from a model

Environment Variables

  • /usr/lib/gama/headless/gama-headless.sh - Headless launch script (Default Entrypoint)

Useful File Locations

  • /opt/gama-platform - The installed version of GAMA

  • /opt/gama-platform/headless/gama-platform.sh - The helping file to launch GAMA Headless

Installing

Docker Hub pull

  1. $ docker pull gamaplatform/gama:[latest|1.8.1|..]

To see all the available tags, see there.

Building

Clone this repository

  1. git clone https://github.com/gama-platform/gama.docker

Move in the cloned repository

  1. cd ./gama.docker/tags/<any-tag-name>

Build the Docker image

  1. docker build -t gama .

Built With

Find Us

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GPL3 License - see the LICENSE.md file for details