Giter VIP home page Giter VIP logo

cosh's Introduction

cosh

Container shell is meant to act as an aggregator or a manager for containers that were built following the Unix philosophy (i.e. minimalistic and self-contained). It provides the means to dynamically assemble required runtime environment.

Imagine the scenario where certain project would require a number of commands for it to run or build that would not be directly present on the given system. In such case cosh would attempt to acquire corresponding images and execute commands through running the containers as if it would be the usual command execution.

Local experimentation

pip install -r requirements.txt
cosh --help

Examples

cosh git status
cosh java -version
cosh java:8-jdk-latest -version
cosh gcloud config list
# Interactive
cosh sbt

Advanced examples

Use cosh to do a maven build

# Cloning repo
cosh git clone https://github.com/i11/jackson-datatype-datastore
cd jackson-datatype-datastore

# Compiling and running tests. Specific version is required since project depends on java8
cosh mvn:3.5.4-java8-2 clean test

Use cosh for gcloud as docker's credential helper

# Configure docker's gcloud credential helper
cosh gcloud auth configure-docker

# Docker insists on matching executable in the PATH
echo -e '#!/bin/bash -e'"\ncosh docker-credential-gcloud \"\$@\"" > /usr/local/bin/docker-credential-gcloud
chmod +x /usr/local/bin/docker-credential-gcloud

# Get your image
docker pull gcr.io/your-project/your-image-name:tag

See https://store.docker.com/profiles/actions for more available commands.

Limitations

  • The project is at very very very early stage. It is profoundly raw and has a lot of quirks at this point in time.

Contribution

Please let me know what do you think and how it could becime more helpful for you. Thanks!

cosh's People

Contributors

i11 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cosh's Issues

Resurrecting the project

Is fun as I found the project because I wanted to write a tool that does exactly that and I needed a meaningful and short name. For years I used a bunch of shell scripts for the same purpose, but that in python it could easily be made much better.

I guess you don't have time for it but how about letting others continue it?

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.