https://github.com/scikit-multilearn/development-docker
A development docker for scikit to use with pycharm
https://github.com/scikit-multilearn/development-docker
Last synced: 10 months ago
JSON representation
A development docker for scikit to use with pycharm
- Host: GitHub
- URL: https://github.com/scikit-multilearn/development-docker
- Owner: scikit-multilearn
- Created: 2017-02-05T13:30:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T14:13:24.000Z (about 8 years ago)
- Last Synced: 2025-07-28T11:41:19.726Z (11 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README



A docker setup for developing scikit.ml, heavily inspired by https://github.com/GeographicaGS/Docker-Python_Development
This docker contains two python environments set for scikit-multilearn: 2.7 and 3.x, to use the first one run `python2` and `pip2`, the second is available via `python3` and `pip3`.
You can pull the latest version from Docker hub using:
```bash
$ docker pull niedakh/scikit-multilearn-dev:latest
```
You can start it via:
```bash
$ docker run -e "MEKA_CLASSPATH=/opt/meka/lib" -v "YOUR_CLONE_DIR:/home/python-dev/repo" --name scikit_multilearn_dev_test_docker -d niedakh/scikit-multilearn-dev:latest
```
To run the tests under the python 2.7 environment use:
```bash
$ docker exec -it scikit_multilearn_dev_test_docker python3 -m pytest /home/python-dev/repo
```
or for python 3.x use:
```bash
$ docker exec -it scikit_multilearn_dev_test_docker python2 -m pytest /home/python-dev/repo
```
To play around just login with:
```bash
$ docker exec -it scikit_multilearn_dev_test_docker python3 -m pytest /home/python-dev/repo
```
## Using via docker-compose
You can also build it with docker-compose while in the directory to which you cloned the repository - if you do so, you need to clone the repository and change the volume mappings. Afterwards just run:
```bash
$ docker-compose build
```
You can use it in pycharm with pycharm's docker-compose interpreter.