Search…
Docker Open Source CPU
These are the steps to installing OmniSci Enterprise edition using a Docker container.
Here is a quick video overview of the installation steps.
Open a new terminal window and enter the following command:
1
docker run -d -v $HOME/omnisci-docker-storage:/omnisci-storage -p 6273-6280:6273-6280 omnisci/core-os-cpu
Copied!
When the installation is complete, Docker runs the OmniSci server and OmniSci web server automatically.

Command Line Access

You can access the command line in the Docker image to perform configuration and run OmniSci utilities.
You need to know the container-id to access the command line. Use the command below to list the running containers.
1
docker container ls
Copied!
You see output similar to the following.
1
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2
9e01e520c30c omnisci/omnisci-ee-cpu "/bin/sh -c '/omnisci..." 3 days ago Up 3 days 0.0.0.0:6273-6280->6273-6280/tcp confident_neumann
Copied!
Once you have your container ID, you can access the command line using the Docker exec command. For example, here is the command to start a Bash session in the Docker instance listed above. The -it switch makes the session interactive.
1
docker exec -it 9e01e520c30c bash
Copied!
You can end the Bash session with the exit command.

Checkpoint

To verify that all systems are go, load some sample data and perform an omnisql query.
OmniSci ships with two sample datasets of airline flight information collected in 2008, and one dataset of New York City census information collected in 2015. To install the sample data, run the following command.
1
docker exec -it <container-id> ./insert_sample_data
Copied!
Where <container-id> is the container in which OmniSci is running.
When prompted, choose whether to insert dataset 1 (7,000,000 rows), dataset 2 (10,000 rows), or dataset 3 (683,000 rows). The examples below use dataset 2.
1
Enter dataset number to download, or 'q' to quit:
2
# Dataset Rows Table Name File Name
3
1) Flights (2008) 7M flights_2008_7M flights_2008_7M.tar.gz
4
2) Flights (2008) 10k flights_2008_10k flights_2008_10k.tar.gz
5
3) NYC Tree Census (2015) 683k nyc_trees_2015_683k nyc_trees_2015_683k.tar.gz
Copied!
Connect to OmniSciDB by entering the following command (default password is HyperInteractive):
1
docker exec -it <container-id> /omnisci/bin/omnisql
2
password: ••••••••••••••••
Copied!
Enter a SQL query such as the following:
1
omnisql> SELECT origin_city AS "Origin", dest_city AS "Destination", AVG(airtime) AS
2
"Average Airtime" FROM flights_2008_10k WHERE distance < 175 GROUP BY origin_city,
3
dest_city;
Copied!
The results should be similar to the results below.
1
Origin|Destination|Average Airtime
2
Austin|Houston|33.055556
3
Norfolk|Baltimore|36.071429
4
Ft. Myers|Orlando|28.666667
5
Orlando|Ft. Myers|32.583333
6
Houston|Austin|29.611111
7
Baltimore|Norfolk|31.714286
Copied!
Last modified 1yr ago
Export as PDF
Copy link