Dokku Postgres 插件使用教程

Dokku Postgres 插件使用教程

dokku-postgresa postgres plugin for dokku项目地址:https://gitcode.com/gh_mirrors/do/dokku-postgres

目录结构及介绍

Dokku Postgres 插件的目录结构如下:

dokku-postgres/
├── README.md
├── dokku-postgres.plugin.toml
├── functions
│   ├── common
│   ├── install
│   ├── logs
│   ├── ps
│   ├── report
│   ├── restore
│   ├── scheduler-docker-local
│   ├── scheduler-docker-local-storage
│   ├── scheduler-docker-local-volumes
│   ├── start
│   ├── stop
│   ├── tags
│   └── uninstall
├── plugin.toml
└── tests
    ├── common.bats
    ├── export.bats
    ├── import.bats
    ├── link.bats
    ├── logs.bats
    ├── ps.bats
    ├── report.bats
    ├── restore.bats
    ├── scheduler-docker-local.bats
    ├── scheduler-docker-local-storage.bats
    ├── scheduler-docker-local-volumes.bats
    ├── start.bats
    ├── stop.bats
    ├── tags.bats
    └── uninstall.bats

主要文件和目录介绍

  • README.md: 项目说明文档,包含项目的基本信息和使用方法。
  • dokku-postgres.plugin.toml: 插件的配置文件,定义了插件的基本信息和触发器。
  • functions/: 包含插件的各种功能脚本,如安装、启动、停止、日志等。
  • plugin.toml: 插件的主配置文件,定义了插件的名称和版本。
  • tests/: 包含插件的测试脚本,用于验证插件的功能是否正常。

项目的启动文件介绍

Dokku Postgres 插件的启动文件主要位于 functions/ 目录下,其中 start 文件是关键的启动脚本。

启动文件介绍

  • functions/start: 该脚本负责启动 Postgres 服务,包括检查配置、启动容器等操作。

项目的配置文件介绍

Dokku Postgres 插件的配置文件主要包括 dokku-postgres.plugin.tomlplugin.toml

配置文件介绍

  • dokku-postgres.plugin.toml: 该文件定义了插件的详细配置,包括插件的名称、版本、触发器等。
  • plugin.toml: 该文件是插件的主配置文件,定义了插件的基本信息。

通过以上介绍,您可以更好地理解和使用 Dokku Postgres 插件。希望本教程对您有所帮助。

dokku-postgresa postgres plugin for dokku项目地址:https://gitcode.com/gh_mirrors/do/dokku-postgres

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

Dokku 是一个微型的 Heroku,由 Docker 使用不多于 100 行的 Bash 编写。一旦安装完成,你就可以通过 Git 推送兼容 Heroku 的应用到平台上运行。该系统将使用 Heroku buildpacks 构建并在一个独立容器里运行,最终结果就相当于是一个单机版的 Heroku。Dokku 不足 100 行的代码中包括如下几个组件:Docker 是一个 Linux 下的容器运行环境,这是一个高级容器,提供 Heroku Dynos 类似技术,这也是 Dokku 的核心Buildstep 使用 Heroku 的开源工具 buildpacks ,其职责是构建应用所需的基础映像,借助于 Heroku 的 stack 概念Gitreceive 是一个项目,为你提供一个 git 用户并可推送应用到资料库,然后触发脚本来处理该推送动作。还有一些其他的项目用来支持 Dokku 和扩展其功能,每个项目都是独立有用的。发布应用的过程:$ cd node-js-sample $ git remote add progrium git@progriumapp.com:node-js-app $ git push progrium master Counting objects: 296, done. Delta compression using up to 4 threads. Compressing objects: 100% (254/254), done. Writing objects: 100% (296/296), 193.59 KiB, done. Total 296 (delta 25), reused 276 (delta 13) remote: -----> Building node-js-app ... remote:        Node.js app detected remote: -----> Resolving engine versions ... blah blah blah ... remote: -----> Application deployed: remote:        http://node-js-app.progriumapp.com目前提供的插件:Datastores:MariaDB : https://github.com/Kloadut/dokku-md-pluginMongoDB (single container): https://github.com/jeffutter/dokku-mongodb-pluginPostgreSQL : https://github.com/Kloadut/dokku-pg-pluginPostgreSQL (single container): https://github.com/jeffutter/dokku-postgresql-pluginRedis: https://github.com/luxifer/dokku-redis-pluginRiakCS (single container): https://github.com/jeffutter/dokku-riakcs-pluginProcess Managers:Circus: https://github.com/apmorton/dokku-circusShoreman : https://github.com/statianzo/dokku-shoremanSupervisord: https://github.com/statianzo/dokku-supervisordOther:Node: https://github.com/pnegahdar/dokku-nodeuser-env-compile (similar to the heroku labs feature) https://github.com/musicglue/dokku-user-env-compileChef cookbooks: https://github.com/fgrehm/chef-dokku 标签:Dokku
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

韩蔓媛Rhett

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值