sharamfm / mdv-code-jam

0 stars 0 forks source link

Using libraries in code #1

Open anooprh opened 10 years ago

anooprh commented 10 years ago

I am not sure what you mean when you say use a docker environment to run our code.

Pardon me since I am not familiar with docker. But from what info I found, I did not get a way to install libraries in docker as part of bootstrap script.

I am planning to use python with numpy and scikit learn packages. So typically I would give a requirements.txt file with my dependencies. Now for that to happen, python and pip should be installed and I should have root access to run the scripts.

I can include some of the steps in build.sh, provided I have root access in the machine. Will I have it. Can you be bit more specific about the environments you are planning to run the script on

skyshard commented 10 years ago

Yes, a requirements.txt file alongside your code (and any apt-get commands for python development dependencies, etc needed as well in the build.sh) will work perfectly. You will be able to do apt-get / pip install / etc inside the container, think of it as similar to an ubuntu 14.04 vm. We will also contact you if there are any issues running your code, these are just general guidelines.

This post might help with an overview of containerizing python applications: https://www.digitalocean.com/community/tutorials/docker-explained-how-to-containerize-python-web-applications

Overall, don't worry too much about the docker aspect. We're most interested in your solutions, not the build scripts