New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

open-gitlab.going-link.com/operation-sre/uuap

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-gitlab.going-link.com/operation-sre/uuap

  • v0.0.0-20231128071939-65d8ea59e264
  • Go
  • Socket score

Version published
Created
Source

uuap

ldap 管理服务(rpc)

1. 初始化项目

会根据uuap.proto文件更新项目uuappbuuapclient

后面若更新proto文件,在项目根目录执行此命令刷新项目:

goctl rpc protoc uuap.proto --go_out=. --go-grpc_out=. --zrpc_out=. --style goZero

2. 调试、部署测试

  1. 调试本地rpc服务
# 调试远程rpc服务
grpcui -plaintext 192.168.5.119:8081
# 调试本地rpc服务
grpcui -plaintext 127.0.0.1:8081
# 调试生产服务
grpcui -plaintext 10.2.110.138:8081
  1. docker k8s部署
# 生成dockerfile
goctl docker -go uuap.go
# 创建cm文件
k create configmap uuap-cm --from-file=etc/uuap.yaml
# 应用deploy
k apply -f uuap.yaml
# 构建镜像
docker build -t open-registry.going-link.com/isrm-public/uuap:v1 -f ./Dockerfile .
# 仓库认证
export DOCKER_USERNAME="###"
export DOCKER_PASSWORD="####"
export DOCKER_REGISTRY=open-registry.going-link.com
sudo docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} ${DOCKER_REGISTRY}
# 推镜像
sudo docker push open-registry.going-link.com/isrm-public/uuap:v1
# 重启
k rollout restart deploy uuap

FAQs

Package last updated on 28 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc