Giter Site home page Giter Site logo

Comments (6)

leighmcculloch avatar leighmcculloch commented on August 17, 2024

@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.

jujes avatar jujes commented on August 17, 2024

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.

leighmcculloch avatar leighmcculloch commented on August 17, 2024

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.

leighmcculloch avatar leighmcculloch commented on August 17, 2024

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.

leighmcculloch avatar leighmcculloch commented on August 17, 2024

I'll release a version that makes the directory specifically and I think that's going to resolve this.

from docker-unison.

leighmcculloch avatar leighmcculloch commented on August 17, 2024

@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)

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.