Giter Club home page Giter Club logo

stackctl's Introduction

Stackctl

For those of us, who has not yet given up on the simplicity of docker swarm mode, here is a helper script with some quality of life improvements for managing stacks in a cluster.

Born from actual use in production and testing clusters, this simple tool accelerates some of the usual toil work related to using docker swarm mode and stacks in particular.

Docker-compose

Comming from developer using docker-compose for setting things up, this tool mimics the workflows used in docker-compose, supporting up, down, stop and recreate, and adding in the suport for default .env files for configuration.

stack.yml

The tool expects a compose type file named stack.yml to be present in the PWD. This may be accompanied by any support files like .env

Example

$ cd /stacks/my-stack
$ ls -a
stack.yml .env
$ stackctl up

Installation

The main script can be downloaded directly from github and placed in /usr/local/bin/ or however you prefer to install such utilities.

curl -o /tmp/stackctl https://raw.githubusercontent.com/stixes/stackctl/main/stackctl
sudo install /tmp/stackctl /usr/local/bin/

For easier updates, cloning this repository, and creating a symlink would also work.

Remote host and default environment

If exists, stackctl will source configuration from /etc/stackctl and $HOME/.stackctlrc for both universal and per user setup. This allow you to set other environment variables, such as default secrets for use in stack.yml files and DOCKER_HOST and associated variables for accessing a non-local docker swarm.

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.