Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Initial findings in porting to Cygwin on Windows #158

@alankent

Description

@alankent

I don't have time to complete this properly, but recording some notes here in case someone else finds useful as a starting point for porting this project to Windows with Cygwin.

  • check_prerequisites is hard coded to make sure OS X (Darwin) – I commented out the call to the function so Cygwin worked.
  • I had to compile up https://github.com/emcrisostomo/fswatch - which for me involved installing more Cygwin libraries and the C++ compiler. I could not find fswatch in the default cygwin downloads.
  • I replaced “greadlink” with “readlink” (greadlink was a separate command added on OS X because the built in readlink was not powerful enough on OS X).
  • I commented out the “install_dependencies” call (I could have turned on ‘skip dependencies’ flag it looks like) – this invokes ‘homebrew’ to install stuff on OS X. I had already done these steps by hand on Windows (that is, install boot2docker etc).
  • The ‘install’ command failed to add a hostname to /etc/hosts for two reasons: It used 'sudo' which failed under cygwin, and it messed up the CRLF line ending for Windows. That needs to be more robust.

After that the 'install' command seemed to work and set everything up surprisingly well, and I could use the script to start boot2docker, sync to docker host, etc. Nice work!!!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions