diff --git a/Dockerfile b/Dockerfile index 6772f2f4..3f49d049 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,22 @@ FROM ubuntu:16.04 +LABEL MAINTAINER Santosh rai +ENV DEBIAN_FRONTEND noninteractive +ENV JAVA_HOME /usr/lib/jvm/java-8-oracle +ENV LANG en_US.UTF-8 +ENV LC_ALL en_US.UTF-8 RUN apt-get update && \ - apt-get upgrade -y && \ - apt-get install -y curl && \ - apt-get install -y software-properties-common && \ - add-apt-repository ppa:webupd8team/java -y && \ - apt-get update && \ - echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \ - apt-get install -y oracle-java8-installer && \ - apt-get clean + apt-get install -y --no-install-recommends locales && \ + locale-gen en_US.UTF-8 && \ + apt-get dist-upgrade -y && \ + apt-get --purge remove openjdk* && \ + echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections && \ + echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" > /etc/apt/sources.list.d/webupd8team-java-trusty.list && \ + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 && \ + apt-get update && \ + apt-get install curl -y && \ + apt-get install -y --no-install-recommends oracle-java8-installer oracle-java8-set-default && \ + apt-get clean all + RUN groupadd tomcat RUN useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat RUN cd /tmp diff --git a/Jenkinsfile b/Jenkinsfile index 92668c34..79aaf291 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,17 +1,14 @@ -node(){ -stage ("clone"){ -} -stage ("build"){ -} -stage ("test-unittesting"){ -} -stage ("Sonarqube"){ -} -stage ("Creating docker container"){ -} - -stage ("docker verification"){ -} - stage ("upload docker image to dockehu/artifactory"){ -} +pipeline { + agent any + tools { + jdk 'jdk8' + maven 'maven3' + } + stages { + stage('Install') { + steps { + sh "mvn clean test" + } + } + } } diff --git a/santosh.txt b/santosh.txt new file mode 100644 index 00000000..cc038835 --- /dev/null +++ b/santosh.txt @@ -0,0 +1,3 @@ +Hello world!!! + +New update diff --git a/scripts/update.sh b/scripts/update.sh new file mode 100644 index 00000000..b1ba2702 --- /dev/null +++ b/scripts/update.sh @@ -0,0 +1,2 @@ + +echo " Santosh Rai"