Skip to content
Snippets Groups Projects
Commit 0c30f1d5 authored by Simon Reis's avatar Simon Reis
Browse files

Dockerfile, Jenkinsfile, Wrapper for docker added

parent 210ed29a
Branches
No related tags found
No related merge requests found
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 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
......@@ -5,10 +5,6 @@ node {
checkout scm
}
stage('Change directory') {
sh 'cd C:/Users/Administrator/Projekt/Microservices/UbuntuServer/central'
}
stage('Build image') {
/* This builds the actual image; synonymous to
......@@ -17,6 +13,6 @@ node {
}
stage('Refresh containers') {
sh './C:/Jenkinshelper/refresh_docker.bat'
sh './C:/\Jenkinshelper/\refresh_docker.bat'
}
}
\ No newline at end of file
#!/bin/bash
cd microservices/mics-central-service/
java -jar target/mics-central-service.jar server serviceConfigDevLocal_MASTER.yml
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment