[CI] - 修改基础镜像为JDK, 方便使用arthas工具

This commit is contained in:
zeaslity
2023-02-16 17:25:55 +08:00
parent 21b2288e9b
commit a92e56be28
5 changed files with 13 additions and 26 deletions

View File

@@ -95,15 +95,15 @@ jobs:
latest latest
{{date 'YYYY-MM-DD-HH-mm'}} {{date 'YYYY-MM-DD-HH-mm'}}
# - name: Build My Base Image - name: Build My Base Image
# uses: docker/build-push-action@v3.2.0 uses: docker/build-push-action@v3.2.0
# with: with:
# context: ./ context: ./
# # Path to the Dockerfile # Path to the Dockerfile
# file: ./source/src/main/java/io/wdd/source/build-my-own-base-image.dockerfile file: ./source/src/main/java/io/wdd/source/build-my-own-base-image.dockerfile
# platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
# push: true push: true
# tags: ${{ steps.docker_tags_base.outputs.tags }} tags: ${{ steps.docker_tags_base.outputs.tags }}
- name: Cache - name: Cache
uses: actions/cache@v3.2.0 uses: actions/cache@v3.2.0

View File

@@ -23,7 +23,7 @@ import java.util.concurrent.*;
* 2. [build the redis stream listener] * 2. [build the redis stream listener]
* 3. [call persistence] * 3. [call persistence]
*/ */
@Service //@Service
@Slf4j @Slf4j
@Lazy @Lazy
@Deprecated @Deprecated

View File

@@ -47,7 +47,6 @@ public interface QuartzSchedulerService {
* @param jobClass 任务job实现类 * @param jobClass 任务job实现类
* @param jobName 任务job名称保证唯一性 * @param jobName 任务job名称保证唯一性
* @param jobGroupName 任务job组名 * @param jobGroupName 任务job组名
* @param startTime 任务开始时间,单位间隔为秒
* @param cronJobExpression 任务时间表达式 * @param cronJobExpression 任务时间表达式
* @param jobData 任务参数 * @param jobData 任务参数
* @return * @return
@@ -57,7 +56,6 @@ public interface QuartzSchedulerService {
String jobName, String jobName,
String jobGroupName, String jobGroupName,
String jobDescription, String jobDescription,
int startTime,
String cronJobExpression, String cronJobExpression,
Map jobData Map jobData
); );

View File

@@ -15,7 +15,6 @@ import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.quartz.*; import org.quartz.*;
import org.quartz.DateBuilder.IntervalUnit;
import org.quartz.impl.matchers.GroupMatcher; import org.quartz.impl.matchers.GroupMatcher;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean; import org.springframework.scheduling.quartz.QuartzJobBean;
@@ -71,7 +70,6 @@ public class QuartzSchedulerServiceImpl implements QuartzSchedulerService {
scriptSchedulerDTO.getSchedulerUuid(), scriptSchedulerDTO.getSchedulerUuid(),
SCRIPT_SCHEDULE_MISSION_GROUP_NAME, SCRIPT_SCHEDULE_MISSION_GROUP_NAME,
scriptSchedulerDTO.getDescription(), scriptSchedulerDTO.getDescription(),
0,
// 立即开始本次任务 1ms wait // 立即开始本次任务 1ms wait
scriptSchedulerDTO.getCronExpress(), scriptSchedulerDTO.getCronExpress(),
dataMap dataMap
@@ -271,14 +269,13 @@ public class QuartzSchedulerServiceImpl implements QuartzSchedulerService {
jobName, jobName,
jobGroupName, jobGroupName,
null, null,
startTime,
cronJobExpression, cronJobExpression,
jobData jobData
); );
} }
@Override @Override
public JobDetail addMission(Class<? extends QuartzJobBean> jobClass, String jobName, String jobGroupName, String jobDescription, int startTime, String cronJobExpression, Map jobData) { public JobDetail addMission(Class<? extends QuartzJobBean> jobClass, String jobName, String jobGroupName, String jobDescription, String cronJobExpression, Map jobData) {
try { try {
// 创建jobDetail实例绑定Job实现类 // 创建jobDetail实例绑定Job实现类
// 指明job的名称所在组的名称以及绑定job类 // 指明job的名称所在组的名称以及绑定job类
@@ -303,21 +300,12 @@ public class QuartzSchedulerServiceImpl implements QuartzSchedulerService {
// 使用cornTrigger规则 // 使用cornTrigger规则
// 触发器key // 触发器key
// uniform the start time // uniform the start time
if (ObjectUtils.isEmpty(startTime)) {
startTime = 1;
}
Trigger trigger = newTrigger() Trigger trigger = newTrigger()
.withIdentity( .withIdentity(
jobName, jobName,
jobGroupName jobGroupName
) )
.startAt(
DateBuilder.futureDate(
startTime,
IntervalUnit.SECOND
)
)
.withSchedule( .withSchedule(
CronScheduleBuilder.cronSchedule(cronJobExpression) CronScheduleBuilder.cronSchedule(cronJobExpression)
) )

View File

@@ -1,4 +1,5 @@
FROM eclipse-temurin:11-jre-focal #FROM eclipse-temurin:11-jre-focal
FROM eclipse-temurin:11-jdk-focal
MAINTAINER zeaslity@gmail.com MAINTAINER zeaslity@gmail.com