Coder Social home page Coder Social logo

Comments (3)

jangaraj avatar jangaraj commented on August 20, 2024 1

@benbc Will you accept PR, which will allow to overwrite any current/further neo4j setting from the env variable, which will start with prefix NEO4J_?

Concept:

# read env variables, which start with NEO4J_ prefix
# and update conf settings based on their values
for i in $( printenv | grep ^NEO4J_ | awk -F'=' '{print $1}' | sort -rn ); do
    setting=$(echo ${i} | sed 's|^NEO4J_||' | sed 's|_|.|g')
    value=$(echo ${!i})
    sed --in-place "s|.*${setting}=.*|${setting}=${value}|" conf/neo4j.conf
done

from docker-neo4j.

benbc avatar benbc commented on August 20, 2024

You are quite right, this is a bit of a pain currently. In fact I don't think that the setting even needs to be configurable because the backup server should be listening on 0.0.0.0 inside a container. There is a PR on this at #35.

We also have an ambition to make all settings overridable by environment variables, but that requires a product change and we haven't been able to prioritize it yet.

from docker-neo4j.

spacecowboy avatar spacecowboy commented on August 20, 2024

@jangaraj this is a feature we've been considering so if you are willing to do the work I'd be happy to review and help.

Some things to keep in mind:

  • Some settings are commented by default and some are not
  • Not all settings are actually present (commented or not) in the config file. So a sed by itself is not guaranteed to replace something
  • A user might define a custom config volume AND some environment variables.

The reference of all configuration options might be of interest: https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/

from docker-neo4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.