Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 setup:emulators:ui #3151

Closed
mac2000 opened this issue Feb 20, 2021 · 0 comments · Fixed by #3152
Closed

💡 setup:emulators:ui #3151

mac2000 opened this issue Feb 20, 2021 · 0 comments · Fixed by #3152

Comments

@mac2000
Copy link
Contributor

mac2000 commented Feb 20, 2021

Motivation: to build docker image with firestore emulator and ui we can prefetch firestore emulator with help of setup:emulators:firestore but there is no such command for ui, so it is being downloaded each time container starts.

Workaround: meanwhile workaround is to

ADD https://storage.googleapis.com/firebase-preview-drop/emulator/ui-v1.4.1.zip /root/.cache/firebase/emulators/ui-v1.4.1.zip
RUN unzip /root/.cache/firebase/emulators/ui-v1.4.1.zip -d /root/.cache/firebase/emulators/ui-v1.4.1

What needs to be done:

If I understood everything correctly all we need is add

src/commands/setup-emulators-ui.js

"use strict";

const { Command } = require("../command");
const { Emulators } = require("../emulator/types");
const { downloadEmulator } = require("../emulator/download");

const NAME = Emulators.UI;

module.exports = new Command(`setup:emulators:${NAME}`)
  .description(`downloads the ${NAME} emulator`)
  .action((options) => {
    return downloadEmulator(NAME);
  });

And add it to src/commands/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy