Commit 2943faa8467d7d74f08f703798820f3af9ea1f38
1 parent
e234dea5
Exists in
master
and in
4 other branches
Update README.md instructions
Showing
1 changed file
with
12 additions
and
22 deletions
Show diff stats
README.md
... | ... | @@ -5,16 +5,17 @@ |
5 | 5 | Recommended OS: [Linux Ubuntu 14.04.4 LTS 64-bit](http://releases.ubuntu.com/14.04/). |
6 | 6 | |
7 | 7 | Dependencies: [Docker](https://www.docker.com/), [RabbitMQ](https://www.rabbitmq.com/), |
8 | - [Graylog](https://www.graylog.org/), [Nodejs](https://nodejs.org/en/). | |
8 | + [Graylog](https://www.graylog.org/), [Nodejs](https://nodejs.org/en/), | |
9 | + [MongoDB](https://www.mongodb.com/). | |
9 | 10 | |
10 | 11 | >Note: See Installation section to install dependencies. |
11 | 12 | |
12 | -You need install some packages: `build-essential`, `git`, `npm`, `python-pip`, | |
13 | +You need install some packages: `build-essential`, `git`, `python-pip`, | |
13 | 14 | `python-setuptools`. |
14 | 15 | |
15 | 16 | ```sh |
16 | 17 | $ sudo apt-get update |
17 | - $ sudo apt-get install -y build-essential git npm python-pip python-setuptools | |
18 | + $ sudo apt-get install -y build-essential git python-pip python-setuptools | |
18 | 19 | ``` |
19 | 20 | |
20 | 21 | ## Sources |
... | ... | @@ -25,39 +26,28 @@ To get source code, use these command: |
25 | 26 | $ git clone 'git@gitlab.lavid.ufpb.br:vlibras/vlibras-translate-container.git' |
26 | 27 | ``` |
27 | 28 | |
28 | -## Installation | |
29 | +## Installation and Execution | |
29 | 30 | |
30 | -To install vlibras-translate-container for production, use these commands: | |
31 | +To install and run vlibras-translate-container for production, use these commands: | |
31 | 32 | |
32 | 33 | ```sh |
33 | - $ docker build | |
34 | + $ sudo docker build . -t <container_name> | |
35 | + $ sudo docker run -p 80:80 <image_id> | |
34 | 36 | ``` |
35 | 37 | |
36 | -If you need to install for development, use these commands: | |
38 | +For the development, you need to install dependencies and run the workers manually: | |
37 | 39 | |
38 | 40 | ```sh |
39 | 41 | $ cd scripts |
40 | 42 | $ ./configure |
41 | 43 | ``` |
42 | 44 | |
43 | -## Execution instructions | |
44 | - | |
45 | -Execute the translator worker in the core folder: | |
46 | - | |
47 | 45 | ```sh |
48 | - $ cd core | |
49 | - $ python translator.py | |
46 | + $ cd ../core | |
47 | + $ ./translator.py | |
48 | + $ ./renderer.py | |
50 | 49 | ``` |
51 | 50 | |
52 | -You can also run the worker through the process manager: | |
53 | - | |
54 | -```sh | |
55 | - $ cd core | |
56 | - $ python processManager.py | |
57 | -``` | |
58 | - | |
59 | ->Note: If an error occurs, the process manager re-executes the worker | |
60 | - | |
61 | 51 | ## Contributors |
62 | 52 | |
63 | 53 | * Erickson Silva <erickson.silva@lavid.ufpb.br> | ... | ... |