Zuhkov / docker-containers

25 stars 37 forks source link

Unable to Initialize a Base_URL #10

Open ragaar opened 6 years ago

ragaar commented 6 years ago

It appeared that configuring config.php.default would be the easiest approach to pass in a $config['base_url'] property to Observium.

In order to push config.php.default the whole /opt/observium directory needs to be populated. Which looked to be a simple wget. Unfortunately, with Observium CE 17.9.8859 this is no longer possible.

# php includes/update/update.php[1]

WARNING. Direct call to this script is no longer supported, please use './discovery.php -u' from main observium directory.

Without this execution, the database cannot initialize the expected schema.

Running cd /opt/observium/ && ./discovery.php -u appears to work as expected.

REFERENCE:

  1. https://github.com/Zuhkov/docker-containers/blob/b22144e54fbdce34c41fddfac25eabf8ec77b304/observium/mariadb.sh#L28
ragaar commented 6 years ago

I submitted a PR[1] to resolve this immediate issue. Implementing a way to pass in a 'base_url' probably merits further discussion.

REFERENCE:

  1. 11