build: 修改Dockerfile

This commit is contained in:
CaptainB 2023-05-24 16:46:38 +08:00 committed by 刘瑞斌
parent aa7cd23e83
commit 6917bd40c5
3 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ jobs:
distribution: 'temurin'
java-version: 17
- name: Build with Maven
run: mvn -B package --file backend/pom.xml
run: mvn -B package --file pom.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:

View File

@ -16,9 +16,9 @@ COPY backend/src/main/resources/public /app/public
COPY backend/src/main/resources/static /app/static
RUN mv /app/lib/ms-jmeter-core-*.jar /app/lib/ms-jmeter-core.jar
RUN mv /app/lib/metersphere-jmeter-core-*.jar /app/lib/metersphere-jmeter-core.jar
ENV JAVA_CLASSPATH=/app:/app/lib/ms-jmeter-core.jar:/opt/jmeter/lib/ext/*:/app/lib/*
ENV JAVA_CLASSPATH=/app:/app/lib/metersphere-jmeter-core.jar:/opt/jmeter/lib/ext/*:/app/lib/*
ENV JAVA_MAIN_CLASS=io.metersphere.Application
ENV AB_OFF=true
ENV MS_VERSION=${MS_VERSION}

View File

@ -6,7 +6,7 @@
# 此命令会将parent pom 安装到本地仓库,其他外部子工程可以获得最新的 <properties></properties>
./mvnw install -N
# 此命令会将 domain sdk ms-jmeter-core其他外部子工程可以获得最新的 jar
# 此命令会将 domain sdk metersphere-jmeter-core其他外部子工程可以获得最新的 jar
./mvnw clean install -pl backend,backend/framework,backend/framework/domain,backend/framework/jmeter,backend/framework/plugin,backend/framework/sdk,backend/services,backend/services/load-test,backend/services/ui-test
```