$ cp .env_sample .env
$ docker-compose up -d
# TODO: add how to generate dummy data
# and if you'd like to make a user for testing...
$ docker-compose exec django python manage.py createsuperuser
# Non "end to end tests"
$ docker-compose exec django py.test -m "not e2e"
# "End to end tests" (a shell script to launch a selenium docker container)
$ ./run_selenium_tests.sh
# If you are on Mac OSX it is easy to watch these tests, no need to install
# anything just do:
$ open vnc://0.0.0.0:5900
# And login with password "secret"
NOTE: Pisano Period competition may be out of date
https://github.com/codalab/competition-examples/tree/master/v2/pisano_period
TODO: Wheat Seed competition
To re-build the image:
docker build -t competitions-v2-compute-worker -f Dockerfile.compute_worker .
Updating the image
docker build -t codalab/competitions-v2-compute-worker:latest -f Dockerfile.compute_worker .
docker push codalab/competitions-v2-compute-worker
# install docker
$ curl https://get.docker.com | sudo sh
$ sudo usermod -aG docker $USER
# >>> reconnect <<<
$ docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-d \
--env BROKER_URL=<queue broker url> \
--restart unless-stopped \
--log-opt max-size=50m \
--log-opt max-file=3 \
codalab/competitions-v2-compute-worker:latest