Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addresses #10 #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,35 @@ Build the Docker image
```
docker build -t gama .
```

## Docker compose
```
services:
gama:
image: gamaplatform/gama:alpha
# Modify here the command to be run by the container upon execution
command: gama-headless -v /opt/gama-platform/headless/samples/roadTraffic.xml /opt/gama-platform/output
container_name: gama_container
# Map the outputs of the execution to a local "output" directory
volumes:
- ./output:/opt/gama-platform/output
restart: no
```
You can run the following to execute the example docker compose file :
```
$ docker compose up -d
```
If you want to run your own model inside the container, map it to volumes inside the container :
```
services:
gama:
image: gamaplatform/gama:alpha
command: gama-headless -v /opt/gama-platform/headless/your_model/ExperimentFile.xml /opt/gama-platform/output
container_name: gama_container
volumes:
- ./output:/opt/gama-platform/output
- /path/to/your_model:/opt/gama-platform/headless/your_model
restart: no
```
## Built With

* GAMA-Platform - https://github.com/gama-platform/gama/releases/
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
gama:
image: gamaplatform/gama:alpha
# Modify here the command to be run by the container upon execution
command: gama-headless -v /opt/gama-platform/headless/samples/roadTraffic.xml /opt/gama-platform/output
container_name: gama_container
# Map the outputs of the execution to a local "output" directory
volumes:
- ./output:/opt/gama-platform/output
restart: no