configuration file docker-compose.yml for create new node / slave in jenkins

0

I am new in this of the docker-compose.yml configurations and I would like to help you first if the implementation of my file is fine, it is to create a node/slave in jenkis through commands and as an aria to recover the .jar file that generate, reading it and enter the value or path in the <secret> field.

version: '3'
services:
  jenkins_server:
    image: "registry.jala.info/devops/jenkins/jenkins:2.107.3-alphine"
    ports:
      - "8080:8080"
      - "5000:5000"
    volumes:
      - ./jenkins:/var/jenkins_home
  jenkins_slave:
    image: "registry.jala.info/devops/jenkins/jnlp-slave:3.27.1-alphine"
    env_file:
      - -url
      - http://jenkins_server:5000
      - -wordDir=/home/jenkins/agent
      - <secret>
      - <agent name>
    
asked by daniel sandoval 10.11.2018 в 18:13
source

0 answers