sql api was unable to find pg module

Switched to yarn to install deps in flat hierarchy instead of npms nested
This commit is contained in:
Stefan Verhoeven 2019-04-13 17:00:12 +02:00
parent 65e9a7b253
commit b106b301c9

View File

@ -162,16 +162,14 @@ ADD ./cartodb_pgsql.sh /tmp/cartodb_pgsql.sh
RUN git clone git://github.com/CartoDB/CartoDB-SQL-API.git && \ RUN git clone git://github.com/CartoDB/CartoDB-SQL-API.git && \
cd CartoDB-SQL-API && \ cd CartoDB-SQL-API && \
git checkout $SQLAPI_VERSION && \ git checkout $SQLAPI_VERSION && \
npm install && \ npm install -g yarn && \
rm -r /tmp/npm-* /root/.npm yarn install
# Install Windshaft # Install Windshaft
RUN git clone git://github.com/CartoDB/Windshaft-cartodb.git && \ RUN git clone git://github.com/CartoDB/Windshaft-cartodb.git && \
cd Windshaft-cartodb && \ cd Windshaft-cartodb && \
git checkout $WINDSHAFT_VERSION && \ git checkout $WINDSHAFT_VERSION && \
npm install -g yarn && \
yarn install && \ yarn install && \
#rm -r /tmp/npm-* /root/.npm && \
mkdir logs mkdir logs
# Install CartoDB # Install CartoDB