Coder Social home page Coder Social logo

dokku-registry's Introduction

dokku-registry Build Status

The Docker registry plugin for Dokku adds support for managing application releases as part of a continuous delivery workflow.

On Heroku similar functionality is offered by the heroku-labs pipeline feature, which allows you to promote builds across multiple environments (staging -> production)

requirements

  • dokku 0.4.0+
  • docker 1.8.x

installation

# on 0.3.x
cd /var/lib/dokku/plugins
git clone https://github.com/agco/dokku-registry.git registry
dokku plugins-install

# on 0.4.x
dokku plugin:install https://github.com/agco/dokku-registry.git registry

Commands

$ dokku help
    registry:login <docker login args>              Login to a docker registry
    registry:push <git_url> <docker_registry_image> Clone a git url, exec buildstep and push the resulting Docker image to the logged on registry
    registry:pull <app> <docker_registry_image>     Pull a Docker image (produced with buildstep) from the logged on registry and deploy

Workflow

Build machine

dokku registry:login —username=<username> —password=<password> —email=<email> <server>

This logs you in to the dockerhub registry Other registries can be specified as well with using the optional server arg Check the docker login docs for more details

dokku registry:push <git_url> <image_tag>

This clones the code from a given git_url and builds it with buildstep The resulting Docker is tagged as specified by the image_tag arg and pushed to the current logged-on Docker registry

Deploy target(s)

dokku registry:login —username=<username> —password=<password> —email=<email> <server>
dokku registry:pull <appname> <image_tag>

This pulls the image tag from the current logged-on registry and deploys it to Dokku. The application will be auto-created in case it doesn't exist yet.

Quick example

Note : This is just to demonstrate syntax, replace credentials and registry image tag with your own values

dokku registry:login --username=myusername [email protected] --password=mypwd
dokku registry:push https://github.com/heroku/node-js-getting-started.git myusername/myapp:1.2.3
dokku registry:pull myapp myusername/myapp:1.2.3

Set config variables prior to application start

The workflow then looks something like the following

dokku registry:login --username=myusername [email protected] --password=mypwd
dokku create myapp
dokku config:set myapp FOO=BAR
dokku registry:pull myapp myusername/myapp:1.2.3

An example on how to bootstrap this can be found here : https://github.com/agco-adm/dokku-provision-ALM-support

dokku-registry's People

Contributors

kristofsajdak avatar josegonzalez avatar

Watchers

James Cloos 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.