A fork of eugenmayer/unison tagged with corresponding docker-sync versions.
1.9K
The essential tool docker-sync has been making rapid fixes and improvements. Unfortunately, this rapid cycle has become a pain point for our dev team with developer's environments frequently breaking depending upon the time of day their version of docker-sync or unison image image were last updated.
I've spun up this copy of eugenmayer/unison to tag images corresponding to docker-sync releases.
When bringing our local environment up, we run a bash script that executes the following:
# When updating this version, ensure a matching version of the unison image is
# defined in docker-sync.yml
DOCKER_SYNC_VERSION="0.4.6"
# Ensure expected version of docker-sync
if $(gem list | grep -q ^docker-sync); then
if [[ ! "$(gem list | grep ^docker-sync)" =~ \($DOCKER_SYNC_VERSION\) ]]; then
echo "Found docker-sync version(s) other than $DOCKER_SYNC_VERSION, re-installing."
sudo gem uninstall docker-sync -xa
sudo gem install docker-sync -v $DOCKER_SYNC_VERSION
fi
else
echo "Installing docker-sync version $DOCKER_SYNC_VERSION."
sudo gem install docker-sync -v $DOCKER_SYNC_VERSION
fi
# Ensure matching version of unison image
docker pull "codycraven/unison:hostsync-$DOCKER_SYNC_VERSION"
Then in our docker-sync.yml we set the image option like so:
syncs:
your-sync-name:
src: './your-path'
image: 'codycraven/unison:hostsync-0.4.6'
Content type
Image
Digest
Size
26.1 MB
Last updated
over 9 years ago
docker pull codycraven/unison:hostsync-0.4.6