Skip to content

Commit

Permalink
Added ex-jenkinsDocker.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FeynmanFan committed Apr 3, 2020
1 parent 6d5302b commit deb36cc
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 0 deletions.
Binary file modified ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Binary file not shown.
Binary file modified ConsoleApp1/.vs/ConsoleApp1/v16/Server/sqlite3/storage.ide
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions build-simple-dnc.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def dockerImage;

node('docker-ex'){
stage('SCM'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/FeynmanFan/JenkinsDocker']]]);
}
stage('build'){
docker.withRegistry('https://index.docker.io/v1/', 'dockerhubcreds'){
sh 'docker buildx create --name cbbspace'
sh 'docker buildx use cbbspace'
sh 'docker buildx build -t chrisbbehrens/simplednc:jenkinsfile --platform=linux/amd64,linux/arm/v7 - < simplednc.Dockerfile --push'
}

}
}
13 changes: 13 additions & 0 deletions buildxoutput.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 149B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/dotnet/core/sdk:3.1 0.0s
=> [1/3] FROM mcr.microsoft.com/dotnet/core/sdk:3.1 0.1s
=> => resolve mcr.microsoft.com/dotnet/core/sdk:3.1 0.0s
=> [2/3] RUN apt-get update 7.8s
=> [3/3] RUN apt-get install git -y 1.5s
=> exporting to image 0.2s
=> => exporting layers 0.1s
=> => writing image sha256:a1aacf5a7634c5d79220b80802fc439b12cf02475bc32f2557672939a737a07c 0.0s
=> => naming to docker.io/chrisbbehrens/dncgit:arm7
5 changes: 5 additions & 0 deletions dncgit.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1

RUN apt-get update
RUN apt-get install git -y
CMD ["/bin/bash"]
2 changes: 2 additions & 0 deletions ex-jenkinsdocker.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM chrisbbehrens/jenkinsdocker:v1
ENV DOCKER_CLI_EXPERIMENTAL=enabled

0 comments on commit deb36cc

Please sign in to comment.