Skip to content
Snippets Groups Projects
Commit ea6fa39c authored by Thomas  MENARD's avatar Thomas MENARD
Browse files

Add typescript angular compile

parent c6014f4d
No related branches found
No related tags found
No related merge requests found
...@@ -16,10 +16,15 @@ LABEL io.k8s.description="Platform for building and running Spring Boot applicat ...@@ -16,10 +16,15 @@ LABEL io.k8s.description="Platform for building and running Spring Boot applicat
io.openshift.tags="builder,java,java8,maven,maven3,springboot" io.openshift.tags="builder,java,java8,maven,maven3,springboot"
RUN yum update -y && \ RUN yum update -y && \
yum install -y curl && \ yum install -y curl epel-release && \
yum install -y java-$JAVA_VERSON-openjdk java-$JAVA_VERSON-openjdk-devel && \ yum install -y java-$JAVA_VERSON-openjdk java-$JAVA_VERSON-openjdk-devel && \
yum clean all yum clean all
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
RUN yum install nodejs gcc-c++ make && \
yum clean all && npm install -f @angular/cli
RUN curl -fsSL https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \ RUN curl -fsSL https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \
&& mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \ && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
......
# Spring Boot - Maven 3 - CentOS Docker image # Spring Boot - Maven 3 + Typescript Angular - CentOS Docker image
[![Build Status](https://travis-ci.org/codecentric/springboot-maven3-centos.svg?branch=master)](https://travis-ci.org/codecentric/springboot-maven3-centos) [![Build Status](https://travis-ci.org/codecentric/springboot-maven3-centos.svg?branch=master)](https://travis-ci.org/codecentric/springboot-maven3-centos)
......
...@@ -3,7 +3,15 @@ ...@@ -3,7 +3,15 @@
set -e set -e
echo "---> Installing application source" echo "---> Installing application source"
cp -Rf /tmp/src/. ./ cp -Rf /tmp/. ./
echo "---> Cleaning eventually static files hosted in src/...."
rm -rf ./src/main/resources/static/*
echo "---> Building static files"
cd static
npm install
ng build --prod
mv ./dist/* ../src/main/resources/static/
echo "---> Building Spring Boot application from source" echo "---> Building Spring Boot application from source"
echo "--> # MVN_ARGS = $MVN_ARGS" echo "--> # MVN_ARGS = $MVN_ARGS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment