moby / moby/vpnkit

Trouble building the dockerfile

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
1.2k
Forks
214
PR merge metrics
No merged PRs in 30d

Description

I'm on Windows 7 with docker 1.11

I've been trying to build with
docker build -t vpnkit .

I got this error:
2016-07-05 09_02_08-mingw64__c_users_tony perkins_vpnkit admin

I suspected that the path to the packages might be incorrect in the Dockerfile. So I changed this
RUN opam repo add dev /home/opam/src
to
RUN opam repo add dev /home/opam/src/opam/darwin

and it started complaining about . being an invalid token in the local directories. Based on the commit 54e7b199e02f7219204171a5cd0fa9334e45edc8, it seems like packages/local might only be needed for OSX.

So I removed them before adding the repo:
RUN sudo rm -rf /home/opam/src/opam/darwin/packages/local
RUN opam repo add dev /home/opam/src/opam/darwin

Everything seems to be building find, but I'm getting an error about topkg:
2016-07-05 14_09_59-mingw64__c_work_vpnkit admin

I tried a few things like adding a findlib to topkg in upstream but that didn't seem to work.

Do you have any ideas?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Dockerfile and reproduce docker build -t vpnkit . using the reported Windows 7 and Docker 1.11 environment. Inspect the opam repo add dev paths, the packages/local directory, and the reported topkg failure; the issue is done when the image builds without those errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ocaml
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.