Git Product home page Git Product logo

docker-utils's Introduction

Docker-utils

Version française

Docker-utils a package of tools for Docker

Docker web site

Installation

Scripts

To use the scripts, you have to add execution right to them :

chmod u+x scripts/*

If you want these scripts always available, you can :

  • create symbolic links in your ~/bin directory
  • or add the scripts directory to the PATH environnement variable

Bash completion

There are bash completion files in etc/bash_completion.d folder.

To enable these completions either :

  • copy or link the completion files in /etc/bash_completion.d directory

  • or source them in your ~/.bashrc file after bash completion features are loaded :

    source <completionFilesDir>/*-completion

Usage

docker-build-image

Script that help user in the build/tag docker image process. It extracts image name/version from special labels in the Dockerfile :

LABEL \
    image_name="myRepo/myUser/myImage" \
    version="1.0"

For more information, use the --help option :

docker-build-image --help

Example

See examples folder, it contains a sample image Dockerfile. You can use it to test this script and its options.

For example, to build the sample image :

docker-build-image examples/docker-build-image

Contributing

  • Fork it !
  • Clone your fork : git clone <url>
  • Create your feature branch : git checkout -b my-new-feature
  • No tabs please !
  • Modify files and add them to the staging area : git add <FILES>
  • Commit your changes : git commit -am 'Add some feature'
  • Push to the branch : git push origin my-new-feature
  • Submit a pull request

License

This script is under the GNU General Public License version 3.

See this file : ./COPYING

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.