kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
Change documentation for Mapbox Studio in docker container
rodzic
4930e59879
commit
eaecdb95a4
|
@ -31,26 +31,24 @@ the appropriate port in Kitematic on OSX).
|
|||
|
||||
### Choose Project
|
||||
|
||||
The `open-streets.tm2source` project is mounted to `/tm2source`.
|
||||
To start editing open the source project from this path.
|
||||
The `open-streets.tm2source` project is mounted to the `/projects` folder.
|
||||
Choose existing project and open open the source project from this path.
|
||||
|
||||
### Authorize Mapbox Studio on OSX
|
||||
|
||||
Mapbox Studio redirects the OAuth requests to localhost. Because Docker
|
||||
is not native on OSX this is a bit problematic.
|
||||
is running on a virtual machine on OSX on a different IP this does not work.
|
||||
|
||||
On the first start for the authorizing you need to forward localhost traffic
|
||||
on port `3000` to the remote docker host.
|
||||
|
||||
Install netcat.
|
||||
You will receive the following OAuth callback in the browser which results in a `ERR_CONNECTION_REFUSED` error on OSX.
|
||||
|
||||
```
|
||||
brew install netcat
|
||||
http://localhost:3000/oauth/mapbox?code=XQBLTQ2...
|
||||
```
|
||||
|
||||
Pipe incoming traffic to docker container and pipe outcoming traffic from container back. Look for your local Docker IP in the Kitematic interface.
|
||||
Change the hostname of the URL to your Docker IP address and make the OAuth callback yourself.
|
||||
|
||||
```
|
||||
mkfifo backpipe
|
||||
nc -l 3000 | nc 192.168.99.100 3000 1> backpipe
|
||||
http://192.168.99.100/oauth/mapbox?code=XQBLTQ2...
|
||||
```
|
||||
|
||||
This only needs to be done the first time your start up Mapbox Studio in a Docker container.
|
||||
|
|
Ładowanie…
Reference in New Issue