akshaykarle / terraform-provider-mongodbatlas

Terraform provider for MongoDB Atlas
Mozilla Public License 2.0
122 stars 54 forks source link

Struggling to build website #71

Closed ServerNinja closed 5 years ago

ServerNinja commented 5 years ago

I'm trying to run make website in order to view the documentation and am getting errors:

$ make website
# For testing until an official provider
if [ ! -h /src/github.com/hashicorp/terraform-website/content/source/docs/providers/mongodbatlas ]; then \
        ln -s ../../../../ext/providers/mongodbatlas/website/docs/ /src/github.com/hashicorp/terraform-website/content/source/docs/providers/mongodbatlas; \
    fi
if [ ! -h /src/github.com/hashicorp/terraform-website/content/source/layouts/mongodbatlas.erb ]; then \
        ln -s ../../../../ext/providers/mongodbatlas/website/mongodbatlas.erb /src/github.com/hashicorp/terraform-website/content/source/layouts/mongodbatlas.erb; \
    fi
==> Starting mongodbatlas provider website in Docker...
docker: Error response from daemon: Mounts denied:
The paths /src/github.com/hashicorp/terraform-website/content/source/layouts and /src/github.com/hashicorp/terraform-website/content/source/assets and /src/github.com/hashicorp/terraform-website/content
are not shared from OS X and are 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.
.
ERRO[0000] error waiting for container: context canceled
make[1]: *** [website-provider] Error 125
make: *** [website] Error 2

Any ideas on what might be causing this? I do have Docker installed and use it quite regularly. I am not very familiar with "go" or how the website is supposed to be built. I mainly looked at the GNUmakefile and saw a "website" target so I figured that was how to build that documentation. Any help on this would be appreciated.

akshaykarle commented 5 years ago

Hey @ServerNinja this seems like a docker mount error as it says in your output: docker: Error response from daemon: Mounts denied: You need to allow docker to be able to read /src/github.com/hashicorp/terraform-website/ and try again.