Skip to content

Instantly share code, notes, and snippets.

@michalkorzawski
Last active January 23, 2023 23:18
Show Gist options
  • Select an option

  • Save michalkorzawski/86b2a2abeb0d4f321fff977af0e95167 to your computer and use it in GitHub Desktop.

Select an option

Save michalkorzawski/86b2a2abeb0d4f321fff977af0e95167 to your computer and use it in GitHub Desktop.

Revisions

  1. michalkorzawski revised this gist Jan 23, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions jenkins docker-compose shared volume
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    version: '3.8'
    services:
    jenkins:
    environment:
    - JAVA_OPTS=-Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true
    image: jenkins/jenkins:jdk11
    ports:
    - 8080:8080
  2. michalkorzawski created this gist Jan 23, 2023.
    12 changes: 12 additions & 0 deletions jenkins docker-compose shared volume
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    version: '3.8'
    services:
    jenkins:
    image: jenkins/jenkins:jdk11
    ports:
    - 8080:8080
    volumes:
    - jenkins_home:/var/jenkins_home
    - ../your_app:/var/jenkins_home/your_app:ro

    volumes:
    jenkins_home: