This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SshProviderStrategy extends DockerClientProviderStrategy { | |
private val log = LoggerFactory.getLogger(classOf[SshProviderStrategy]) | |
private val myDevHost: String = | |
TestcontainersConfiguration.getInstance.getEnvVarOrProperty("my.dev.host", "") | |
private lazy val tempUnixSocket = Path.of("/tmp", "tc.ssh-" + System.nanoTime() + ".sock") | |
private lazy val command = Seq("ssh", "-nNT", "-L", s"$tempUnixSocket:/var/run/docker.sock", myDevHost) | |
override def getDescription: String = "Unix socket on remote machine forwarded with ssh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SshProviderStrategy extends DockerClientProviderStrategy { | |
private val log = LoggerFactory.getLogger(classOf[SshProviderStrategy]) | |
private val myDevHost: String = | |
TestcontainersConfiguration.getInstance.getEnvVarOrProperty("my.dev.host", "") | |
private lazy val tempUnixSocket = Path.of("/tmp", "tc.ssh-" + System.nanoTime() + ".sock") | |
private lazy val command = Seq("ssh", "-nNT", "-L", s"$tempUnixSocket:/var/run/docker.sock", myDevHost) | |
private lazy val command2 = Seq( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@rules_scala_annex//rules:scala.bzl", "scala_test") | |
scala_test( | |
name = "tests", | |
srcs = ["FailingTest.scala"], | |
scala = "//tools/scala:zinc_2_12", | |
deps = [ | |
"@maven//:org_scalactic_scalactic_2_12", | |
"@maven//:org_scalatest_scalatest_2_12", | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <conio.h> | |
#include <iostream> | |
using namespace std; | |
#define n 2 |