Hi Mike,
I'll have a look at that this weekend. Some wild guesswork: this might
be a permission issue with the .basex file. It might also be that I
messed up somewhere, but I verified changed .basex files have been
working (actually, I'm using one myself in a project).
Could you share the example project including Dockerfile and the .basex
file as tar or zip archive, preserving permissions (tar -p flag)?
Regards,
Jens
Am 05.04.2016 um 17:08 schrieb Mike Cobo:
> Hi BaseX team, hi all
>
>
>
> I want to create a docker image based on the existing basexhttp image,
> but with other credentials for the admin user. For this reason I added
> an edited .basex file with changed password (here: mypassword) to the
> new docker image:
>
> .basex:
>
> ...
> # Client/Server Architecture
> HOST = localhost
> PORT = 1984
> SERVERPORT = 1984
> USER = admin
> PASSWORD = mypassword
> SERVERHOST =
> ...
>
> Dockerfile:
>
> FROM basex/basexhttp:latest
> MAINTAINER Mike <myemail@mail.com>
> COPY .basex /srv/
> VOLUME ["/srv/BaseXData", "/srv/BaseXWeb"]
>
>
> After starting the docker container I checked if the edited file can be
> found under the path "/srv/.basex". The file is there but when I want to
> login to the database (or run an XQuery script via the browser) I cannot
> login with admin/mypassword. The erreor message is:
>
> *Connection failed: Access denied. *
>
> But I can still use the default user/pw (admin/admin) to connect.
>
> Why is the changed .basex file not loaded/parsed when starting the BaseX
> (http) server on the docker container? Should the file be copied to a
> different path?
>
>
> Best regards,
> Mike
>
>
--
Jens Erat
Universität Konstanz
Kommunikations-, Infomations-, Medienzentrum (KIM)
Abteilung Basisdienste
D-78457 Konstanz
Mail: jens.erat@uni-konstanz.de