diff --git a/README.md b/README.md index 971259450fae4e296d2bf2ca58801b2815b5c913..b6d686d8baeaa3c4359efcd7f2d05463bf130e62 100644 --- a/README.md +++ b/README.md @@ -10,39 +10,16 @@ Installation can be performed by: - get the `Kdautoml` sub-module with `cd knowledge-driven-automl && git submodule init && git submodule update dev/Kdautoml` - get the [neo4j](https://neo4j.com/) docker image `docker image pull neo4j:4.2.3` - install/update all Julia package dependencies `julia --project=dev/Kdautoml -e "using Pkg; Pkg.add(url=\"https://github.com/dpsanders/SatisfiabilityInterface.jl\"); Pkg.update()"` - - start container for pipeline synthesis knowledge base (replace `$FULL_PATH` with the actual full path to the current folder): + - start container for pipeline synthesis knowledge base. On the first run, the container script should be run: ``` - docker run \ - --detach \ - --publish=7475:7474 \ - --publish=7687:7687 \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_pipesynthesis_kb/data/:/data \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_pipesynthesis_kb/logs:/logs \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_pipesynthesis_kb/import:/var/lib/neo4j/import \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_pipesynthesis_kb/import:/var/lib/neo4j/import \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_pipesynthesis_kb/conf:/conf \ - --env NEO4J_dbms_memory_pagecache_size=4G \ - --env NEO4J_AUTH=neo4j/test \ - --name neo4j_pipesynthesis_kb \ - neo4j:4.2.3 + ./docker/start_pipesynthesis_container.sh ``` - - start container for feature synthesis knowledge base (replace `$FULL_PATH` with the actual full path to the current folder): + Subsequently, one can start the container with `docker start neo4j_pipesynthesis_kb`. + - start container for feature synthesis knowledge base. On the first run, the container script should be run: ``` - docker run \ - --detach \ - --publish=7475:7474 \ - --publish=7688:7687 \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_featuresynthesis_kb/data/:/data \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_featuresynthesis_kb/logs:/logs \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_featuresynthesis_kb/import:/var/lib/neo4j/import \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_featuresynthesis_kb/import:/var/lib/neo4j/import \ - --volume=$FULL_PATH/knowledge-driven-automl/data/db/neo4j_featuresynthesis_kb/conf:/conf \ - --env NEO4J_dbms_memory_pagecache_size=4G \ - --env NEO4J_AUTH=neo4j/test \ - --name neo4j_featuresynthesis_kb \ - neo4j:4.2.3 + ./docker/start_featuresynthesis_container.sh ``` - - NOTE: Containers can be restarted using their name onlu i.e. `docker start neo4j_pipesynthesis_kb` + Subsequently, one can start the container with `docker start neo4j_featuresynthesis_kb`. - Add the data to the neo4j graph db instances runing in the containers with: ``` julia ./dev/Kdautoml/scripts/fill_pipesynthesis_kb.jl ./data/knowledge/pipe_synthesis.toml && diff --git a/docker/start_featuresynthesis_container.sh b/docker/start_featuresynthesis_container.sh index cd8c05c5925e28e06830a8d76dd97020a6dd1d91..0017ec6da1615d1c2974ff1f1d0d18ee487dd83e 100755 --- a/docker/start_featuresynthesis_container.sh +++ b/docker/start_featuresynthesis_container.sh @@ -1,13 +1,14 @@ #!/bin/sh +BASE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && cd .. && pwd ) + docker run \ --detach \ --publish=7475:7474 \ --publish=7688:7687 \ - --volume=data/db/neo4j_featuresynthesis_kb/data/:/data \ - --volume=data/db/neo4j_featuresynthesis_kb/logs:/logs \ - --volume=data/db/neo4j_featuresynthesis_kb/import:/var/lib/neo4j/import \ - --volume=data/db/neo4j_featuresynthesis_kb/import:/var/lib/neo4j/import \ - --volume=data/db/neo4j_featuresynthesis_kb/conf:/conf \ + --volume="${BASE_DIR}/data/db/neo4j_featuresynthesis_kb/data/":/data \ + --volume="${BASE_DIR}/data/db/neo4j_featuresynthesis_kb/logs":/logs \ + --volume="${BASE_DIR}/data/db/neo4j_featuresynthesis_kb/import":/var/lib/neo4j/import \ + --volume="${BASE_DIR}/data/db/neo4j_featuresynthesis_kb/conf":/conf \ --env NEO4J_dbms_memory_pagecache_size=4G \ --env NEO4J_AUTH=neo4j/test \ --name neo4j_featuresynthesis_kb \ diff --git a/docker/start_pipesynthesis_container.sh b/docker/start_pipesynthesis_container.sh index 9f6b76e00a94c3c70743dc0b7908e0a90d3b0a02..913fc3862b1dcb97a4f2f90ea8cefd6291e1ae17 100755 --- a/docker/start_pipesynthesis_container.sh +++ b/docker/start_pipesynthesis_container.sh @@ -1,13 +1,14 @@ #!/bin/sh +BASE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && cd .. && pwd ) + docker run \ --detach \ --publish=7474:7474 \ --publish=7687:7687 \ - --volume=data/db/neo4j_pipesynthesis_kb/data/:/data \ - --volume=data/db/neo4j_pipesynthesis_kb/logs:/logs \ - --volume=data/db/neo4j_pipesynthesis_kb/import:/var/lib/neo4j/import \ - --volume=data/db/neo4j_pipesynthesis_kb/import:/var/lib/neo4j/import \ - --volume=data/db/neo4j_pipesynthesis_kb/conf:/conf \ + --volume="${BASE_DIR}/data/db/neo4j_pipesynthesis_kb/data/":/data \ + --volume="${BASE_DIR}/data/db/neo4j_pipesynthesis_kb/logs":/logs \ + --volume="${BASE_DIR}/data/db/neo4j_pipesynthesis_kb/import":/var/lib/neo4j/import \ + --volume="${BASE_DIR}/data/db/neo4j_pipesynthesis_kb/conf":/conf \ --env NEO4J_dbms_memory_pagecache_size=4G \ --env NEO4J_AUTH=neo4j/test \ --name neo4j_pipesynthesis_kb \