Giter Site home page Giter Site logo

indie's Introduction

Indie - Docker command execution

Indie is a small binary which allows you to execute a command inside a container. Its main usage is to implement the pattern of build container for your project without having to create a Makefile or something else.

Installation

Simply download the binary from GitHub and add it to your /usr/local/bin directory.

$ curl -L "https://github.com/jlrigau/indie/releases/download/v0.3.0/indie-$(uname -s)-$(uname -m)" -o /usr/local/bin/indie && \
  chmod +x /usr/local/bin/indie

Usage

Add a YAML file named indie.yml in your repository in which you have to indicate the image to use for building your application.

For example, if you want to build a Go application using the official Go image, you have to add this line in the configuration file.

image: golang:latest

For building a Go application it is important to well manage your GOPATH and you can do that by using a specific workspace by adding a new property in your configuration file.

workspace: /go/src/github.com/jlrigau/indie

If you need to add specific environment variable to your build container you have also the ability to add them to the configuration file using an environment bloc.

environment:
  - "GOOS=linux"
  - "GOARCH=amd64"

Build

You can build Indie by using Indie of course!

Firstly you have to install dependencies with Glide.

$ indie glide install

And then build the application.

$ indie go build

License

This work is published under the MIT license.

Please see the LICENSE file for details.

indie's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jawher

indie's Issues

Add volume management to Indie

In order to be able to manage data access between the project you want to build and the build container we should add a way to share volumes with Indie.

A volume can be used for managing cache data. For example, if you want to build a Maven project it is more convenient to have a way to share the Maven repository for avoiding to download all the project dependencies at each build.

indie container is not automatically removed

It seems that the AutoRemove: true option is not taken into account by the program.

A work around consists to remove manually the indie container by using docker rm -fv indie command.

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.