Skip to content

Instantly share code, notes, and snippets.

@mhoangvslev
Last active June 28, 2019 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhoangvslev/98a9ffa2c750c6a72d33be9564492d60 to your computer and use it in GitHub Desktop.
Save mhoangvslev/98a9ffa2c750c6a72d33be9564492d60 to your computer and use it in GitHub Desktop.
# Create a folder with shared folders
mkdir config models database strategies plugins
# Download neo4j plugins
echo "Downloading neo4j plugins"
curl -L "https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.5.0.4/apoc-3.5.0.4-all.jar" > plugins/apoc-3.5.0.4-all.jar
curl -L "https://github.com/neo4j-contrib/neo4j-graph-algorithms/releases/download/3.5.4.0/graph-algorithms-algo-3.5.4.0.jar" > plugins/graph-algorithms-algo-3.5.4.0.jar
# Download prepared elements
echo "Setting up..."
curl "https://raw.githubusercontent.com/mhoangvslev/ArgosJS/master/database/strategies/KittyStrategies.js" > strategies/KittyStrategies.js
curl "https://raw.githubusercontent.com/mhoangvslev/ArgosJS/master/database/models/Kitty.js" > models/Kitty.js
curl "https://raw.githubusercontent.com/mhoangvslev/ArgosJS/master/config/argos-config-template.js" > config/argos-config.js
# Run docker image using docker-compose
curl "https://raw.githubusercontent.com/mhoangvslev/ArgosJS/master/docker-compose.yml" > docker-compose.yml;
export UID=$(id -u)
export GID=$(id -g)
docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment