Merge branch 'DEVELOP_BE' of ssh://172.18.22.160:29418/Dropwizard/Microservices/mics-central-service into DEVELOP_BE
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..639b5da --- /dev/null +++ b/Dockerfile
@@ -0,0 +1,21 @@ +FROM myserver:withproxy +#linux 16.04 +MAINTAINER Dimitris + +WORKDIR microservices + +RUN git clone http://172.18.22.160:8880/gitblit-1.8.0/r/Dropwizard/Microservices/mics-central-service.git && cd mics-central-service && git checkout DEVELOP_BE + +WORKDIR mics-central-service + +RUN mvn install -DskipTests + +WORKDIR / + +COPY C:\Users\Administrator\Projekt\Microservices\UbuntuServer\central\my_wrapper_script.sh my_wrapper_script.sh +RUN sed -i -e 's/\r$//' my_wrapper_script.sh +CMD ./my_wrapper_script.sh + +EXPOSE 9010 9011 + +
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..425f0c8 --- /dev/null +++ b/Jenkinsfile
@@ -0,0 +1,20 @@ +node { + def app + + stage('Clone repository') { + /* Let's make sure we have the repository cloned to our workspace */ + + checkout scm + } + + stage('Build image') { + /* This builds the actual image; synonymous to + * docker build on the command line */ + + app = docker.build("myserver_central/jenkinsversion --no-cache") + } + + stage('Refresh containers') { + bat 'start cmd.exe /c C:\\Jenkinshelper\\refresh_docker.bat' + } +} \ No newline at end of file