Git Product home page Git Product logo

dmove's Introduction

dmove - Docker move utilities set

Set of utilities for fast trasfer dockerized apps to new VDS

Including:

dmove - full auto transfer (image, its volumes, network settings)

move-container - transfering container as image to new host

move-volumes - move all docker volumes of selected containers (transfer data gzipped).

move-db - move sql-like database

move-db and move-volume by default doesn't make deployment, they just trasfer appropriate files to $REMOTE_FOLDER

To deploy you need to specify image name on target host in addition to container name

<move-volumes|move-db> $CONTAINER_NAME <author/image_tag> <network_to_connect>

move-db has two additional arguments:

hostname

do_pwd_sql_volume (works for /var/lib/mysql)

<move-db $CONTAINER_NAME <author/image_tag> <network_to_connect> <hostname_to_apply> <do_pwd_sql_volume>

Related utils:

dmove-copy-id - wrapper under ssh-copy-id, reads hostname from config file

dmove-config - generate new config file (conenient if you need to have separate REMOTE_HOST perl user)

dmove-nginx-proxy - quick deployment of nginx-proxy container

Config file: ~/.dmove

Requirements

jq

REMOTE_HOST (remote) user must have privileges to run docker

Docker must be installed on both machines

Installation

curl -sSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/pavelsr/dmove/master/install-dmove | sudo bash

Just dmove-nginx-proxy:

sudo wget https://raw.githubusercontent.com/pavelsr/dmove/master/dmove-nginx-proxy -O /usr/local/bin/dmove-nginx-proxy && sudo chmod +x /usr/local/bin/dmove-nginx-proxy

Used naming conventions

On new host container will be started with same name as at old

Recommended docker objects naming conventions to use dmove without problems

_db : container name for app <example> must be <example_db>

See more

Similar project: https://github.com/tubesandlube/blimp

dmove's People

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.