Updated AWS Lambda (markdown)

Dane Springmeyer 2018-06-14 16:02:12 -07:00
parent d751e137b0
commit b0215119ff

@ -20,59 +20,7 @@ On `Ubuntu` follow instructions on https://docs.docker.com/engine/installation/l
#### Install node-mapnik #### Install node-mapnik
If you just need node-mapnik, see See https://github.com/mapnik/node-mapnik/issues/863 See https://github.com/mapnik/node-mapnik/issues/863
If you want to source compile mapnik core, read on...
`git clone https://github.com/mapbox/mason.git`
`cd mason`
`export CXX=/usr/bin/c++`
`export CC=/usr/bin/cc`
(^ FIXME: those shouldn't be necessary)
`./mason build mapnik 3.0.17`
#### Install `node-mapnik`
`git clone https://github.com/mapnik/node-mapnik.git`
`cd node-mapnik`
`git checkout clang-5`
~~`git submodule update`~~ (!)
`make`
^ command above will fail after a while with errors in wagyu. This is expected, follow next steps to remedy
##### Checkout g++-4.8 branch of wagyu
`cd deps/wagyu`
`git checkout g++-4.8`
`cd ../../`
##### Replace mapnik mason package with symlink to previosly locally built mapnik (via mason)
`rm -rf ./mason_packages/linux-x86_64/mapnik`
`ln -s /var/task/mason/mason_packages/linux-x86_64/mapnik ./mason_packages/linux-x86_64/mapnik`
##### Run make again
`make`
##### Complete installation by running tests
`make test`
Congrats! you have a working copy of node-mapnik/mapnik suitable for deploying on AWS Lambda