memgraph/tools/mg_import_csv.dockerfile
Teon Banek df72861b90 Make csv_to_snapshot more user friendly
Summary:
Time csv_to_snapshot conversion and log it.
Check if writing csv_to_snapshot failed.
Extract LoadConfig from memgraph_bolt to config.hpp.
Read memgraph config in csv_to_snapshot for snapshot_directory.
Rename csv_to_snapshot to mg_import_csv.
Add tests for tools.
Run tools tests in apollo.

Reviewers: mislav.bradac, florijan, mferencevic, buda

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D931
2017-10-26 09:37:56 +02:00

23 lines
555 B
Docker

FROM debian:stretch
COPY mg_import_csv /usr/local/bin/mg_import_csv
# 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 ["mg_import_csv"]
# Print help and usage by default, since at least one --nodes argument is
# required.
CMD ["--help"]