{triplestore,sql}: Mount directories to allow dynamic import
This commit is contained in:
parent
099c4457b5
commit
3a32b7f03a
4 changed files with 5 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ func (sql *SQL) Stack(env environment.Environment) component.StackWithResources
|
|||
MakeDirsPerm: environment.DefaultDirPerm,
|
||||
MakeDirs: []string{
|
||||
"data",
|
||||
"imports",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ services:
|
|||
image: mariadb
|
||||
volumes:
|
||||
- "./data/:/var/lib/mysql"
|
||||
- "./imports/:/imports/"
|
||||
ports:
|
||||
- 127.0.0.1:3306:3306
|
||||
labels:
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ func (ts *Triplestore) Stack(env environment.Environment) component.StackWithRes
|
|||
filepath.Join("data", "data"),
|
||||
filepath.Join("data", "work"),
|
||||
filepath.Join("data", "logs"),
|
||||
filepath.Join("data", "import"),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ services:
|
|||
- './data/data:/opt/graphdb/data'
|
||||
- './data/work:/opt/graphdb/work'
|
||||
- './data/logs:/opt/graphdb/logs'
|
||||
command: "\"-Dgraphdb.home=/opt/graphdb -Ddefault.min.distinct.threshold=2G\""
|
||||
- './data/import:/opt/graphdb/import'
|
||||
command: "\"-Dgraphdb.home=/opt/graphdb -Dgraphdb.workbench.importDirectory=/opt/graphdb/import -Ddefault.min.distinct.threshold=2G\""
|
||||
# Use 1GB of heap space
|
||||
environment:
|
||||
GDB_HEAP_SIZE: 16G
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue