# 0509 **Repository Path**: lichenhongeeeee/0509 ## Basic Information - **Project Name**: 0509 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-09 - **Last Updated**: 2024-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 0509 #### 介绍 1. 介绍 我的todo项目部署作业 ### 下载源码 ``` yum -y group install "Development Tools" git clone https://gitee.com/ryan-leee/todo-0508.git cd todo-0508 ``` ### **构建Jar包文件** 创建一个存放`Maven仓库`的卷,使得Maven的依赖被缓存,可加快构建速度。 ``` docker volume create --name ssadmin-maven-repo ``` 使用 Maven Docker 镜像来编译和打包 Spring Boot 应用。 ``` docker run -it --rm --name ssadmin-maven \ -v ssadmin-maven-repo:/root/.m2 \ -v "$PWD/backend":/usr/src/mymaven \ -w /usr/src/mymaven \ maven:latest \ mvn clean install -e -Dmaven.test.skip=true ``` #### 使用说明 1. 安装Docker和git 2. 下载最终的源码 3. build jar包 4. 启动docker compose up -d ####