All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.servicemesh.envoycontrol.config.containers.SSLGenericContainer.kt Maven / Gradle / Ivy

There is a newer version: 0.22.4
Show newest version
package pl.allegro.tech.servicemesh.envoycontrol.config.containers

import org.testcontainers.containers.BindMode
import org.testcontainers.images.builder.dockerfile.DockerfileBuilder
import pl.allegro.tech.servicemesh.envoycontrol.config.testcontainers.GenericContainer

open class SSLGenericContainer>(
    dockerfileBuilder: DockerfileBuilder,
    private val sslDir: String = "testcontainers/ssl/",
    private val sslDirDestination: String = "/app/"
) : GenericContainer(dockerfileBuilder.statements) {
    constructor(dockerImageName: String) : this(DockerfileBuilder().from(dockerImageName))

    override fun configure() {
        super.configure()
        withClasspathResourceMapping(sslDir, sslDirDestination, BindMode.READ_ONLY)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy