Skip to content
Snippets Groups Projects
README.md 1.28 KiB
Newer Older
Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
# blazegraph-docker

Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
## ~~ Dockerized Blazegraph ~~ 

rac021's avatar
rac021 committed

Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
### 1. Docker Build
rac021's avatar
rac021 committed

```

Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
docker build -t rac021/blazegraph . ; 
rac021's avatar
rac021 committed

```

Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
### 2. Simple Deployment 
rac021's avatar
rac021 committed

```

Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
docker run --rm -d --name blazegraph   \
                    -p 7777:7777       \
                    rac021/blazegraph  \
rac021's avatar
rac021 committed
                    namespace=ore

```

Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
### 3. Use Multiple Namespaces 
rac021's avatar
rac021 committed

```

docker run --rm -d --name blazegraph                  \
                    -p 7777:7777                      \
Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
                    rac021/blazegraph                 \
rac021's avatar
rac021 committed
                    namespaces=ola,acbb,foret port=7777

```

Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
### 4. Use External Volume ( rmDb = remove dataBase if already exists )
rac021's avatar
rac021 committed

```
docker run --rm -d --name blazegraph                    \
                    -p 7777:7777                        \
                    -v $(pwd)/data:/usr/blazegraph/data \
Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
                    rac021/blazegraph                   \
rac021's avatar
rac021 committed
                    mode=rw namespace=ore port=7777 rmDb

```


Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
### 5. Read-Only Mode ( mode=ro ) :
rac021's avatar
rac021 committed

```
docker run --rm -d --name blazegraph                    \
                    -p 7777:7777                        \
                    -v $(pwd)/data:/usr/blazegraph/data \
Rachid Yahiaoui's avatar
Rachid Yahiaoui committed
                    rac021/blazegraph                   \
rac021's avatar
rac021 committed
                    mode=ro namespaces=ola,acbb,foret port=7777 rmDb

```
rac021's avatar
rac021 committed