docker 镜像打包 skywalking-java-agent
This commit is contained in:
@@ -1,5 +1,35 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
FROM apache/skywalking-java-agent:9.1.0-java8
|
||||
LABEL authors="yovinchen"
|
||||
VOLUME /tmp
|
||||
ADD ./target/service-acl.jar service-acl.jar
|
||||
ENTRYPOINT ["java","-jar","/service-acl.jar", "&"]
|
||||
|
||||
ARG APP_NAME="service-acl"
|
||||
ARG JAR_FILE="${APP_NAME}.jar"
|
||||
ARG WORK_PATH="/skywalking"
|
||||
|
||||
ENV JAR_FILE=${JAR_FILE}
|
||||
ENV SW_AGENT_NAME=${APP_NAME}
|
||||
ENV SW_AGENT_COLLECTOR_BACKEND_SERVICES="10.211.55.50:11800"
|
||||
|
||||
RUN rm /skywalking/agent/plugins/apm-cxf-* \
|
||||
/skywalking/agent/plugins/apm-dubbo-* \
|
||||
/skywalking/agent/plugins/apm-grizzly-* \
|
||||
/skywalking/agent/plugins/apm-grpc-* \
|
||||
/skywalking/agent/plugins/apm-h2-* \
|
||||
/skywalking/agent/plugins/apm-hbase-* \
|
||||
/skywalking/agent/plugins/apm-mongodb-* \
|
||||
/skywalking/agent/plugins/apm-netty-socketio-* \
|
||||
/skywalking/agent/plugins/apm-nutz-http-* \
|
||||
/skywalking/agent/plugins/apm-play-* \
|
||||
/skywalking/agent/plugins/apm-rocketmq-* \
|
||||
/skywalking/agent/plugins/micronaut-http-client-* \
|
||||
/skywalking/agent/plugins/micronaut-http-server-* \
|
||||
/skywalking/agent/plugins/websphere-liberty-* \
|
||||
/skywalking/agent/plugins/graphql-* \
|
||||
/skywalking/agent/plugins/motan-* \
|
||||
/skywalking/agent/plugins/nats-* \
|
||||
/skywalking/agent/plugins/sofa-rpc-* \
|
||||
/skywalking/agent/plugins/thrift-*
|
||||
|
||||
COPY ./target/$JAR_FILE $JAR_FILE
|
||||
|
||||
WORKDIR $WORK_PATH
|
||||
ENTRYPOINT exec java -jar $JAR_FILE
|
||||
|
@@ -1,12 +1,12 @@
|
||||
package com.yovinchen.xlcs.acl.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.yovinchen.xlcs.acl.service.PermissionService;
|
||||
import com.yovinchen.xlcs.acl.service.RoleService;
|
||||
import com.yovinchen.xlcs.common.result.Result;
|
||||
import com.yovinchen.xlcs.model.acl.Role;
|
||||
import com.yovinchen.xlcs.vo.acl.RoleQueryVo;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
@@ -103,7 +103,6 @@ public class RoleController {
|
||||
@ApiOperation(value = "根据id列表删除角色")
|
||||
@DeleteMapping("batchRemove")
|
||||
public Result batchRemove(@RequestBody List<Long> idList) {
|
||||
// TODO
|
||||
try {
|
||||
boolean result = roleService.removeByIds(idList);
|
||||
return result ? Result.ok(null) : Result.fail(null);
|
||||
@@ -116,7 +115,6 @@ public class RoleController {
|
||||
@ApiOperation(value = "获取一个角色的所有权限列表")
|
||||
@GetMapping("toAssign/{id}")
|
||||
public Result toAssign(@PathVariable Long id) {
|
||||
// TODO
|
||||
try {
|
||||
Map<String, Object> result = permissionService.getPermissionById(id);
|
||||
return Result.ok(result);
|
||||
|
@@ -1,5 +1,3 @@
|
||||
server:
|
||||
port: 8201
|
||||
spring:
|
||||
application:
|
||||
name: service-acl
|
||||
@@ -11,5 +9,7 @@ spring:
|
||||
server-addr: 82.157.68.223:8848
|
||||
username: nacos
|
||||
password: nacos
|
||||
server:
|
||||
port: 8201
|
||||
application:
|
||||
version: v1.0.0
|
||||
|
@@ -12,6 +12,7 @@
|
||||
<!-- 日志文件的存储地址,由application.yml中的logging.path配置,根路径默认同项目路径 -->
|
||||
<!-- <property name="LOG_HOME" value="${LOG_PATH:-./logs}"/>-->
|
||||
<property name="LOG_HOME" value="/Users/yovinchen/Desktop/project/xlcs/xlcs-parent/data/logs"/>
|
||||
<!-- <property name="LOG_HOME" value="/var/logs"/>-->
|
||||
<property name="LOG_FILE_MAX_SIZE" value="100MB"/>
|
||||
<property name="LOG_FILE_MAX_HISTORY" value="180"/>
|
||||
<property name="LOG_TOTAL_SIZE_CAP" value="100GB"/>
|
||||
|
Reference in New Issue
Block a user