[JIRA] [jclouds-plugin] (JENKINS-30500) jclouds docker support

0 views
Skip to first unread message

akostadinov@java.net (JIRA)

unread,
Sep 16, 2015, 4:08:03 PM9/16/15
to jenkinsc...@googlegroups.com
akostadinov created an issue
 
Jenkins / New Feature JENKINS-30500
jclouds docker support
Issue Type: New Feature New Feature
Assignee: abayer
Attachments: jclouds_docker.png
Components: jclouds-plugin
Created: 16/Sep/15 8:07 PM
Labels: jclouds
Priority: Minor Minor
Reporter: akostadinov

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

akostadinov@java.net (JIRA)

unread,
Sep 16, 2015, 4:09:02 PM9/16/15
to jenkinsc...@googlegroups.com
akostadinov updated an issue
Change By: akostadinov
Labels: docker jclouds

fritz@fritz-elfert.de (JIRA)

unread,
Oct 10, 2015, 7:51:01 AM10/10/15
to jenkinsc...@googlegroups.com
Fritz Elfert assigned an issue to Fritz Elfert
Change By: Fritz Elfert
Assignee: abayer Fritz Elfert

fritz@fritz-elfert.de (JIRA)

unread,
Nov 18, 2016, 10:04:02 PM11/18/16
to jenkinsc...@googlegroups.com
Fritz Elfert commented on New Feature JENKINS-30500
 
Re: jclouds docker support

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.

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

akostadinov@java.net (JIRA)

unread,
Nov 20, 2016, 5:24:02 AM11/20/16
to jenkinsc...@googlegroups.com
akostadinov commented on New Feature JENKINS-30500
 
Re: jclouds docker support

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.

Reply all
Reply to author
Forward
0 new messages