arangodb-docker icon indicating copy to clipboard operation
arangodb-docker copied to clipboard

/init-scripts/install-service.sh is ran to early

Open solisoft opened this issue 7 years ago • 1 comments

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

solisoft avatar Aug 30 '18 21:08 solisoft

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.

pluma avatar Feb 16 '20 17:02 pluma