There are two possible ways to install Mass Labeling:
- with Docker (recommended)
- local
Docker CE
v18docker-compose
v1.20
It is possible to use newer versions, but the deploy was tested using the mentioned versions.
Take the following steps to build Mass Labeling through Docker:
-
Clone the repository and change the folder using the following commands:
git clone https://github.com/ukitgroup/mass-labeling.git cd mass-labelling
-
Run the install script and follow its instructions:
./bin/install.sh
During the installation process you will be asked to provide the following information:
- Docker container name
- MongoDB location
- HTTP port for Mass Labeling service access
- cookie secret to sign each user session ID
As a result, this script generates two files:
config/app.yml
anddocker-compose.yml
.
To run the container, use the following command:
docker-compose up -d --build
Note. Running container will start the Mass Labelling server application.
Warning. Files config/config.json
and docker-compose.yml
are created during the installation.
Those files contain some options which will affect the service work. If you change some of them
inside the container while working with the service, they will be reset after rebuilding the container.
Node.js
v9.10MongoDB
v3.6
Take the following steps to build Mass Labeling locally:
-
Clone the repository and change the folder using the following commands:
git clone https://github.com/ukitgroup/mass-labeling.git cd mass-labelling
-
Run the install script and follow its instructions:
./bin/install.sh
During the installation process you will be asked to provide the following information:
- MongoDB URI
- HTTP port for Mass Labeling service access
- cookie secret to sign each user session ID
As a result, this script generates two files:
config/app.yml
andconfig/app.env
. -
Install the required npm modules using the following command:
npm i --no-save
-
Build front-end bundles using the following command:
npm run build:front
To run the Mass Labeling server application, use the following command:
npm start
After the installation, the system will require to create the first administrator. This step is obligatory. Read the cli user guide on how to do it.
English is the default language for the system but Mass Labeling has multilanguage support. If you want to add more languages into the web interface then read the multilanguage guide on how to do it.
Q: What OS are supported?
A: The installation process with and without Docker was tested on Ubuntu 16.04 LTS and macOS 10.13.
Q: Can I use another version for Node.js
or MongoDB
?
A: The mentioned versions were tested. It is possible that it will work with Node.js
v8.6+ and MongoDB
v3.2+. But you
should use them on your own.
Q: How to update a working copy of Mass Labeling?
A: If your working copy uses sources from the master branch, then it is better to make the reinstallation. If your
working copy uses sources from the developer branch or other, then it may be enough to recompose the docker image
or something similar.