mkdir root&&cd root
pip install conan
ref
- in our case, we need pybind11 so, content of
conanfile.txt
ref
[requires]
wget -O - https://raw.githubusercontent.com/Aquila-Network/AquilaX-CE/main/setup_aquilax.sh | /bin/bash |
# Docker | |
sudo apt update | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt install -y docker-ce | |
sudo usermod -aG docker ${USER} | |
su - ${USER} |
#!/bin/bash -e | |
apt update | |
mkdir -p /data/ | |
cd ~ | |
# system packs install | |
apt install -y git wget nano python3.8 python3-pip libblas-dev liblapack-dev swig libssl-dev |
docker pull ammaorg/aquiladb:latest | |
docker run -d -i -p 50051:50051 -t ammaorg/aquiladb:latest |
#!/usr/bin/env python3 | |
"""Example bot that returns a synchronous response.""" | |
from flask import Flask, request, json | |
app = Flask(__name__) | |
@app.route('/', methods=['POST']) |
server_name _; | |
location / { | |
proxy_pass http://127.0.0.1:4000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# First attempt to serve request as file, then | |
# as directory, then fall back to displaying a 404. | |
# try_files $uri $uri/ =404; |
{ | |
"greet": [ | |
{ | |
"text": "Hello welcome." | |
}, | |
{ | |
"text": "I can help you to search for resturents." | |
} | |
], | |
"restaurant_search": [ |