arangodb-docker
arangodb-docker copied to clipboard
/init-scripts/install-service.sh is ran to early
My /init-scripts/install-service.sh script fail to connect to the server ...
It only contains one line with foxx install...
Here the log:
arangodb_1 | Initializing database...Hang on...
arangodb_1 | /entrypoint.sh: running /docker-entrypoint-initdb.d/install-service.sh
arangodb_1 | Connection refused: 127.0.0.1:8529
The problem here is that the port is different during the init phase. By default it'll be 8999 but it's exposed in an env. Try something like
foxx install /my-service-path /my-service-bundle.zip -H http://127.0.0.1:$ARANGO_INIT_PORT
This works with the current version of the images.