7a14e09dfc
Summary: C++ implementation of CSV to Memgraph's snapshot file is much more efficient then the Python implementation. It includes a huge part of the Memgraph's source code and the code has to be compiled (which is not easy). Because of that it has to be packaged. Reviewers: teon.banek, mferencevic Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D854
23 lines
561 B
Docker
23 lines
561 B
Docker
FROM debian:stretch
|
|
|
|
COPY csv_to_snapshot /usr/local/bin/csv_to_snapshot
|
|
|
|
# Setup memgraph user and group.
|
|
RUN groupadd -r memgraph
|
|
RUN useradd -lrm -g memgraph memgraph
|
|
|
|
# Setup intput/output directory.
|
|
# /data is used because that's the shortest way to reference the directory.
|
|
RUN mkdir -p /data
|
|
RUN chown -R memgraph:memgraph /data
|
|
|
|
# Change user and set working directory.
|
|
USER memgraph:memgraph
|
|
VOLUME /data
|
|
WORKDIR /data
|
|
|
|
ENTRYPOINT ["csv_to_snapshot"]
|
|
# Print help and usage by default, since at least one --nodes argument is
|
|
# required.
|
|
CMD ["--help"]
|