Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30500

jclouds docker support

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          felfert 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.

          Show
          felfert 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.
          Hide
          akostadinov 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.

          Show
          akostadinov 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.

            People

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

              Dates

              • Created:
                Updated: