oTree Development Environment

A Docker environment for programming against multiple oTree server

2
contributors
Get started
16 commitsLast commit ≈ 5 months ago0 stars0 forks

What oTree Development Environment can do for you

Development oTree cluster setup

N.B. This docker setup does not use the official oTree source release but a development version found here (https://github.com/obeliss-nlesc/otree-core.git). This docker setup spins up 3 instances of oTree custom server with 3 accompanying Postgres databases. Its main use is for development and testing purposes. The instances are loaded with the demo apps by default.

Running

Copy _secrets.env to secrets.env and modify accordingly. Check config.env to change the default settings for the Docker images that will be built. By default the Docker images will pull the oTree experiments from GIT_EXP_URL which is defined in config.env file.
In a new terminal, go to the root of this project. To run a 3 oTree instance setup run:

make up

The 3 servers are accessed on http://localhost:9091, http://localhost:9092 and http://localhost:9093. You can log in with username admin and the password you assigned to OTREE_ADMIN_PASSWORD in your secrets.env.

Stopping

To stop the services run:

make down

Deleting data

To delete all otree docker containers, volumes, networks.

make clean
Keywords
Programming languages
  • Makefile 48%
  • Shell 33%
  • Dockerfile 19%
License
</>Source code

Participating organisations

Netherlands eScience Center
Social Sciences & Humanities
Social Sciences & Humanities

Contributors

Reggie Cushing
Reggie Cushing
Ewan Jacov Cahen
Ewan Jacov Cahen
Netherlands eScience Center

Related projects

OBELISS

Online Behavioral Experiments in the LISS panel

Updated 3 months ago
Finished

Related software

oTree Demo Experiments

OT

oTree demo experiment: Public goods game

Updated 1 day ago
5

oTree Waiting Room

OT

A load balancer for oTree servers.

Updated 1 day ago
2