Open Tony-spearhead opened 7 years ago
Hi @Tony-spearhead
That should work if you've mounted /etc/rundeck as a volume. Is there anything interesting in the rundeck logs under /var/log/rundeck ?
No. I just get a 503 from jetty. I cannot mount /etc/rundeck at all
rundeck: image: jordan/rundeck:latest container_name: "rundeck-infra" environment: SERVER_URL: http://myserver:4440 RUNDECK_UID: rundeck RUNDECK_STORAGE_PROVIDER: db RUNDECK_PROJECT_STORAGE_TYPE: db EXTERNAL_SERVER_URL: http://myserver RDECK_JVM_SETTINGS: -Dfile.encoding=UTF-8 volumes:
Hi @Tony-spearhead
I don't see /etc/rundeck listed, just /mnt/data/rundeck/etc/realm.properties:/etc/rundeck/realm.properties
Try starting the container with an empty /etc/rundeck volume and it should create the default set of files for you. You should be able to edit the files under the /etc/rundeck volume without issue
Hello,
I will try that and keep you updated
Thanks for the help
Hi @jjethwa
I did that but the image does not create any files in the mounted etc directory.
Regards
Hi @Tony-spearhead
The /etc/rundeck volume needs to be completely empty or else the default configs will not be created. If the directory is empty and the files are not being created, can you check the docker logs to see if there are any complaints about permissions to the volume?
I've created a pull request https://github.com/jjethwa/rundeck/pull/86 that allows SMTP settings to be configured via environment variables.
Thanks @eugeneduvenage 😄
@Tony-spearhead the changes will be in the latest tag in the next few minutes. Please let us know if it works for you and close the issue if fixed.
How do i pass these 2 variables to your docker image? grails.mail.host=mymailserver.com grails.mail.port=25 When I tried to maps these 2 values with the rundeck-config.properties rundeck always ended up in 503 service unavailable.