Comments (6)
@Jehu Is unison on your host machine outputting an error? Can you tail the docker logs and share what the image is showing?
from docker-unison.
Hi, I have the same issue, my special directory is: /var/www/htdocs
logs
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 8
./run: 3: cd: can't cd to /var/www/htdocs
Jul 30 17:21:33 55cb620b097c syslog-ng[15]: syslog-ng starting up; version='3.5.3'
docker-compose.yml
web:
build: .
ports:
- "80:80"
links:
- mysql
env_file:
- env
volumes_from:
- unison
mysql:
image: mysql:5.6.23
env_file:
- env
unison:
image: leighmcculloch/unison:latest
environment:
- UNISON_WORKING_DIR=/var/www/htdocs
- WORKDIR=/var/www/htdocs
ports:
- "5000:5000"
Someone know how keep sync my Magento folder whit Unison?
thanks in advance,
from docker-unison.
This line surprises me:
./run: 3: cd: can't cd to /var/www/htdocs
That directory should exist because it will be stated as a VOLUME
in the Dockerfile
, but possibly I'm misinterpreting how this works because VOLUME
has been set already when the docker image was built.
from docker-unison.
I don't think setting the WORKDIR
environment variable is necessary or will change anything. The UNISON_WORKING_DIR
is the directory that unison is executed in, and it syncs to that directory. It's possible that because that doesn't change in the dockerfile since it's already built, that the VOLUME
directive isn't creating the directory, and that's the only step that's missing.
from docker-unison.
I'll release a version that makes the directory specifically and I think that's going to resolve this.
from docker-unison.
@Jehu @jujes Turns out the README is misleading and you just need to add an extra argument/config to make it work. I've updated the readme in 286ff02 to clear this up. Can you try that and confirm that it resolves the issue for you?
from docker-unison.
Related Issues (14)
- `/unison` initial state HOT 2
- The image is very big HOT 2
- Bi-directional sync not working? HOT 1
- Use -repeat watch option HOT 1
- Macosx Sierra - unison version 2.48.4 & ocaml 4.0.3 HOT 8
- Fatal error: Lost connection with the server HOT 3
- Doesn't seems to improve speed
- Lost connection to server when syncing certain failes
- is this still alive? HOT 1
- support for unison 2.51.2? HOT 3
- Unclear documentation (Readme) HOT 6
- unison hostname issue HOT 3
- Multiple mounts? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-unison.