Installing BotLibre Enterprise Bot Platform on Amazon Lightsail |
Amazon Lightsail is a lightweight cloud website hosting framework based on the Amazon Web Services (AWS) platform. Lightsail can help to quickly jumpstart your project with a virtual machine, SSD-based storage, data transfer, DNS management, and a static IP for an affordable price. This guide is to work through the steps to install Bot Libre Enterprise Bot Platform to the AMS Lightsail. Step 1. Create an Amazon Lightsail instanceGo to Amazon Lightsail website and register a new AWS account if you do not have one yet. https://lightsail.aws.amazon.com/ls/webapp/home
then login and start to create an instance. Choose a OS Only instance using CentOS 7 Linux system: Bot Libre requires a Tomcat Web Server, Python Server, and a database to run. To host Bot Libre system you require a dedicated server or VM with minimum 8gb of RAM. For demonstration purpose, we are using the basic 512MB configuration as following: After the service is being created, click ‘Connect using SSH’ to connect to it.
Lightsail assigns a public IP (e.g. 35.183.67.175) to the instance, and we need the IP to config the web server later on. After connecting to the instance via ssh, from the terminal, you may start to setup the Java, Ant, Tomcat, Postgres, Python and finally deploy the botlibre web app to Tomcat.
Step 2 - install Java and AntInstall the Java JDK 1.8 (latest dot release). $ cd /opt Install ant $ cd /opt Step 3 – Tomcat Install the Tomcat 8 web server.$ cd /opt >> add the following JVM option to increase the max memory size in your setenv.sh export JAVA_OPTS="-server -Xmx8g"
>> insert the following XML in your web.xml to enable cors filters (required for JavaScript access) <filter>
>> update connector port 8080->80, 8433->433
>> add to connector, URIEncoding="UTF-8"
>> update host- <public ip> > autoDeploy=”false”
Start tomcat web server:
Go to a browser and check if the server is up and running at http://<public-ip> (e.g. http://35.183.67.175) Troubleshooting: If you do not see the server running, check the server log at $TOMCAT_HOME/logs/catalina.out Then shutdown the server:
Step 4 Install PostgreSQL database>> install postgres database and init it
$ cd /otp >> Verify database starts/stops/restart:
$ service postgresql-9.4 start >> Set database password:
$ service postgresql-9.4 start Step 5. Install Python (Optional)
Bot Libre uses a separate Python web server to support deep learning analytics. Python is not required for bots or NLP, only deep learning analytics such as image classification. If you do not require deep learning you can skip this step. Run the following commands to install Python, Pop, Tensorflow, Flask and Psycopy2. $ yum update Then you may copy the /python from the BotLibre install to /usr/local/python
>> start the python server
Step 6. Install BotLibreThe Bot Libre application is a Java “war” file. A war file is a zip file that contains a website and Java libraries. There are several installation steps:
Then you may refer to the generic BotLibre install guide to login as admin user (default password is password), and create workspace, create bot, config bot and train bot.
|
|
|
|
|