Closed stephanwilliams closed 7 years ago
Yes, you're perferctly right! I've fixed it along the lines you've sugested, and added tests so we will find out if it breaks in future.
It has been merged, so a new 3.1.20 issue on the docker library will contain this fix. Thanks for reporting.
I'm using Docker 1.13.1 on Mac OS X 10.11.6.
I have a Dockerfile that derives from the arangodb 3.1.11 image and
COPY
s a JavaScript file into /docker-entrypoint-initdb.d so it'll be run when the database is initialized. However, I get the following error when the script runs:The error is thrown from the first function call that tries to talk to the database, in my case
db._createDatabase(...)
.I did find a workaround for this, which was to put the following shell script into /docker-entrypoint-initdb.d instead of the js file:
The initial
--server.*
arguments are taken from thearangosh
invocations in docker-entrypoint3.sh.So my question is, shouldn't the
arangosh
call on line 73 also have those same two arguments?