mazyafai / devops-maven-docker Goto Github PK
View Code? Open in Web Editor NEWThis project forked from techlanders/maven-project
Maven Project with Dockerfile
This project forked from techlanders/maven-project
Maven Project with Dockerfile
Welcome to the DevOps test repository for Maven projects ************************************************************ To use this, your system (Centos 7) should have below tools installed: git //you can use "yum install git -y" for this maven //you can use "yum install maven -y" for this jenkins //follow the installation guideline at https://www.jenkins.io/doc/book/installing/#red-hat-centos docker // you can install docker : sudo yum install -y yum-utils sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin systemctl start docker --- use maven to clean the previous builds and package the war file mvn clean mvn package check the outputs in target directory structure and war file with name devops.war build the docker image with docker build command ( you can see dockerfile in present working directory) docker build -t image-name:version . docker rm -f `docker ps -aq` ------when you will build it second time use this command aswell Run a container from the image docker run -d -p 8081:8080 --name mynewcontainer image-name:version {8080 port is taken by jenkins} Check your system IP in browser : IP:8081/devops Lab completed**
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.