Commit af407a29 authored by Dimitrios Chalepakis's avatar Dimitrios Chalepakis
Browse files

Dockerfile adjusted

parent 5b42b1f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
FROM tomcat:8.0
FROM 8.5.66-jdk11-adoptopenjdk-openj9
MAINTAINER dimitrios.chalepakis@pta.de

COPY deploy/conf/context.xml /usr/local/tomcat/conf/context.xml
+14 −9
Original line number Diff line number Diff line
pipeline {
    agent any
    stages {
		stage('AuthAndAuth') { 
            steps {				
				dir("AuthAndAuth") {
					git branch: 'master', url: 'https://git.eclipse.org/r/openk-coremodules/org.eclipse.openk-coremodules.authandauth.git'
					sh 'mvn clean package'
					sh 'mkdir webapps || true'
					sh 'cp target/portal.war webapps/'
				}
			}
        }
		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'
					sh 'mkdir ../AuthAndAuth/webapps/portalFE || true'
					sh 'cp -r dist/* ../AuthAndAuth/webapps/portalFE/'
				}
			}
        }
@@ -26,6 +30,7 @@ pipeline {
					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"
					sh 'rm -rf webapps || true'
				}
			}
        }