4. Install
4.1. Check the distribution
$ ls bin
manufacia_xxx.tar.gz
mosquitto_1.6.2.tar.gz
postgres_10.5.tar.gz
redis_5.0.tar.gz
4.2. Unzip and load images
$ gunzip manufacia_xxx.tar.gz && docker load -i manufacia_xxx.tar
$ gunzip mosquitto_1.6.2.tar.gz && docker load -i mosquitto_1.6.2.tar
$ gunzip postgres_10.5.tar.gz && docker load -i postgres_10.5.tar
$ gunzip redis_5.0.tar.gz && docker load -i redis_5.0.tar
4.3. Confirmation of registered docker images
Verify that the image below is output.
$ docker images
...
manufacia manufacia-gpu-xxx 73d8cc60a81a 24 hours ago 5.61GB
redis 5.0-alpine 07103bda7d12 3 months ago 51.6MB
postgres 10.5-alpine 294f651dec48 9 months ago 71.6MB
eclipse-mosquitto 1.6.2 502279616d17 7 weeks ago 5.07MB
...
4.4. Setup
Run the following command.
$ docker run --rm manufacia: manufacia-gpu-xxx install-manufacia | bash
After a successful installation, the path of executable files will be displayed. Set the environment variable “PATH” to include the binary file path in the manner below.
$ PATH="$HOME/.manufacia/bin:$PATH"
Once you make this setting, you will be able to use the manufacia_ctrl
command.
$ manufacia-ctrl
Usage: manufacia-ctrl [COMMAND] ...
Available commands:
current
versions
path
start
Table: manufacia_ctrl commands
Commands |
Description |
---|---|
current |
Displays the currently enabled version of MANUFACIA. |
versions |
List MANUFACIA versions that can be installed. |
path |
Displays path of the currently enabled MANUFACIA. |
start |
Starts MANUFACIA. |
4.5. Confirmation of the IP address of the host machine
$ hostname -I
192.168.xxx.xxx 172.17.0.1 172.18.0.1 10.1.0.1
or
$ ifconfig
...
The IP address depends on the environment, so if you are not sure, check with your system administrator. For now, assume that the IP address assigned to the host machine is 192.168.xxx.xxx. Set this IP address to the environment variable THIS_HOST
$ export THIS_HOST=192.168.xxx.xxx
4.6. Installation
If you are installing MANUFACIA for the first time, follow the steps described here. If you are not sure if you are installing MANUFACIA for the first time, execute the command shown below and check that there is no container named manufacia_*
.
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
Install the application.
$ manufacia-ctrl start
Check if you can see Up STATUS of all following six MANUFACIA containers by callingdocker ps
command.
manufacia_app_1
manufacia_jarngreipr_1
manufacia_broker_1
manufacia_db_1
manufacia_redis_1
manufacia_frontend_1
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d06495da0e54 manufacia:x.x.x-gpu "supervisord --nodae..." 38 minutes ago Up 38 minutes 0.0.0.0:3100-3101-\>3100-3101/tcp, 0.0.0.0:3122-\>22/tcp manufacia_app_1
63df1772426c manufacia:x.x.x-gpu "jarngreipr serve --..." 38 minutes ago Up 38 minutes 0.0.0.0:3280-\>8080/tcp manufacia_jarngreipr_1
a6c3cbdb3e60 postgres:10.5-alpine "docker-entrypoint.s..." 38 minutes ago Up 38 minutes 0.0.0.0:1883-\>1883/tcp, 0.0.0.0:32780-\>9001/tcp manufacia_broker_1
13b6b0ae19dc eclipse-mosquitto:1.6.2 "/docker-entrypoint...." 38 minutes ago Up 38 minutes 5432/tcp manufacia_db_1
cda3291bb252 manufacia:x.x.x-gpu "sh -c 'inject-env f..." 38 minutes ago Up 38 minutes 0.0.0.0:3200-\>5000/tcp manufacia_frontend_1
68e03b9681db redis:5.0-alpine "docker-entrypoint.s..." 38 minutes ago Up 38 minutes 6379/tcp manufacia_redis_1