Hello, tried to setup jclouds plugin to launch docker slaves. I had to build it from master as it includes latest jclouds. Basically I had to add the `docker` artifact and I've got ability to select docker type slaves. But I'm hitting an issue that docker connection cannot be established.

      Cannot connect to specified cloud, please check the identity and credentials: Guice creation errors:
      
      1) Error in custom provider, java.lang.RuntimeException: java.io.FileNotFoundException: ddd (No such file or directory)
        while locating org.jclouds.http.okhttp.config.OkHttpCommandExecutorServiceModule$OkHttpClientProvider
        at org.jclouds.http.okhttp.config.OkHttpCommandExecutorServiceModule.configure(OkHttpCommandExecutorServiceModule.java:51)
        while locating com.squareup.okhttp.OkHttpClient
          for parameter 7 at org.jclouds.http.okhttp.OkHttpCommandExecutorService.<init>(OkHttpCommandExecutorService.java:70)
        while locating org.jclouds.http.okhttp.OkHttpCommandExecutorService
        at org.jclouds.http.okhttp.config.OkHttpCommandExecutorServiceModule.configure(OkHttpCommandExecutorServiceModule.java:50)
        while locating org.jclouds.http.HttpCommandExecutorService
      Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: ddd (No such file or directory)
      at shaded.com.google.common.base.Throwables.propagate(Throwables.java:160)
      at org.jclouds.docker.suppliers.D
      

      See also attached screenshot.

      Any ideas for proper configuration? When I selected an empty file in the `identity` field, then I didn't see same exception but a TLS error (while the URL provided is plain HTTP).

      P.S. The docker plug-in is very rough and even latest version seems broken (JENKINS-30422) so it's preferable if jclouds works given it also allows other types of slaves.

          [JENKINS-30500] jclouds docker support

          Fritz Elfert added a comment -

          You might want to try that now. I just have upgraded to jclouds-2.0.0 in git.

          OTOH:
          I'm not really convinced that this is the right way to go (using docker as build slaves in general). As far as I understand, docker is supposed to encapsulate preconfigured applications, not provide universal build systems For starters: E.g. AFAIK, it It does not have sshd running in it's images - which is a basic requirement for jenkins.

          Fritz Elfert added a comment - You might want to try that now. I just have upgraded to jclouds-2.0.0 in git. OTOH: I'm not really convinced that this is the right way to go (using docker as build slaves in general). As far as I understand, docker is supposed to encapsulate preconfigured applications, not provide universal build systems For starters: E.g. AFAIK, it It does not have sshd running in it's images - which is a basic requirement for jenkins.

          akostadinov added a comment -

          You can run anything inside container. I've done sshd specifically.

          But eventually ended up using the kubernetes plugin to launch slaves off OpenShift cluster. Much nicer in my experience. It uses JNLP. Here's base image that would work on Kubernetes or OpenSHift.

          That's completely off topic though except for providing some proof that containers are suitable for running slaves.

          akostadinov added a comment - You can run anything inside container. I've done sshd specifically . But eventually ended up using the kubernetes plugin to launch slaves off OpenShift cluster. Much nicer in my experience. It uses JNLP. Here's base image that would work on Kubernetes or OpenSHift. That's completely off topic though except for providing some proof that containers are suitable for running slaves.

          Fritz Elfert added a comment -

          Jclouds-plugin does not support docker anymore. Use a docker specific plugin or kubernetes

          Fritz Elfert added a comment - Jclouds-plugin does not support docker anymore. Use a docker specific plugin or kubernetes

            felfert Fritz Elfert
            akostadinov akostadinov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: