Simplify data-set labeling for machine learning activities
Clone the repo and cd to the directory:
git clone https://github.com/dmitryduev/zwickyverse.git
cd zwickyverseCreate secrets.json with the Kowalski login credentials and admin user/password for the website:
{
"kowalski": {
"user": "USER",
"password": "PASSWORD"
},
"database": {
"admin_username": "ADMIN",
"admin_password": "PASSWORD"
}
}Change private.caltech.edu on line 34 in docker-compose.yml and line 88 in traefik/traefik.toml to your domain.
Run docker-compose to start the service:
docker-compose up --build -dTo tear everything down (i.e. stop and remove the containers), run:
docker-compose downIf you want to use docker run instead:
Create a persistent Docker volume for MongoDB and to store thumbnails etc.:
docker volume create zwickyverse-mongo-volume
docker volume create zwickyverse-volumeLaunch the MongoDB container. Feel free to change u/p for the admin,
but make sure to change config.json correspondingly.
docker run -d --restart always --name zwickyverse-mongo -p 27020:27017 -v zwickyverse-mongo-volume:/data/db \
-e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=mongoadminsecret \
mongo:latestBuild and launch the main container:
docker build --rm -t zwickyverse:latest -f Dockerfile .
docker run --name zwickyverse -d --restart always -p 8000:4000 -v zwickyverse-volume:/data --link zwickyverse-mongo:mongo zwickyverse:latest
# test mode:
docker run -it --rm --name zwickyverse -p 8000:4000 -v zwickyverse-volume:/data --link zwickyverse-mongo:mongo zwickyverse:latestThe service will be available on port 8000 of the Docker host machine
Install the client library zwickyverse.py,
with pip into your environment:
pip install git+https://github.com/dmitryduev/zwickyverse.gitzwickyverse is very lightweight and only depends on pymongo and requests.
See documentation for details about library usage.



