Add Firestore emulator to gcloud_linux asset.
Update to latest gcloud archive. Change-Id: I93a5501af2567dfebff86bcd508f69968352692b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/202423 Auto-Submit: Ben Wagner aka dogben <benjaminwagner@google.com> Reviewed-by: Eric Boren <borenet@google.com> Commit-Queue: Eric Boren <borenet@google.com> Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com>
This commit is contained in:
parent
65c8000420
commit
d5add6a504
@ -1 +1 @@
|
|||||||
13
|
14
|
@ -19,7 +19,7 @@ import subprocess
|
|||||||
# scripting gcloud and also for updates.
|
# scripting gcloud and also for updates.
|
||||||
BASE_URL = 'https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/%s'
|
BASE_URL = 'https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/%s'
|
||||||
GCLOUD_BASE_NAME='google-cloud-sdk'
|
GCLOUD_BASE_NAME='google-cloud-sdk'
|
||||||
GCLOUD_ARCHIVE = '%s-215.0.0-linux-x86_64.tar.gz' % GCLOUD_BASE_NAME
|
GCLOUD_ARCHIVE = '%s-250.0.0-linux-x86_64.tar.gz' % GCLOUD_BASE_NAME
|
||||||
GCLOUD_URL = BASE_URL % GCLOUD_ARCHIVE
|
GCLOUD_URL = BASE_URL % GCLOUD_ARCHIVE
|
||||||
|
|
||||||
def create_asset(target_dir):
|
def create_asset(target_dir):
|
||||||
@ -46,6 +46,13 @@ def create_asset(target_dir):
|
|||||||
subprocess.check_call([gcloud_exe, 'components',
|
subprocess.check_call([gcloud_exe, 'components',
|
||||||
'install', 'pubsub-emulator',
|
'install', 'pubsub-emulator',
|
||||||
'--quiet'], env=env)
|
'--quiet'], env=env)
|
||||||
|
subprocess.check_call([gcloud_exe, 'components',
|
||||||
|
'install', 'beta', 'cloud-firestore-emulator',
|
||||||
|
'--quiet'], env=env)
|
||||||
|
# As of gcloud v250.0.0 and Cloud Firestore Emulator v1.4.6, there is a bug
|
||||||
|
# that something expects the JAR to be executable, but it isn't.
|
||||||
|
fs_jar = 'platform/cloud-firestore-emulator/cloud-firestore-emulator.jar'
|
||||||
|
subprocess.check_call(['chmod', '+x', os.path.join(target_dir, fs_jar)])
|
||||||
subprocess.check_call([gcloud_exe, 'components','update', '--quiet'], env=env)
|
subprocess.check_call([gcloud_exe, 'components','update', '--quiet'], env=env)
|
||||||
|
|
||||||
# Remove the tarball.
|
# Remove the tarball.
|
||||||
|
Loading…
Reference in New Issue
Block a user