This is a demo CI project, which would no longer maintain
You can follow Todo List to create the project
Git Hub Travis CI Jobs Docker Hub
https://github.com/gaozhidf/demoCI https://travis-ci.org/gaozhidf/demoCI https://hub.docker.com/u/gaozhidf/
+-------------+ +-----------------------------------+ +--------------------------------+
| | toggle CI/CD jobs | +------------> gaozhidf/demo_ci |
| Git Repo +----------------------> 1. Stage 1: | push images| |
| | | a. mvn install | | gaozhidf/demo_ci_static_server |
+-----+-------+ | b. key decrypt | | |
^ | 2. Stage 2: | +----------------+---------------+
| git commit && push | a. build docker images | |
| | b. test docker containers | | pull docker images
+-----+-------+ | 3. Stage 3: | |
| | | a. push images to docker repo | |
| Source Codes| Local PC | 4. Stage 4: | ansible |
| | | a. deploy to remote server | deploy +----------------v----------------+
+-------------+ | +------------> |
+-----------------------------------+ | Remote Server |
| |
| 1. setup the static server for |
| static resources |
| 2. setup the demo server |
| |
+---------------------------------+
docker-compose up
Open the browser http://localhost(http://localhost:80)
# linux
./mvnw install
# windows
mvnw.cmd install
# linux
./mvnw package
# windows
mvnw.cmd package
# linux
./mvnw spring-boot:run
# windows
mvnw.cmd spring-boot:run