How to pass the "-Dsolr.disable.allowUrls=true" configuration to the Solr container while using testcontainers library for executing tests #6902
              
                Unanswered
              
          
                  
                    
                      MUsman1992
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments 1 reply
-
| I think you can use  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| @eddumelendez now I am getting this error after using your function any idea how to fix this | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
On my system, when I run Solr in the Docker Container, I use this command
docker run -p 8983:8983 -v $PWD/:/var/solr/data -v $PWD/configsets:/opt/solr-9.1.1/server/solr/configsets/ -t solr -a "-Dsolr.disable.allowUrls=true"I am now using testcontainers to deploy Solr Container while executing tests. Now I am unable to figure out how to pass "-Dsolr.disable.allowUrls=true" configuration to the container. I have spent couple of hours on this issue but still I am unable to figure it out. Can anyone guide me in this regard? Which function of the testcontainers library can i use for this purpose? Thanks
Beta Was this translation helpful? Give feedback.
All reactions