Skip to content
Lars Kanis edited this page Jan 13, 2017 · 12 revisions

This is a list of questions and answers to rake-compiler-dock. You're welcome to add your own questions, when you've found suitable answers.

rake-compiler-dock related

Q: Why on hell should I use a Virtual Machine running Linux to build Windows gems?

A: For gem authors primary working on OS-X or Linux, this allows to build ready-to-run binary gems for Windows in a reproducible way, without digging too much into development on Windows. It is also often less fragile to deliver binary gems, because the Windows build environment is not as much standardized as on Linux.

Q: How can I build signed gems?

A: Copy certificate and key into the container through the current working directory. Here is an example: https://github.com/ged/ruby-pg/blob/master/Rakefile.cross#L287

Q: How can I use rake-compiler-dock behind a corporate firewall?

A: rake-compiler-dock respects ftp_proxy, http_proxy and https_proxy variables, so that downloads in build scripts usually work. But make sure you're using IP addresses instead of host names, unless the proxy is publicly available to the internet. Use Google search in regards to the proxy configuration of docker or boot2docker (to download the image).

docker-machine related

boot2docker related

Q: docker version complains about "certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.59.107"

A: This is probably due to a bug in boot2docker-1.7.0 . Use one of the fixes in #issue-824 .

Q: rake-compiler-dock fails on boot2docker start and boot2docker delete doesn't help.

A: There should be a new VM in Virtualbox called "boot2docker-vm". Try to start the VM within the VirtualBox GUI. This can give an indication, why the VM can not be started. Alternatively you can try to start the VM on the command prompt, and see what happened, like so: "c:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" -s boot2docker-vm

Q: The boot2docker VM is started within the VirtualBox GUI, but boot2docker start still fails.

A: It could disturb boot2docker, if there are some ancient versions of MSYS tools are in the search path. Try boot2docker start -v to get some debug information what fails.

Q: rake-compiler-dock ls -l shows an empty directory, but it isn't on the host

A: rake-compiler-dock can only mount local drives - network drives can not be used as working directory.

Docker related

Q: I get the error Could not locate Gemfile or .bundle/ directory rake aborted!

A: The project directory couldn't be mounted into the docker container or it is not accessible. This can be due to SELinux permission restrictions. See http://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker