docker_scidb
docker_scidb copied to clipboard
Dockerize SciDB
Docker SciDB
Scripts for building a Docker image of the array database SciDB 14.12. NOTE: This is not the latest version of SciDB but the last one to offer a binary install.
Files:
LICENSE- License file.README.md- This file.conf- SHIM configuration file.- Docker files:
Dockerfile- Docker file for building a Docker Image.setup.sh- Host script for removing old containers and images from host machine. Then, it creates a Docker image called "scidb_img".
- Container files:
containerSetup.sh- Script for setting up SciDB on a container. It also creates some test data.iquery.conf- IQUERY configuration file.startScidb.sh- Container script for starting SciDB.stopScidb.sh- Container script for stopping SciDB.scidb_docker.ini- SciDB's configuration file.
Prerequisites:
- Internet access.
- Docker.
Instructions:
- Clone the project and then go to the docker_scidb folder:
git clone https://github.com/albhasan/docker_scidb.git - Modify the configuration file scidb_docker.ini according to your needs and your hardware. Here you can find a helper application.
- Enable
setup.shfor executionchmod +x setup.shand run it./setup.sh. This creates a new Docker image from the Dockerfile and then it starts a container. You can also create containers manually using a command like this:docker run -d --name="scidb1" -p 49901:22 -p 49902:8083 --expose=5432 --expose=1239 scidb_img - Log into the container:
ssh -p 49901 root@localhost. The default password is xxxx.xxxx.xxxx - Execute the script
/home/root/./containerSetup.sh. This script set SciDB up and then it runs a small query.
NOTES:
containerSetup.shincludes commands for moving postgres' files to a different folder. Mounting a docker volume on that folder enables storage of catalog data in the host.- When using volumes, match user's ID of a container-user "scidb" to a host-user with the proper writing rights.