Giter VIP home page Giter VIP logo

caddyplug's Introduction

caddyplug

caddyplug is an experimental Caddy plugin manager using Go plugins.

Demonstration Video

Requirements

  • Go 1.8
  • Linux
  • Caddy with hook.pluginloader plugin. Installable with caddyplug install-caddy.

Install

go get github.com/abiosoft/caddyplug/caddyplug

Usage

  Usage:
    caddyplug <command> [plugins...]

  Commands:
    install       install plugins
    uninstall     uninstall plugins
    list          list plugins
    install-caddy install caddy
    package       get plugin package

Example

$ caddyplug install git linode
 ✓ git
 ✓ linode

Goal

Building

Current:

  • Edit source and add import line for plugin
  • Rebuild Caddy
  • Or select plugins and download on caddyserver.com/download
  • Repeat

Desired:

  • Install plugins

Docker

Current:

  • Search for Docker image with desired plugins
  • Give up and clone abiosoft/caddy (or similar) image
  • Modify plugins arg in Dockerfile
  • Worry about keeping track of upgrades to parent git/docker repo.

Desired:

Add plugins as required

FROM abiosoft/caddy:plugin # Hopefully this changes to 'FROM caddy'
RUN caddyplug install git hugo digitalocean

Caveats

  • Only works on Linux.
  • Due to limitations of Go plugins, Caddy and plugins must be built with same Go version. Installing Caddy with caddyplug is recommended to ensure this.
  • Not compatible with caddyserver.com/download yet. Requires CGO_ENABLED=1.
  • Large Docker images. Multi-stage builds may help.
  • Fetches master of plugin repositories.
  • go build --buildmode=plugin is slow. Stop building on-demand, maybe.
  • This is experimental and reliant on the stability of Go plugins.

Note

  • This is not an official Caddy product.

caddyplug's People

Contributors

abiosoft avatar

Watchers

 avatar  avatar  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.