Dockerfile and Jenkinsfile added
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d683b56
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,8 @@
+FROM tomcat:8.0
+MAINTAINER dimitrios.chalepakis@pta.de
+
+COPY deploy/conf/context.xml /usr/local/tomcat/conf/context.xml
+
+COPY target/portal.war /usr/local/tomcat/webapps/
+
+COPY ../portalFE/dist /usr/local/tomcat/webapps/portalFE/
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..bc7c73e
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,33 @@
+pipeline {
+ agent any
+ stages {
+ stage('portalFE') {
+ steps {
+ dir("portalFE") {
+ git branch: 'master', url: 'https://git.eclipse.org/r/openk-coremodules/org.eclipse.openk-coremodules.portalFE.git'
+ sh 'npm install'
+ sh 'npm run build'
+ }
+ }
+ }
+ stage('Backend') {
+ steps {
+ dir("AuthAndAuth") {
+ git branch: 'master', url: 'https://git.eclipse.org/r/openk-coremodules/org.eclipse.openk-coremodules.authandauth.git'
+ sh 'mvn clean package'
+ }
+ }
+ }
+ stage('Deploy') {
+ steps {
+ dir("AuthAndAuth") {
+ sh 'docker stop portal_container || true'
+ sh 'docker rm portal_container || true'
+ sh 'docker rmi portal:MASTER || true'
+ sh 'docker build -f Dockerfile -t portal:MASTER --no-cache .'
+ sh "docker run -d --name portal_container -p 8888:8080 --restart always portal:MASTER"
+ }
+ }
+ }
+ }
+}