Re-enable docs with new container (#34681)

This commit is contained in:
Dan Field
2019-06-18 16:08:28 -07:00
committed by GitHub
parent 9dbc66979a
commit 1d0aa02ac7
3 changed files with 24 additions and 9 deletions

View File

@@ -103,6 +103,10 @@ RUN dpkg-query -L nodejs
# Install Firebase
# This is why we need nodejs installed.
RUN /usr/bin/npm --verbose install -g firebase-tools
# TODO(dnfield): Remove this once Firebase has a fix upstream for
# https://github.com/flutter/flutter/issues/34435
COPY patch_firebase.sh /root/patch_firebase.sh
RUN /root/patch_firebase.sh
# Install dashing
# This is why we need golang installed.

View File

@@ -0,0 +1,12 @@
#!/bin/bash
FIREBASE_CMD_LOC=$(which firebase)
NODE_DIR=$(dirname $(dirname $FIREBASE_CMD_LOC))
echo "Node directory is located at $NODE_DIR"
UPLOADER_FILE="$NODE_DIR""/lib/node_modules/firebase-tools/lib/deploy/hosting/uploader.js"
echo "File to modify is $UPLOADER_FILE"
REPLACE='s#populateBatchSize || 1000;#populateBatchSize || 100;#'
echo "Going to replace with $REPLACE"
sed -i "$REPLACE" "$UPLOADER_FILE"