Skip to content

Commit

Permalink
Added meta-build files
Browse files Browse the repository at this point in the history
  • Loading branch information
FeynmanFan committed Apr 2, 2020
1 parent 726baf6 commit 4b0a8e3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions buildDNC.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def dockerImage;

node('docker'){
stage('SCM'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/FeynmanFan/JenkinsDocker']]]);
}
stage('build'){
dockerImage = docker.build('chrisbbehrens/agent-dnc:v$BUILD_NUMBER', './dotnetcore');
}
stage('push'){
docker.withRegistry('', 'dockerhubcreds'){
dockerImage.push();
}
}
}
15 changes: 15 additions & 0 deletions jenkinsdocker.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM jenkins/jenkins:lts

USER root
RUN apt-get update -qq && apt-get install -qqy \
apt-transport-https \
ca-certificates \
curl \
lxc \
iptables

RUN curl -sSL https://get.docker.com/ | sh

RUN usermod -aG docker jenkins

CMD dockerd

0 comments on commit 4b0a8e3

Please sign in to comment.