A Docker Container for CoderDojo Zen platform. Designed for Local development and testing of code.
361
A Docker Container for CoderDojo Zen platform. Designed for Local development and testing of code. The Container is setup to auto start a postgres server and launch the zen services. It'll then run the e2e test on your code.
listen_addresses = '*' to postgresql.confhost all all 172.17.0.0/16 ident to pg_hba.confdocker run -ti -p 4567:4567 -v ~/cp-local-development:/home/jos/code butlerx/coderdojo-local-zen /bin/bashctrl-c cd /home/jos/codesu jos./localdev.js init zenctrl- d to exit the containerThen you're ready to run the code
To start the service
docker run -ti \
-p 8000:8000 \
-p 4567:4567 \
-p 5432:5432 \
-v ~/cp-local-development:/home/jos/code \
butlerx/coderdojo-local-zen /bin/bash
To run the code with your own database
first change localhost to database in cp-local-development/system.js
docker run -ti \
-p 8000:8000 \
-p 4567:4567 \
--add-host=database:172.17.0.1 \
-v ~/cp-local-development:/home/jos/code \
butlerx/coderdojo-local-zen /bin/bash
This is not currently built using a dockerfile but is planned to replace it
Content type
Image
Digest
Size
579.7 MB
Last updated
over 10 years ago
docker pull butlerx/coderdojo-local-zen