feat 阿里云观测平台
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
FROM alpine:3.23.2
|
FROM alpine:3.23.2
|
||||||
|
|
||||||
|
ENV ARMS_ENABLE=true
|
||||||
|
ENV ARMS_APP_NAME=qgdzs
|
||||||
|
ENV ARMS_REGION_ID=cn-chengdu
|
||||||
|
ENV ARMS_LICENSE_KEY=gys9jv7jqe@144a6fd684976b3
|
||||||
|
|
||||||
RUN apk add --no-cache tzdata && \
|
RUN apk add --no-cache tzdata && \
|
||||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||||
echo "Asia/Shanghai" > /etc/timezone
|
echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|||||||
5
deploy/Jenkinsfile
vendored
5
deploy/Jenkinsfile
vendored
@@ -63,7 +63,10 @@ pipeline {
|
|||||||
export GOOS=linux
|
export GOOS=linux
|
||||||
export GOARCH=amd64
|
export GOARCH=amd64
|
||||||
|
|
||||||
go build -o ${env.APP_NAME} .
|
wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo
|
||||||
|
chmod +x instgo
|
||||||
|
./instgo set --licenseKey=gys9jv7jqe@144a6fd684976b3
|
||||||
|
./instgo go build -o ${env.APP_NAME} .
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user