Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.69 KB

installation_arangodb.md

File metadata and controls

41 lines (35 loc) · 1.69 KB

Installation ArangoDB (using Docker)

Prerequisites

  • Docker version 18.06 or higher

Build and start docker container with ArangoDB

First time you have to build docker container. Port 8539 is used to avoid overlap.:

# Create directory for database
user@localhost:/home/user/$mkdir -p server/arangodb
# Create directory for database dumps
user@localhost:/home/user/$mkdir -p server/backup/arangodb
# Replace /home/user/server/... with the previously created folders.
user@localhost:/home/user/$docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8539:8529 --name arangodb4kitdm -d -v /home/user/server/arangodb:/var/lib/arangodb3 -v /home/user/server/backup/arangodb:/dump arangodb
123.....
# Get generated root password
user@localhost:/home/user/$docker logs arangodb4kitdm |head -3
===========================================
GENERATED ROOT PASSWORD: GENERATED_ROOT_PASSWORD
===========================================
user@localhost:/home/user/$

To start/stop docker container afterwards use

user@localhost:/home/user/$docker stop arangodb4kitdm
user@localhost:/home/user/$docker start arangodb4kitdm

ℹ️ Please remember the password 'GENERATED_ROOT_PASSWORD'. It is used by the metastore service and for the backup of the database.

Backup ArangoDB

# Backup ArangoDB
user@localhost:/home/user/$docker exec -ti arangodb4kitdm sh -c "arangodump --include-system-collections true --server.database metastore-OCR-D --output-directory /dump/dump_`date +%Y_%m_%dt%H_%M`"

More Information