Become an AI Executor with Docker

Installation

0. Hardware specification

A dedicated machine that can keep the program running continuously. The program supports Linux, Windows & MacOS.
Minimum requirement:
1
2vCPUs
2
2GB RAM
Copied!

1. Docker & docker-compose

With docker, the AI Executor program can run on any platforms. As a result, it is a must to install and download Docker. Docker-compose is a tool for defining & running multi-container Docker applications. It is convenient to use docker-compose to work with Docker containers. You can follow the following links: Downloading & installing Docker, Downloading & installing docker-compose.
Next, please create a file called: docker-compose.yml that has the following content:
1
version: '3.3'
2
services:
3
ai_executor:
4
container_name: ai_executor
5
image: orai/ai-executor:0.0.1
6
tty: true
7
environment:
8
- PIN=${PIN}
9
- DOCKER=true
10
restart: on-failure
11
logging:
12
driver: "local"
13
options:
14
max-size: "100m"
15
max-file: "3"
16
volumes:
17
- ./:/workspace
18
command: ./aioracle-executor-process
Copied!

2. Download the executor zip file

Shell (Mac, Linux):
1
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=180aYBeOlakKorDpHsaHImR1pFlHEGZ26' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=180aYBeOlakKorDpHsaHImR1pFlHEGZ26" -O executor.zip && rm /tmp/cookies.txt && unzip executor.zip
Copied!
Windows:
With windows, you can download using the following link: https://drive.google.com/file/d/180aYBeOlakKorDpHsaHImR1pFlHEGZ26/view?usp=sharing

3. Configure the .env file

The .env file in the zip configures the network, wallet, and other basic variables for your program to use. All the key-value pairs are heavily commented already. If you still have questions about them, freel free to ask us, the Oraichain team.
Please follow this guildeline to verify your executable.

5. Start the container & program

Shell (Mac, Linux):
Type:
1
PIN=<your-pin-for-encrypted-mnemonic> docker-compose up -d
Copied!
Windows:
with powershell:
1
$Env:PIN = "<your-pin-for-encrypted-mnemonic>" && docker-compose up -d
Copied!
If you do not use an encrypted mnemonic, then you don't have to type in the PIN variable.

6. Monitoring the program

To view the program's log, please type the following:
1
docker-compose logs -f --tail=100 ai_executor
Copied!