Automate Spring Boot & Vue E‑Commerce Deployment with Jpom and Docker
Learn how to use the lightweight Jpom automation tool to set up Docker‑based CI/CD pipelines, configure repositories, build and package a Spring Boot 3 + Vue e‑commerce project, and deploy both backend and frontend services seamlessly on a Kubernetes‑ready environment.
In development or production environments, manually logging into servers to run deployment commands is cumbersome and error‑prone; an automated deployment solution like Jpom simplifies the process and reduces mistakes.
Jpom Introduction
Jpom is a lightweight automation deployment tool with over
8.5k+ starson Gitee. It provides online builds, automatic deployment, routine operations, and project monitoring.
Mall Project Overview
The mall project is a SpringBoot3 + Vue e‑commerce system (60K GitHub stars) that supports multiple modules and the latest 2024 microservice architecture, deployed with Docker and Kubernetes. It includes a front‑end shop and a back‑end admin system covering products, orders, carts, permissions, coupons, members, payments, and more.
Installation
Jpom is most conveniently installed via Docker.
Download the Jpom image:
<code>docker pull jpomdocker/jpom</code>Start the container:
<code>docker run -p 2122:2122 --name jpom-server \
-v /mydata/jpom-server/logs:/usr/local/jpom-server/logs \
-v /mydata/jpom-server/data:/usr/local/jpom-server/data \
-v /mydata/jpom-server/conf:/usr/local/jpom-server/conf \
-d jpomdocker/jpom</code>After the container starts, Jpom runs on port
2122. Access the console at http://192.168.3.101:2122 and create a super‑admin account.
Automated Deployment
The following steps demonstrate Jpom’s automated deployment using the mall project as an example.
Preparation
Define the deployment flow:
From Gitee repo → Maven build → Docker image → SSH script executionAdd the repository URL
https://gitee.com/macrozheng/mallto Jpom.
Add a Docker environment with remote API access enabled.
Set the workspace to the default value.
Add an SSH configuration and set the authorized directory to
/mydata.
Project Build
In the build list, create a container build and tag it as
local.
Configure the repository address for the mall project.
Set the build script for the
mall-adminmodule; the artifact will be placed at
/mall-admin/target/mall-admin-1.0-SNAPSHOT.jar.
Configure the release step to use SSH and execute the script
/mydata/sh/mall-admin.shto start the
mall-admincontainer.
The startup script for the mall project resides in the
document/shdirectory.
Summary
Today we used Jpom to automate the deployment of the mall project, demonstrating that Jpom is easier for Chinese developers than Jenkins while offering powerful features.
macrozheng
Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.