▶ 构建镜像
1、获取最新源码
git clone https://github.com/apache/skywalking.git
2、编译源码
git submodule init
git submodule update
./mvnw clean package -Dmaven.test.skip=true
3、构建镜像 skywalking/oap
& skywalking/ui
# 进入 docker 目录
cd docker
# 构建镜像
make build
4、查看镜像
docker images | grep skywalking
skywalking/ui latest ccfd3d8415da 1 hours ago 787MB
skywalking/oap latest 6380b2c7aa7d 1 hours ago 839MB
▶ 镜像优化
1、修改 OAP 的 Dockerfile
修改 docker/oap/Dockerfile
:替换 FROM openjdk:8u181-jdk-stretch
为 FROM openjdk:8-jre-alpine
2、修改 UI 的 Dockerfile
修改 docker/ui/Dockerfile
:替换 FROM openjdk:8u181-jdk-stretch
为 FROM openjdk:8-jre-alpine
3、构建镜像
# build oap & ui
make docker.all
# build oap
make docker.oap
# build ui
make docker.ui
▶ 相关地址
- SkyWalking 官网:https://skywalking.apache.org
- SkyWalking Github:https://github.com/apache/skywalking
- RocketBot-UI Github:https://github.com/apache/skywalking-rocketbot-ui
- 工程构建:How to build
网友评论