Skip to content

Instantly share code, notes, and snippets.

@WoodProgrammer
Created August 3, 2018 13:24
Show Gist options
  • Select an option

  • Save WoodProgrammer/d7734676c951224fcd6957f6f24053c7 to your computer and use it in GitHub Desktop.

Select an option

Save WoodProgrammer/d7734676c951224fcd6957f6f24053c7 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
#jnlp-agent:
# depends_on:
# - jenkins
# image: jenkins/jnlp-slave
# command: -url http://jenkins:8080
# restart: always
# environment:
# JAVA_OPTS: "-Djava.awt.headless=true"
# JENKINS_SECRET: "cf7d7136bae12e417f87564249517ba94a2332879f40dbbc994b09736b5b8539"
# JENKINS_AGENT_NAME: "build-agent-jnlp"
jenkins:
build: #TODO: Once plugin installation is handled through c-as-c this can be removed and replaced with 'image'.
context: ./master
ports:
- 80:8080
- 50000:50000
environment:
- CASC_JENKINS_CONFIG=https://gist.githubusercontent.com/WoodProgrammer/042c96773ae387f7e70ac98735b2c641/raw/5775b6fb46e5ea12df1143eb53eb2d620b2c45b1/jenkins.yaml #Use a github repo. Be aware that the raw content is cached, so it can take a couple of mintues to take effect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment