Coder Social home page Coder Social logo

container-license's Introduction

实现背景

单位的私有化部署项目在部署完成后,总是因为各种各样的原因出现客户无法回款的问题。因此需要在无侵入的情况下对关键应用进行授权管理。

前提

私有部署项目完全基于docker部署。

实现原理

container-license是一个后台进程,他会代理镜像的CMD命令,并且为容器添加授权检查功能

checker

后台的授权日期检查进程

generate

生成授权文件的进程

不足

建议尽量对自定义镜像进行封装,如果是通用镜像,可以通过替换通用镜像的方式绕过授权检查。

Demo介绍

checker是一个后台进程,他会代理镜像的CMD命令,并且为容器添加授权检查功能 例如Nginx容器,checker进程会代理原Nginx镜像执行 nginx -g daemon off; 启动nginx。在启动之前他会运行授权日期检查逻辑,只有检查通过后才会启动Nginx服务。 另外,授权到期后checker进程会主动退出。

My blog

https://meyasy.com

Build the project

build-on-linux.sh build-on-mac.sh

container-license's People

Contributors

yasyx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.