forked from maxfields2000/dockerjenkins_tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c13b9f
commit 3510650
Showing
5 changed files
with
18 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |