I'm trying to setup Metaflow UI locally (on a Wind...
# ask-metaflow
s
I'm trying to setup Metaflow UI locally (on a Windows machine) to play around and test Metaflow, but I'm hitting a snag. When running
docker build --tag metaflow-ui:latest .
from https://github.com/Netflix/metaflow-ui/blob/master/docs/deployment.md#1-docker, I'm getting the below error.
Copy code
=> [stage-1 15/20] WORKDIR /root                                                                                                                                                                                        0.1s 
 => [stage-1 16/20] RUN /opt/latest/bin/pip install .                                                                                                                                                                   12.9s 
 => ERROR [stage-1 17/20] RUN /root/services/ui_backend_service/download_ui.sh                                                                                                                                           0.4s 
------
 > [stage-1 17/20] RUN /root/services/ui_backend_service/download_ui.sh:
0.403 /bin/sh: 1: /root/services/ui_backend_service/download_ui.sh: not found
------
Dockerfile:43
--------------------
  41 |
  42 |     # Install Netflix/metaflow-ui release artifact
  43 | >>> RUN /root/services/ui_backend_service/download_ui.sh
  44 |
  45 |     # Migration Service
--------------------
ERROR: failed to solve: process "/bin/sh -c /root/services/ui_backend_service/download_ui.sh" did not complete successfully: exit code: 127
I tried to setup the UI through CloudFormation in AWS, but it seems like I can't setup the Metaflow UI if I don't have a custom domain that the UI can point to. The domain verification process for a custom domain through AWS ACM is pretty awful, as is the AWS documentation to help. Any help to get the Metaflow UI up would be awesome
After trying a different route and running
yarn start
, I'm getting the following error in when in cmd:
Copy code
C:\Windows\System32>yarn install
āž¤ YN0087: Migrated your project to the latest Yarn version šŸš€

āž¤ YN0000: Ā· Yarn 4.0.0-rc.53.git.20231006.hash-202e568
āž¤ YN0000: ā”Œ Resolution step
āž¤ YN0000: ā”” Completed
āž¤ YN0000: ā”Œ Fetch step
āž¤ YN0000: ā”” Completed
āž¤ YN0000: ā”Œ Link step
āž¤ YN0000: ā”” Completed
āž¤ YN0000: Ā· Done in 0s 52ms

C:\Windows\System32>yarn start
Usage Error: Couldn't find a script named "start".

$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ...
just opened bug issues in the github repository for these
b
What directory are you running
yarn start
from? Do you see a file named
package.json
in that directory?
s
user home directory and
package.json
exists there
b
Do you see
"start": "cross-env DISABLE_NEW_JSX_TRANSFORM=true react-scripts start",
on line 29?
s
No, the entire contents of
package.json
are
Copy code
{
  "name": "georg",
  "packageManager": "yarn@3.6.4"
}
b
Do you know what directory the metaflow-ui code is in?
s
metaflow-ui code is not stored locally at this time. I was trying to stand up the UI locally via the docker image metaflow-ui. The docker image failed to build, so I tried to install yarn to try to resolve a different way
b
yarn
is just a js package manager which loads the js modules and runs scripts locally. If you wanted to run
metaflow-ui
locally, you would have to clone the repo and install from there. I would recommend going down the docker path.
s
Thanks, sounds like a good plan. Any idea why the docker container is not building? https://outerbounds-community.slack.com/archives/C02116BBNTU/p1696610388144199
@brave-lion-15961 This docker image appears to build successfully but not connect to other services running locally
docker pull zacharybloss/metaflow-ui
b
@some-thailand-20776 I am not the right person to help with Docker issues but I am sure someone else on the slacks will be able to help you
a
@average-beach-28850 ^^
šŸ‘ 1