[CI] - 修改基础镜像为JDK, 方便使用arthas工具-完成
This commit is contained in:
18
.github/workflows/build-push-docker.yml
vendored
18
.github/workflows/build-push-docker.yml
vendored
@@ -95,15 +95,15 @@ jobs:
|
||||
latest
|
||||
{{date 'YYYY-MM-DD-HH-mm'}}
|
||||
|
||||
- name: Build My Base Image
|
||||
uses: docker/build-push-action@v3.2.0
|
||||
with:
|
||||
context: ./
|
||||
# Path to the Dockerfile
|
||||
file: ./source/src/main/java/io/wdd/source/build-my-own-base-image.dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.docker_tags_base.outputs.tags }}
|
||||
# - name: Build My Base Image
|
||||
# uses: docker/build-push-action@v3.2.0
|
||||
# with:
|
||||
# context: ./
|
||||
# # Path to the Dockerfile
|
||||
# file: ./source/src/main/java/io/wdd/source/build-my-own-base-image.dockerfile
|
||||
# platforms: linux/amd64,linux/arm64
|
||||
# push: true
|
||||
# tags: ${{ steps.docker_tags_base.outputs.tags }}
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v3.2.0
|
||||
|
||||
@@ -67,6 +67,7 @@ public class OctopusAgentServiceImpl implements OctopusAgentService {
|
||||
|
||||
CountDownLatch countDownLatch = new CountDownLatch(ALL_HEALTHY_AGENT_TOPIC_NAME_LIST.size());
|
||||
|
||||
// todo 此处存在重大bug,会导致CPU占用飙升
|
||||
CompletableFuture<Void> getAllAgentVersionInfoFuture = waitCollectAllAgentVersionInfo(
|
||||
result,
|
||||
currentTime,
|
||||
|
||||
@@ -81,7 +81,7 @@ public class OctopusMessageHandler {
|
||||
|
||||
}
|
||||
|
||||
// todo what to do after received the result
|
||||
// 将收到的消息,直接存储到 缓存队列中
|
||||
log.debug("cache the octopus message to inner cache list !");
|
||||
OCTOPUS_MESSAGE_FROM_AGENT.offer(octopusMessage);
|
||||
|
||||
|
||||
@@ -3,4 +3,5 @@ FROM eclipse-temurin:11-jdk-focal
|
||||
|
||||
MAINTAINER zeaslity@gmail.com
|
||||
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends iputils-ping net-tools dnsutils lsof curl wget mtr-tiny vim openssh-client && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends iputils-ping net-tools dnsutils lsof curl wget mtr-tiny vim openssh-client && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
@@ -157,12 +157,7 @@ apt-cache madison openjdk-11-jdk | head -n 1 | awk '{print$3}'
|
||||
java -jar /octopus-agent/agent.jar -Xms128m -Xmx512m -Dfile.encoding=utf-8 --spring.profiles.active=k3s --spring.cloud.nacos.config.group=k3s --spring.cloud.nacos.config.extension-configs[0].dataId=common-k3s.yaml --spring.cloud.nacos.config.extension-configs[0].group=k3s
|
||||
|
||||
|
||||
export OctopusServerContainerName="octopus-server"
|
||||
|
||||
docker container stop ${OctopusServerContainerName}
|
||||
sleep 2
|
||||
docker container rm ${OctopusServerContainerName}
|
||||
docker image rmi icederce/wdd-octopus-server:latest
|
||||
docker exec -it octopus-server /bin/bash -c "wget https://arthas.aliyun.com/arthas-boot.jar && java -jar arthas-boot.jar"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user