Giter VIP home page Giter VIP logo

dev's Introduction

dev

A small tool for provisioning development Docker containers.

usage: dev [<flags>] <command> [<flags>] [<args> ...]

a simple tool to make development quicker

Flags:
  --help  Show help.
  --mainfest=".dev.yaml"
          the manifest to create and spawn images from

Commands:
  help [<command>]
    Show help for a command.

  down
    destroys a development container

  establish
    creates the backing image for a manifest with an overlay

  init
    create a new .dev.yaml file

  purge
    deletes an established image

  up
    bring a development container up

A manifest is just a super-simple .yaml file that describes the container to provision.

base:     xena/dev-moonscript     # image to launch Docker with
repopath: github.com/Xe/dev/spike # repo path for mounting $CURDIR
golang:   false                   # Go has a more opinionated package store
ssh:      true                    # pass through ssh keys?
user:     xena                    # user in the docker container
projname: spike                   # project name
workdir:  image                   # use the docker image for workdir (default is code)

An overlay image may also be defined. If you define an overlay image, you do not need to specify the base image. An overlay does not get any extra files other than a Dockerfile. Example:

# Overlay is the dockerfile to overlay into this for `dev establish`
overlay: |
  FROM xena/dev-moonscript

  RUN echo "Hi mom!"

Usage

Usage is simple:

$ dev up
Starting up container for spike
Container spike-dev is running!
To use this container please attach to it with:
    $ docker attach spike-dev
$ docker attach spike-dev
docker:dev:spike ~
-->
$ dev down
Container destroyed
$
$ dev establish
Sending build context to Docker daemon  2.56 kB
Step 0 : FROM xena/dev-moonscript
 ---> 87f5e995d998
Step 1 : RUN echo "Hi mom!"
 ---> Using cache
 ---> a024c7c26b61
Successfully built a024c7c26b61

Installation

$ go get github.com/Xe/dev
$ dev help

This tool Works For Meβ„’ and patches/feature/problem requests are welcome in the issue tracker. Please keep any patches simple.

dev's People

Contributors

dudymas avatar xe avatar

Watchers

 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.