Code Monkey home page Code Monkey logo

devbox-plugins's Introduction

Devbox Plugins

This repository includes plugins for configuring packages using Devbox.

Available Plugins

  • Go Monorepo (experimental)
  • MongoDB
  • RabbitMQ
  • NATS Server

How to Use

Each subfolder contains a plugin for a specific package. To use a plugin, add the following reference to the include section of your devbox.json file.

"include": [
    "github:jetpack-io/devbox-plugins?dir=<plugin-name>"
],

devbox-plugins's People

Contributors

lagoja avatar mikeland73 avatar elliotthilaire-ca avatar

Stargazers

Nathan Lloyd Ward avatar Peter Kordel avatar

Watchers

 avatar  avatar  avatar Rodrigo Ipince avatar Lucille Hua avatar  avatar

devbox-plugins's Issues

Is it "include" or "includes"?

The README instructions say "the include section" and then show a JSON sample that uses the key includes.

To use a plugin, add the following reference to the include section of your devbox.json file.

"includes": [
    "github:jetpack-io/devbox-plugins?dir=<plugin-name>"
],

Plugins are adding files to .devbox/virtenv/jetpack-io-devbox-plugins/ instead of /.devbox/virtenv/<plugin-name>/

My devbox version is 0.9.1

According to the README.md documents in each plugin the plugins should be writing to:

  • devbox.d/<plugin-name>/conf.d/
  • .devbox/virtenv/<plugin-name>/process-compose.yaml

Instead the plugins are writing files to:

  • devbox.d/jetpack-io-devbox-plugins/conf.d/
  • .devbox/virtenv/jetpack-io-devbox-plugins/process-compose.yaml

This has the side effect that if multiple plugins are being used then files with the same name, like process-compose.yaml,
are being overwritten by what ever is defined last.

For example:

  "include": [
    "github:jetpack-io/devbox-plugins?dir=rabbitmq",
    "github:jetpack-io/devbox-plugins?dir=mongodb",
  ],

Results in .devbox/virtenv/jetpack-io-devbox-plugins/process-compose.yaml containing

version: "0.5"

processes:
  mongodb:
    command: "mongod --config=$MONGODB_CONFIG --dbpath=$MONGODB_DATA --bind_ip_all"
    availability:
      restart: on_failure
      max_restarts: 5

And if I swap the order of the plugins:

  "include": [
    "github:jetpack-io/devbox-plugins?dir=mongodb",
    "github:jetpack-io/devbox-plugins?dir=rabbitmq",
  ],

Results in .devbox/virtenv/jetpack-io-devbox-plugins/process-compose.yaml containing:

version: "0.5"

processes:
  rabbitmq:
    command: "rabbitmq-server"
    availability:
      restart: on_failure
      max_restarts: 5
    daemon: true
    shutdown:
      command: "rabbitmqctl shutdown"
  rabbitmq-logs:
    command: "tail -f $RABBITMQ_LOG_BASE/$RABBITMQ_NODENAME@$(hostname -s).log"
    availability:
      restart: "always"

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.