I am using the docker image jacobalberty/firebird:3.0 from the Docker Hub.
I use the restore function of *.fdk database by using a shared directory to /firebird/restore.
So far, it works well
But when I define the ENV variable FIREBIRD_ALIASES for the restored databases it doesn't work anymore.
I think, I've found the issue:
Hi,
I am using the docker image
jacobalberty/firebird:3.0
from the Docker Hub. I use the restore function of*.fdk
database by using a shared directory to/firebird/restore
. So far, it works well But when I define the ENV variableFIREBIRD_ALIASES
for the restored databases it doesn't work anymore. I think, I've found the issue:FIREBIRD_ALIASES
is called before restoring of the databases start See https://github.com/jacobalberty/firebird-docker/blob/master/docker-entrypoint.sh#L204 https://github.com/jacobalberty/firebird-docker/blob/master/docker-entrypoint.sh#L212 https://github.com/jacobalberty/firebird-docker/blob/master/docker-entrypoint.sh#L83"${PREFIX}"/bin/registerDatabase.sh
contains a statement, that when a database doesn't exist then it will be created.When the dummy database is created, the restore function is not working anymore.
A workaround would be to move
"${PREFIX}"/bin/registerDatabase.sh
below the restore function.