Neo4J, AWS EFS, Docker Images, Data Location

242 views
Skip to first unread message

Spencer Frazier

unread,
Sep 14, 2016, 4:15:47 AM9/14/16
to Neo4j
Hello!

You guys are great, Neo4j is great :)

I have an AWS EFS (Elastic File System) volume set up and mounted on an EC2 node. The EFS directory root is mounted to my host machine (the EC2 server where I'll be running my docker service containers) at /data ...

...I'd like to configure the Neo4j Docker Image to use that volume for its data. That is, specifically, put the Neo4j data into a folder within that volume called "ckdb". The lines I know i need to edit are below and I want to verify I've modified it appropriately.

RUN mv data /data/ckdb \
    && ln --symbolic /data/ckdb

VOLUME /data/ckdb

I know this can be confusing since I've called my EFS volume "data". The file was originally setup (on github) as follows:

RUN mv data /data \
    && ln --symbolic /data

VOLUME /data

My builds are currently failing with the following error: 

ERROR: Build failed: The command '/bin/sh -c mv data /data/ckdb && ln --symbolic /data/ckdb' returned a non-zero code: 1

I have verified I can reach the mounted volume on my host, and the ckdb directory exists. My whole dockerfile is attached. Thanks!

-Spencer
Dockerfile
Reply all
Reply to author
Forward
0 new messages