Skip to content

brendon-lind/competitions-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codalab Competitions v2

Installation

$ 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

Running tests

# 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"

Example competitions

NOTE: Pisano Period competition may be out of date

https://github.com/codalab/competition-examples/tree/master/v2/pisano_period

TODO: Wheat Seed competition

Building compute worker

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

Spinning up a 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 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.1%
  • Python 38.6%
  • HTML 4.8%
  • CSS 1.4%
  • Shell 0.1%
  • Dockerfile 0.0%