I’ve recently set up CommandBox Docker image using ColdFusion 2018 in AWS ECS successfully but am running into one issue.
We are making use of Solr collections and since the CFConfig Module doesn’t support any of the Solr configurations and I haven’t had time to look into extending CFConfig, I am going the route of copying a modified version of the neo-solr.xml file that has settings for my docker containers into the ~/serverHome/WEB-INF/cfusion/lib folder
In the Docker file I have added the line and have the copy of the neo-solr.xml file in a devops folder.
I’ve done very similar things in Docker using straight Lucee setup not on CommandBox where I copy some xml.cfm files into the /opt/lucee folders without issue, but the modified version of the neo-solr.xml file isn’t ever copied over.
I’ve also tried having my docker container run a bash file to copy the file over but then I get an error saying “cp: cannot create regular file ‘/root/serverHome/WEB-INF/cfusion/lib/neo-solr.xml’: No such file or directory” which seems weird because the folder structure seems to be in place.
If I bring up the container, ssh in and copy the file manually, restart CommandBox it’s doing exactly what I want. I just can’t seem to make this happen at the time of the Container being created.
I’ve even tried just copying into ~/serverHome to see if I can at least see the file being copied over. But that isn’t happening either.
Is there something I can try to get past this?