traefik / structor

[Messor Structor 🐜] Manage multiple versions of a Mkdocs documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mounting problem when I run structor locally

adibrastegarnia opened this issue · comments

I am getting the following error when I run structor locally: any ideas:

structor -o containous -r traefik --dockerfile-url="https://raw.githubusercontent.com/containous/traefik/v1.7/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/containous/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/containous/structor/master/requirements-override.txt" --force-edit-url --exp-branch=master --debug;
2019/10/14 11:12:05 Run Structor command with config : &{Owner:containous RepositoryName:traefik Debug:true DockerfileURL:https://raw.githubusercontent.com/containous/traefik/v1.7/docs.Dockerfile DockerfileName:docs.Dockerfile ExperimentalBranchName:master DockerImageName:doc-site Menu:0xc0000bc880 RequirementsURL:https://raw.githubusercontent.com/containous/structor/master/requirements-override.txt NoCache:false ForceEditionURI:true}
2019/10/14 11:12:05 Temp directory: /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416
2019/10/14 11:12:05 Latest tag: v2.0.2
2019/10/14 11:12:05 git branch --remotes --list origin\/v*
2019/10/14 11:12:05 Generating doc for version master
2019/10/14 11:12:05 git worktree add /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master origin/master
2019/10/14 11:12:05 Found mkdocs.yml for building documentation in /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master.
2019/10/14 11:12:05 Using docs_dir from manifest: /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master/docs
2019/10/14 11:12:05 Found Dockerfile for building documentation in /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master/docs.Dockerfile.
2019/10/14 11:12:05 docker build --no-cache=false -t doc-site:master -f /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master/docs.Dockerfile /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master/
2019/10/14 11:12:06 docker run --rm -v /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master:/mkdocs doc-site:master mkdocs build
2019/10/14 11:12:06 docker: Error response from daemon: Mounts denied:
The path /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
time="2019-10-14T11:12:06-04:00" level=error msg="error waiting for container: context canceled"

I have no MacOS skills.

I will update you accordingly. I am not sure if it is mac related problem.

I think it's related to Docker on MacOS

2019/10/14 11:12:06 docker: Error response from daemon: Mounts denied:
The path /var/folders/n9/m2kltyw12fs8xj927kpr1h540000gp/T/structor305013416/master
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.

I think to make structor work for different operating systmes, you should provide an option that we can mount a specific path when we run it. It looks strcutor uses /var/folder which does not work on MacOS by default.

resolved