-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i add a template ? #30
Comments
I had the same problem. Lokking at the Dockerfile and the scripts, I figured you can copy them to the bootstrap directory to make it work. e.g.:
|
Neither works for me:
custom_example.xml is successfully copied to I have also tried setting the file permissions to match the other template files with Anything I'm missing here? |
The dockerfile declares a VOLUME for /var/www/phpldapadmin. You need to remove it inbetween changes, otherwise they are not updated from the bootstrap folder. |
@BertrandGouny why not remove the Dockerfile config VOLUME ["/var/www/phpldapadmin"] it make difficulty to build my docke image, I have to rebuild the docker image, can't build from this image, I think the rebuild time is wasteful, can you improve this ? At last, thanks for your spend time to complete this good project |
I had the same problem and the solution given in #30 (comment) worked perfectly for me with version 0.7.2. Thank you! |
Here is how I did it: FROM osixia/phpldapadmin:0.9.0
COPY customUser.xml /
COPY startup.sh /container/service/phpldapadmin-additional-templates/
RUN chmod +x /container/service/phpldapadmin-additional-templates/startup.sh startup.sh #!/bin/bash -e
TEMPLATE_PATH=/customUser.xml
if [ -f $TEMPLATE_PATH ]; then
mv $TEMPLATE_PATH /var/www/phpldapadmin/templates/creation/
fi
exit 0 More info https://github.com/osixia/docker-light-baseimage#startupsh |
Thank you @Vsevo1od your solution worked perfectly for me 👍 |
I'd like to add a template in /var/www/phpldapadmin/templates/creation/ at the image start.
How can i do?
extending the image like :
FROM osixia/phpldapadmin:0.6.12
COPY custom_posixAccount.xml /var/www/phpldapadmin/templates/creation/custom_posixAccount.xml
give me the error :
"phpldapadmin_1 | cp: cannot create regular file ‘/var/www/phpldapadmin/config/config.php’: No such file or directory"
The text was updated successfully, but these errors were encountered: