pl.allegro.tech.servicemesh.envoycontrol.config.containers.SSLGenericContainer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-control-tests Show documentation
Show all versions of envoy-control-tests Show documentation
Production-ready Control Plane for Service Mesh based on Envoy Proxy.
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)
}
}