Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

419
Views
Can I set Neo4j on Docker to import CSV file on the first run, not after that?

Is there a way to set docker to make neo4j import specific CSV file import only once?

or I should do that with javascript to check if neo4j is empty then load?

Of course, doing with javascript is easy. Just wondering can I do it with docker?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The neo4j import tool (http://neo4j.com/docs/operations-manual/current/tutorial/import-tool/) runs independently of neo4j.

Load data when building image

You could inherit from the neo4j base image and use RUN /path/to/neo4j-import ... to load your data upon image creation.

This will of course load data only once.

Load data when running container

To load data when you run the container you have to override the script executed to run start neo4j. See docker_entrypoint.sh here https://github.com/neo4j/docker-neo4j/tree/master/src/3.1

The import tool works only if the database does not exist. You could maybe catch the error when it tries to load data into an existing database to have it run only once.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!