HUB
Sign inSign up

xbaro/codalab

By xbaro

•Updated over 10 years ago

Codalab installation from sources

Image
0

1.1K

xbaro/codalab repository overview

⁠Database

⁠Run the database

As database we will use MariaDB. This database will not be accessible from outside. To start the database you can run this command:

docker run -d -v /data/see4c/Codalab/data/db:/var/lib/mysql -e MYSQL_DATABASE=codalab_db -e MYSQL_USER=codalab -e MYSQL_PASSWORD=.codalab. --name=codalab_db k0st/alpine-mariadb

It is important to give to the database a name to facilitate use it when running Codalab.

Create the databases

Connect to the running docker instance and open the client:

docker exec -it codalab_db /bin/bash 
# mysql -u root mysql

If you get an error TERM environment variable not set. just execute export TERM=dumb before the mysql command.

Create the database for Codalab competitions and add grant the user:

create database codalab_website;
GRANT ALL ON codalab_website.* TO 'codalab'@'%';

Create the database for Codalab Worksheets and grant the user:

create database codalab_bundles;
GRANT ALL ON codalab_bundles.* TO 'codalab'@'%';

The first time you run the docker with Codalab, we need to initialize the database:

docker run -it --name codalab_srv --link codalab_db:codalab_db xbaro/codalab /bin/bash

TODO: Use sed to replace parameters from configuration files with provided settings

Tag summary
Recent tags
Content type
Image
Digest
Size
336.3 MB
Last updated
over 10 years ago
docker pull xbaro/codalab:latest