Loading Dockerfile 0 → 100644 +8 −0 Original line number Diff line number Diff line 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/ Jenkinsfile 0 → 100644 +33 −0 Original line number Diff line number Diff line 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" } } } } } Loading
Dockerfile 0 → 100644 +8 −0 Original line number Diff line number Diff line 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/
Jenkinsfile 0 → 100644 +33 −0 Original line number Diff line number Diff line 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" } } } } }