Giter VIP home page Giter VIP logo

magic's Introduction

$ magic

What if you could get a python3 shell without having it installed?

$ magic python python3

Or compile your first haskell program without even having haskell!

$ echo 'main = printStrLn "Magic Works."' > hello.hs
$ magic haskell ghc -o hello hello.hs
Linking hello ...
$ ls
hello hello.hs

USAGE

$ magic APP COMMAND

APP is the name of a docker image on Docker Hub. e.g. gcc, composer, drush/drush

COMMAND is a shell command. It will be passed to bash inside the container. (and yes, it only works on containers that have bash on them)

INSTALL

Make sure you have docker installed. That is the only requirement.

magic's People

Contributors

pendashteh avatar

Stargazers

David Meister avatar

Watchers

James Cloos avatar  avatar

magic's Issues

Magic composer fails at creating Drupal projects

Using composer to create a drupal project fails due to lack of gd extension on the provided composer image.

$ magic composer composer create-project drupal-composer/recommended-project

Solution:

# ~/bin/magic-composer
magic composer "apk add --no-cache libpng libpng-dev && docker-php-ext-install gd && apk del libpng-dev && php -m | grep gd && composer ${@}"

and run

$ magic-composer create-project drupal-composer/recommended-project

comparison with nix shell?

looks cool

how does this compare with nix?

e.g. normally i would do:

nix-shell -p python3 --run python3
echo 'main = putStrLn "Magic Works."' > hello.hs
nix-shell -p haskell.compiler.ghc863 --run 'ghc -o hello hello.hs'

and then if i needed to cleanup later i can:

nix-collect-garbage

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.