public static void uploadConfiguration(
        String hostname,
        int port,
        String configurationName,
        URL solrConfig,
        URL solrSchema
    ) throws URISyntaxException, IOException {
        Map<String, String> parameters = new HashMap<>();
        parameters.put("action", "UPLOAD");
        parameters.put("name", configurationName);
        HttpUrl url = generateSolrURL(hostname, port, Arrays.asList("admin", "configs"), parameters);

        byte[] configurationZipFile = generateConfigZipFile(solrConfig, solrSchema);
        executePost(url, configurationZipFile);
    }
Creates a new configuration and uploads the solrconfig.xml and schema.xml

@param hostname          the Hostname under which solr is reachable
@param port              the Port on which solr is running
@param configurationName the name of the configuration which should be created
@param solrConfig        the url under which the solrconfig.xml can be found
@param solrSchema        the url under which the schema.xml can be found or null if the default schema should be used
modules/solr/src/main/java/org/testcontainers/containers/SolrClientUtils.java