Giter Club home page Giter Club logo

kkitdeploy_server's Introduction

项目简介

项目主要使用docker的方式一键部署各类应用及工具。目前已经有7个大类,几十种工具实现一键部署。并且根据个人实际情况进行自定义部署。

kkitDeploy是波哥抽离了kkit3.0的一个功能模块开源给大家。

kkitDeploy2.0 (paas版)隆重推出访问地址:http://deploy.itboge.com/

kkitDeploy部署地址: https://github.com/luckman666/kkitdeploy_install

vue前端项目地址: https://github.com/luckman666/kkitdeploy_dashboard

python项目地址: https://github.com/luckman666/kkitdeploy_server

该项目没借助传统的ansible、Saltstack或者clustershell来二次开发。ansible是kkit3.0和远程动作核心驱动,Saltstack在kkit1.0的核心驱动(kkit1.0已经被我开源至github).

通过集成了上述两个工具后发现了不少缺点,所以在设计kkitDeploy的时候就自己写了个驱动来完成所有的动作。

项目架构及开发语言(以后补图):

项目采用前后端分离设计,主要由VUE前端+django后台+shell脚本驱动三大块组成: 由于项目的特殊行,采用了redis作为该项目的核心存储。其中websocket为项目的核心数据传递方式。整体页面简洁,操作简单。

项目使用手册:

项目整体布局分两大块:

image

左边为菜单栏,右边为信息栏。

image

菜单栏供我们选择要部署的类别,工具,及工具的版本和集群方式(以k8s为例)

image

当我们选择完毕想要部署的项目后右侧信息栏会自动出现相应的配置参数。根据实际情况按照我所列举的格式进行配置后点击提交后台开始自动部署。并且将实时反馈后台执行日志(如下图)

image

部署进行时不可以刷新页面或者关闭页面。后台部署完毕会在右侧信息栏底部有相应的提示。

对于yml描述性文件部署的方式是另一种模式,例如我们部署nginx

image

这一步修改的信息是我们要部署到哪里去。修改完信息后点击提交。

image

这一步是要我们修改yml文件,你要部署一个什么样的nginx。这个文件就是yml文件

而针对nginx的特殊性我们要配置各种后端的重定向业务,所以我们这里在部署nginx之前勾选配置再选择提交按钮:

image

image

可以上传不同的base.conf,而我们注意到上面nginx的yml配置参数里面的这一项

image

你所上传的所有配置文件都会上传至conf目录,所以在映射关系上必须要这么写,否则找不到。

也许有朋友觉得波哥预制的脚本不够丰富或者写的不够好,波哥也预留了自定义脚本的接口。之前的博文也交了大家如何利用波哥给大家的模板自定义功能插件了。自定义模板地址:

https://github.com/luckman666/deployYmlDemo.git

相关教程阅读该项目的README.md

让我们自定义完自己的插件过后点击上传

image

image

将插件脚本文件夹rar压缩后,上传rar包。

image

image

点击确定后就可以在自定义选项卡中找到您上传的插件

image

相关配置参数也自动上传到服务器

image

然后的部署流程就和之前一样了。

PS:请自定义的插件名称不要使用原名称,例如nginx,redis。这样会覆盖我的原有脚本,而为了防止脚本出错更改不及时,波哥设计了每周都会同步云端的脚本script脚本,所以每次更新完毕之后都会覆盖回来。

请自定义脚本的同学加上个性化设计例如:myNginx等等。

那么如何部署我们的kkitdeploy呢?

git clone https://github.com/luckman666/kkitdeploy_install.git
cd kkitdeploy_install && chmod 755 -R .
# 修改base.config里面的参数如果是公网访问,需要masterip="192.168.1.118"需要填写公网地址
./kkitdeploy.sh

部署完毕访问服务器IP即可,默认是80端口,登录认证设计的是假认证,直接点击登录即可。

重启项目:


# 关闭
docker-compose -f *.yml down -v 
# 启动
docker-compose -f *.yml up -d

相关详细介绍和使用教程我会在后面陆续更新。该项目波哥长期维护。如果项目有问题,请在公众号留言。

项目的更新及任何问题都会在公众号统一发布及回复,公众号也会给该项目设计专题栏目。以后将很少发布独立脚本,各类实用工具及脚本会统一由kkitDeploy版本迭代后更新。

你们的支持就是波哥的动力,请帮忙转发和start哦!


扫码关注,回复“全栈资料”会有

意想不到的收获哦

image

长按识别二维码关注我们

kkitdeploy_server's People

Contributors

dependabot[bot] avatar luckman666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kkitdeploy_server's Issues

安装出错

Loaded plugins: fastestmirror, langpacks, update-motd
Loading mirror speeds from cached hostfile

One of the configured repositories failed (CentOS-2.1903 - Base - mirrors.aliyun.com),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=base ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable base
    or
        subscription-manager repos --disable=base

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=base.skip_if_unavailable=true

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://mirrors.cloud.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
http://mirrors.aliyun.com/centos/2.1903/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')
http://mirrors.aliyuncs.com/centos/2.1903/os/x86_64/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted"
FK!~没成功?哥再来一次!!

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.