-
Notifications
You must be signed in to change notification settings - Fork 129
User_Docker
Isabelle Guyon edited this page Nov 16, 2017
·
19 revisions
This page is a cheat sheet for organizer who want to run their competition in their own docker. This page is inspired by the other cheat sheet.
Imagine that you want to change/modify the version of Python Codalab competition used by default codalab/default
, which points right now to docker-codalab-legacy-worker a.k.a. ckcollab/codalab-legacy
.
One way is to:
- Install docker. Create a repo e.g. myrepo/codalab
- At the prompt, type:
docker run -it -u root ckcollab/codalab-legacy /bin/bash
- The prompt will look like
root@78e82f680994$
, make a note of the container ID e.g.78e82f680994
. - Install anything you want at the docker container shell
- Exit the shell with
exit
-
docker commit 78e82f680994 myrepo/codalab:legacy
(replacelegacy
by another name or a version number) docker login
docker push myrepo/codalab:legacy
Another way is to:
- Folk or download docker-codalab-legacy-worker from Github.
- Put the docker image in a new directory:
mkdir myrepo
cp /path/to/docker-codalab-legacy-worker myrepo/codalab
cd myimage
docker build -t myrepo/codalab:legacy .
Be sure to run the docker build command from within the directory that contains the Dockerfile.
3) Push your image to the repo:
docker push myrepo/codalab:legacy