trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [trafficserver-ci] branch main updated: adding jenkins-agent files
Date Thu, 11 Mar 2021 23:39:05 GMT
This is an automated email from the ASF dual-hosted git repository.

eze pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 84f38fc  adding jenkins-agent files
     new 37c6563  Merge pull request #3 from ezelkow1/main
84f38fc is described below

commit 84f38fcb7aeda2e5df0a001ecbff24e96edad4ad
Author: Evan Zelkowitz <evan.zelkowitz@gmail.com>
AuthorDate: Thu Mar 11 15:36:37 2021 -0800

    adding jenkins-agent files
---
 docker/jenkins-agent/Dockerfile         |  8 ++++++++
 docker/jenkins-agent/docker-compose.yml | 21 +++++++++++++++++++++
 2 files changed, 29 insertions(+)

diff --git a/docker/jenkins-agent/Dockerfile b/docker/jenkins-agent/Dockerfile
new file mode 100644
index 0000000..85fce86
--- /dev/null
+++ b/docker/jenkins-agent/Dockerfile
@@ -0,0 +1,8 @@
+FROM jenkins/inbound-agent
+USER root
+RUN apt-get update && apt-get -y install docker docker-compose sudo
+RUN usermod -aG docker jenkins
+RUN echo -e "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/jenkins
+RUN chmod u+wx /etc/sudoers
+
+USER jenkins
diff --git a/docker/jenkins-agent/docker-compose.yml b/docker/jenkins-agent/docker-compose.yml
new file mode 100644
index 0000000..bfbae55
--- /dev/null
+++ b/docker/jenkins-agent/docker-compose.yml
@@ -0,0 +1,21 @@
+version: '3.4'
+
+services:
+  jenkins-agent:
+    container_name: jenkins-agent
+#    image: jenkins/inbound-agent
+    build:
+      dockerfile: Dockerfile
+      context: .
+      network: host
+    environment:
+      JENKINS_URL: "http://jenkins.trafficserver.org:6969/"
+      JENKINS_AGENT_NAME: "docker1"
+      JENKINS_AGENT_WORKDIR: "/home/jenkins/agent"
+      JENKINS_WEB_SOCKET: "true"
+      JENKINS_SECRET: "INSERT_SUPER_SECRET_JENKINS_THING_HERE"
+    network_mode: host
+    restart: always
+    volumes:
+      - /tmp:/home/jenkins
+      - /var/run/docker.sock:/var/run/docker.sock:rw


Mime
View raw message