Skip to content

A tool to sync files to docker containers as the files are changed

License

Notifications You must be signed in to change notification settings

hgajjar/dockrsync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Dockrsync

Dockrsync is a tool that will rsync changes to files from your project directory to a docker container.

This allows you to do local development on MacOS without the read performance issues of shared filesystems (such as vboxsf, osxfs, and NFS) that slow down interpretation and compilation.

Additionally it will allow local development against a remote docker engine from MacOS and Linux, as long as your docker client is configured to connect to the remote docker-engine.

Prerequisites

  • Docker - (Docker for Mac, docker-machine or docker in Linux)
  • docker-compose - Comes with most Docker installations
  • rsync - v2.6 is available on MacOS, though v3.1+ is recommended, brew install rsync
  • fswatch - brew install fswatch

The Docker containers will need to have rsync installed within them.

Download

curl -o /usr/local/bin/dockrsync https://raw.githubusercontent.com/webtatic/dockrsync/master/dockrsync
chmod +x /usr/local/bin/dockrsync

Usage

Set up the default configuration for a project:

dockrsync setup

Push changes up to the docker container:

dockrsync push

Watch for changes in files and sync those that change:

dockrsync watch

License

MIT

Copyright

Copyright (c) 2017 Andy Thompson

Based on a Bash tool called cp-remote Copyright (c) 2016 Inviqa UK Limited

About

A tool to sync files to docker containers as the files are changed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%