Giter Site home page Giter Site logo

rubeneschauzier / lerna-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rubensworks/lerna-docker

0.0 0.0 0.0 14 KB

๐Ÿ› ๏ธ A simple tool for easily building and publishing Docker images inside Lerna monorepos

License: Other

Shell 100.00%

lerna-docker's Introduction

Lerna Docker

A simple tool for easily building and publishing Docker images inside Lerna monorepos.

Features:

  • Building Docker images for all packages that have a Dockerfile.
  • Pushing Docker images to Docker hub based.
  • Automatic Docker hub authentication for running in CI environments.

Requirements

Install

Automatically

This will automatically clone this repo into $HOME/.lerna-docker (requires git), and adds this tool to your $PATH.

$ sh -c "`curl -fsSl https://raw.githubusercontent.com/rubensworks/lerna-docker/master/install.sh`"

If you want to uninstall later, just remove $HOME/.lerna-docker and the $PATH modification in ~/.bash_profile.

Manually

First, clone this repo somewhere:

$ git clone [email protected]:rubensworks/lerna-docker.git

Then, add the /bin folder to your $PATH. For example, by adding the following to your ~/.bash_profile

export PATH="/path/to/lerna-docker/bin:$PATH"

Usage

All actions allow a custom version tag to be passed. If no version is given, then either a version based on $TRAVIS_TAG or "DEV" will be assigned.

Building

Build all Dockerfiles that can be found in packages/*:

$ lerna-docker my-docker-organization build [version-tag]

Pushing

Pushing all images to Docker hub based on the Dockerfiles that can be found in packages/*:

$ lerna-docker my-docker-organization push [version-tag]

If you want to push in a CI environment, you will have to log in to a Docker Hub account, which can be done by setting the (secret) environment variables DOCKER_USERNAME and DOCKER_PASSWORD.

License

This code is copyrighted by Ghent University โ€“ imec and released under the MIT license.

lerna-docker's People

Contributors

rubensworks 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.