GithubHelp home page GithubHelp logo

xavierpriour / up2d8 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 14 KB

Keep CLI tools up-to-date (docker-compose, docker-machine, helm,...)

License: MIT License

Shell 100.00%
docker-compose docker-machine helm

up2d8's Introduction

up2d8

Keep docker-compose, docker-machine, and other commands up-to-date.

tldr;

Just run up2d8, and all supported commands will be updated to their latest published version. Do it regularly, and enjoy effortless evergreen tools!

Pre-requisites:

  • bash
  • git
  • curl
  • if some commands aer already installed (ex: docker-compose or docker-machine), they must be in the path
  • only tested on Linux, so probably not working out of the box on Windows or Mac. PRs most welcome!

Install

  • git clone https://github.com/xavierpriour/up2d8.git
  • chmod +x ./up2d8/up2d8
  • add to path

why?

Single-file executables are the new rage for modern dev(ops) tools. Everywhere I go, websites ask you to download a single bash or go executable, drop it in your path, and happily type away. docker-compose, helm, ctop, the list goes on.

This is all fine and dandy at the beginning, but how do you keep up with updates? Their authors don't want to go through the trouble of building packages for the dozens of existing package managers (and who can blame them?). Yet as a user, I'm tired of wading through git repos just to see if a new version is available, download a tarball, extract, hunt for the previous one, and replace it.

So I built up2d8, to do it all for me.

usage

Update

  • Update all currently installed commands: up2d8
  • Only one command: up2d8 docker-compose
  • Downgrade a command: up2d8 kompose=1.10.0
  • Combine: up2d8 kompose=1.10.0 docker-compose
  • works on already installed commands. If a supported command is in the path, up2d8 will find it and replace with latest version.

Install

  • Use it to install a command: up2d8 kompose --dir=my/install/directory
  • Install and link to your bin directory (in $PATH): up2d8 kompose --dir=my/install/directory --bin=/usr/bin

Other options

  • up2d8 --help lists all options
  • up2d8 --version

Supported commands

roadmap

No promise or dates, but here's what I have in mind for the future, in no particular order

  • up2d8 -la to list commands we can manage
  • gracefully crash if required version does not exist
  • add tests
  • put apps definitions in a separate data file (json maybe) rather than in the middle of the bash code
  • dogfood: up2d8 should keep itself up-to-date
  • more commands: suggestions most welcome!
  • rewrite it in go (because bash, well...)

Help needed

  • test and make it work on other systems than Linux

thanks

We use Argbash to parse arguments, and if you write bash code, you should too, it is awesome :)

up2d8's People

Contributors

xavierpriour avatar

Stargazers

 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.