Skip to content

Commit

Permalink
Tutorials 1-3 updated
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfields2000 committed Mar 29, 2018
1 parent 9c13b9f commit 3510650
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 30 deletions.
4 changes: 2 additions & 2 deletions tutorial_01/makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
build:
@docker pull jenkins:1.609.1
@docker pull jenkins/jenkins:2.112
run:
@docker run -p 8080:8080 --name=jenkins-master -d --env JAVA_OPTS="-Xmx8192m" --env JENKINS_OPTS="--handlerCountStartup=100 --handlerCountMax=300" jenkins:1.609.1
@docker run -p 8080:8080 --name=jenkins-master -d --env JAVA_OPTS="-Xmx8192m" --env JENKINS_OPTS="--handlerCountMax=300" jenkins/jenkins:2.112
start:
@docker start jenkins-master
stop:
Expand Down
6 changes: 3 additions & 3 deletions tutorial_02/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM jenkins:1.609.1
MAINTAINER Maxfield Stewart
FROM jenkins/jenkins:2.112
LABEL maintainer="[email protected]"

# Create Jenkins Log Folder
USER root
Expand All @@ -9,4 +9,4 @@ USER jenkins

# Set default options
ENV JAVA_OPTS="-Xmx8192m"
ENV JENKINS_OPTS="--handlerCountStartup=100 --handlerCountMax=300 --logfile=/var/log/jenkins/jenkins.log"
ENV JENKINS_OPTS="--handlerCountMax=300 --logfile=/var/log/jenkins/jenkins.log"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM jenkins:1.609.1
MAINTAINER Maxfield Stewart
FROM jenkins/jenkins:2.112
LABEL maintainer="[email protected]"

# Prep Jenkins Directories
USER root
Expand All @@ -11,4 +11,4 @@ USER jenkins

# Set Defaults
ENV JAVA_OPTS="-Xmx8192m"
ENV JENKINS_OPTS="--handlerCountStartup=100 --handlerCountMax=300 --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war"
ENV JENKINS_OPTS="--handlerCountMax=300 --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war"
13 changes: 0 additions & 13 deletions tutorial_03/jenkins-data/Dockerfile

This file was deleted.

19 changes: 10 additions & 9 deletions tutorial_03/makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
build:
@docker build -t myjenkins jenkins-master/.
@docker build -t myjenkinsdata jenkins-data/.
run-data:
@docker run --name=jenkins-data myjenkinsdata
run:
@docker run -p 8080:8080 -p 50000:50000 --name=jenkins-master --volumes-from=jenkins-data -d myjenkins
@docker build -t myjenkins .
create-data:
@docker volume create jenkins-log
@docker volume create jenkins-data
run: create-data
@docker run -p 8080:8080 -p 50000:50000 --name=jenkins-master --mount source=jenkins-log,target=/var/log/jenkins --mount source=jenkins-data,target=/var/jenkins_home -d myjenkins
stop:
@docker stop jenkins-master
-docker stop jenkins-master
clean: stop
@docker rm jenkins-master
-docker rm jenkins-master
clean-data: clean
@docker rm -v jenkins-data
-docker volume rm jenkins-log
-docker volume rm jenkins-data

0 comments on commit 3510650

Please sign in to comment.