silver-docker

2.6.1 • Public • Published

Silver Docker [Dev]

logo

Attention, this project currently only support for build and deploying every Frontend Application that using Node 8 (or later) as engine (like VueJS, Nuxt, React and more).

Simplify process to Build & Serve multiple container with single command.

Why

This tool i make to help my team on serving multiple micro-frontend on single Docker. With single configuration and versioning, they can push the project one-by-one to the git and CI/CD will send it to VPS. And then, Silver will be help to create Dockerfile, Docker Image with Version and re-create it with Docker-Compose.

Consideration

This project maybe having a hidden bug that i can't found or solve today. So, thank you to all those who have tried and helped resolve the problem.

Attention

Silver will be not work perfectly, if you doing like this :

  • You change manualy the project inside VPS and commit them to git.
  • Removing the Docker Image that used on silver.yml & docker-compose.
  • Manual Pull-ing or Stash-ing the project inside VPS

This problem cause Silver work with Git Status/Fetch Origin. So, if the project doesn't have a changing Silver will be ignore to Build it into Docker image.

Requirement

  • Node v8.12.0 or later
  • NPM v6.8.0 or later
  • Docker v18.09.2 or later

Usage

  • Use npm install -g silver-docker to install silver on your machine
  • Run silver init to create configuration file
  • Make sure you've already create configuration file like example
  • Run silver build to download source and build latest binary image
  • Run docker-compose up -d or silver compose (this is equal but must simpler)

Commnad silver editor currently is not activated, soon this command will be help you to inspect and run silver build on the fly using https://coder.com binary.

General Flow

flow

Image Building Flow

schema

Author

This project build and maintained by Muhibbudin Suretno

License

This project under MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i silver-docker

Weekly Downloads

4

Version

2.6.1

License

MIT

Unpacked Size

191 kB

Total Files

14

Last publish

Collaborators

  • muhibbudins
  • npm