Coder Social home page Coder Social logo

beeman / dcpm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hweeks/dcpm

0.0 2.0 0.0 1.58 MB

A monorepo for a simple docker-compose sharing protocol

Home Page: https://docs.dcpm.dev/

License: MIT License

JavaScript 8.77% TypeScript 88.76% Shell 0.75% Dockerfile 1.44% HTML 0.28%

dcpm's Introduction

DCPM

What Is This?

This is a tool for sharing configuration and setup for docker-compose. It comes in three pieces:

  1. the backend which hosts our files
  2. the frontend for searching and view packages
  3. the cli because i like cli stuff

What Can It Do?

At a high level it allows for the sharing and consumption of complex docker-compose configs with a nice interview process for setting something up correctly. This is a move away from the current style of sharing which involves copy down a docker compose file from somewhere and trying to follow along in a readme.

For a deeper dive: DCPM Docs Site

To search what's available: DCPM Main Site

CLI Setup: dcpm cli on npm

I Wanna Make Changes

That's cool, and I'm really glad you feel that way. Let's talk about how it works locally and how to build this stuff out.

Tools Needed

  • docker
  • docker-compose
  • yarn

Local Dev Flow

Every package has the same dev script in it, yarn dev. When run in any of our packages (backend, frontend, cli), it will start up nodemon and monitor for changes, which will auto trigger a reload. For the CLI or Frontend to work you should start the back end first.

To start any dev process, simply:

yarn

From the root, and everything else should be good to go!

Example: Editing the Frontend

You would:

  1. cd backend
  2. yarn dev
  3. cd ../frontend
  4. yarn dev

Now you can build out frontend features against your backend.

Deployments (applications)

This is currently to do. I deploy to k8s on digital ocean through a helper repo on my local, but I haven't set it up for CI yet. It's my next to do. We are publishing the docker containers though.

Deployments CLI

you must use the angular commit conventions for semantic release if you want a publish to work :P

When a merge to master happens and all tests/lint passes we autodeploy to npm. Check for release tags in the repo,

CI Checks

The CI will:

  • install all packages
  • check your commit aligns with expectations
  • lint and test them
  • deploy new docker builds for all packages

Please make sure your commit passes :)

dcpm's People

Contributors

beeman avatar dependabot[bot] avatar hammywhammy avatar hweeks avatar renovate-bot avatar semantic-release-bot avatar

Watchers

 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.