Re: AWS ECS Plugin

2017-01-25 Thread Rajasekaran R
Yes you are correct I am also running my slave jenkins user under docker group but I cant run docker commands using Jenkins user. My Dockerfile end of the lines look likes.. RUN usermod -aG docker jenkins RUN gpasswd -a jenkins docker #RUN systemctl restart docker USER jenkins ENTRYPOINT ["/usr

Re: AWS ECS Plugin

2016-02-02 Thread Mulloy Morrow
My Jenkins user is part of the docker group. That's why I was surprised by this error. On Mon, Feb 1, 2016, 11:41 PM nicolas de loof wrote: > docker socket is only accessible to users in docker group or to root. > running from a container doesn't bypass such permission check. > > 2016-02-01 23:5

Re: AWS ECS Plugin

2016-02-01 Thread nicolas de loof
docker socket is only accessible to users in docker group or to root. running from a container doesn't bypass such permission check. 2016-02-01 23:55 GMT+01:00 Mulloy Morrow : > Was able to get this working. Mounted the docker socket using the mount > point configs in the jenkins plugin. However,

Re: AWS ECS Plugin

2016-02-01 Thread Mulloy Morrow
Was able to get this working. Mounted the docker socket using the mount point configs in the jenkins plugin. However, I was getting a permission denied when trying to nc or curl the socket for info. I had to run the slaves as user root rather than user jenkins. Has either of you come across thi

Re: AWS ECS Plugin

2016-02-01 Thread Mulloy Morrow
Has anyone successfully been able to mount the Docker UNIX socket on the slave containers? I've attempted to mount this socket using the Jenkins ECS plugin (v1.2) by configuring "container mount points". (see jenkins config screenshot below)

AWS ECS Plugin Not Cleaning Nodes

2016-01-29 Thread Brandon Wagner
Is there a way to clean the Build Executor Nodes? I have the ECS plugin setup, but the Nodes don't get deleted, so I have over 1,000 nodes showing offline which are never removed. -Brandon Wagner -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: AWS ECS Plugin(JENKINS-31197)

2016-01-29 Thread nicolas de loof
y much! > > - Original Message - > *From:* nicolas de loof > *To:* "jenkinsci-users@googlegroups.com" > > *Date:* 2016/1/27, Wed 15:34 > *Subject:* Re: AWS ECS Plugin(JENKINS-31197) > > as you can see on Jira, JENKINS-31197 is still open. > I have a fi

Re: AWS ECS Plugin(JENKINS-31197)

2016-01-27 Thread yamamurataro1988
Sure, that would be great. Thank you very much! - Original Message - >From: nicolas de loof >To: "jenkinsci-users@googlegroups.com" >Date: 2016/1/27, Wed 15:34 >Subject: Re: AWS ECS Plugin(JENKINS-31197) > > >as you can see on Jira, JENKINS-31197

Re: AWS ECS Plugin(JENKINS-31197)

2016-01-26 Thread nicolas de loof
as you can see on Jira, JENKINS-31197 is still open. I have a fix in progress, would you like to give it a try ? 2016-01-27 2:58 GMT+01:00 : > Hi > > Has JENKINS-31197 been > sloved? I tried the single use slave plugin, but it does not launch n

AWS ECS Plugin(JENKINS-31197)

2016-01-26 Thread yamamurataro1988
Hi Has JENKINS-31197 been sloved? I tried the single use slave plugin, but it does not launch new container to run the jobs. Is there any other workaround? We have many jobs need to run at once it is impossible to run job one by one. Thanks  -- You received this message because you are subscri

Re: AWS ECS Plugin

2016-01-25 Thread Brandon Wagner
Ok, I've made progress. I'm able to run a docker container along side the slave container on ECS. However, I just used the amazon-ecs-plugin. When I tried using the CloudBees Docker Custom build Environment Plugin, I kept getting "Cannot start container System error: no such file or direct

Re: AWS ECS Plugin

2016-01-25 Thread nicolas de loof
Latest development build for ECS plugin do let you define bind mounts, see https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/ 2016-01-25 16:33 GMT+01:00 Brandon Wagner : > If I'm understanding correctly, I would mount the docker.sock to the slave > container? I created an image e

Re: AWS ECS Plugin

2016-01-25 Thread Brandon Wagner
If I'm understanding correctly, I would mount the docker.sock to the slave container? I created an image extended from the jenkinsci/jnlp-slave that does a wget for the docker CLI. However, I don't see a place to mount the docker.sock through the ECS configuration options. -Brandon Wagner On Sa

Re: AWS ECS Plugin

2016-01-23 Thread nicolas de loof
You could use docker-custom-build-environment-plugin for this exact scenario, with bind mounted /var/run/docker.sock so you can run containers side by side (vs "in-docker"). Would need some tests on my side to ensure this scenario is supported, I have this on my TOD for a while but never took time

Re: AWS ECS Plugin

2016-01-22 Thread Brandon Wagner
So I ended up figuring my issue out. I think there were a couple of issues. My JNLP port was set to 50,000 instead of 5,000 which the Jenkins Docker Container I was using was mapping to the host port 5000. And my Load Balancer in front of Jenkins was not forwarding port 5000 to the host (only 443).

Re: AWS ECS Plugin

2016-01-22 Thread Brandon Wagner
I would like to run Docker containers for all of my software projects and dynamically allocate build slaves via ECS (so that I can have a core cluster that can do builds quickly; in contrast to spinning up an EC2 instance). For example, I have a Java application which is completely contained in a

Re: AWS ECS Plugin

2016-01-22 Thread nicolas de loof
privileged flag has been added to development build ( https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/) anyway, DinD is probably not a good idea (there's really few docker usages to actually require it). What's your actual need ? 2016-01-22 20:46 GMT+01:00 Brandon Wagner : > So

Re: AWS ECS Plugin

2016-01-22 Thread nicolas de loof
First look into jenkins logs. Also check on ECS a task definition has been created for jenkins-slaves. Also double check ECS nodes can ping your jenkins master URL. 2016-01-21 22:13 GMT+01:00 Brandon Wagner : > I'm trying to use the Jenkins AWS EC2 Container Service (ECS) plugin to > deploy Jenki

AWS ECS Plugin

2016-01-21 Thread Brandon Wagner
I'm trying to use the Jenkins AWS EC2 Container Service (ECS) plugin to deploy Jenkins Slave Containers for builds. I have an ECS cluster setup, and I have it configured in my Jenkins Configuration. Everything appears to be good until I try to build a job, restricting to the ecs cloud label I s