Skip to content

Instantly share code, notes, and snippets.

View darl's full-sized avatar

Vladislav Dolbilov darl

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <conio.h>
#include <iostream>
using namespace std;
#define n 2
@darl
darl / BUILD
Created November 15, 2019 17:38
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",
],
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(
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"