Hi community, Anyone familiar with this? thanks fo...
# ask-the-community
h
Hi community, Anyone familiar with this? thanks for the responding
k
are you using demo cluster?
y
FYI, I once encountered this problem when using VSCode and SSH for the remote server. The MinIO port might not be automatically forwarded in this case. You may need to use
kubectl get svc
to see the port number and manually add that port to VSCode.
h
Hi @Kevin Su yes
@Yicheng Lu Thanks for the reply. Can you be more specify for how to do it? My dev env is GCP, and I use
ssh -L 30080:localhost:30080 gcp
to project it to my localhost.
FYU, I am able to access the minio locally
k
did you port forward minio?
Copy code
ssh -L 30084:localhost:30084 gcp
h
I didn't
HI @Kevin Su, just port forward, but it still the same
k
could you turn on developer tool with F12 to see if there is any error
h
yes
same like yours
k
click the network tab
y
I am able to see the deck by forwarding 30002.
k
yes, forwarding 30002 works for us, thanks
h
Hi @Kevin Su, @Yicheng Lu If I want to install
flytekit-deck-standard
in my image, I should follow (
pip install flytekitplugins-deck-standard
) this right?
k
correct
h
still gets this Plugin ‘flytekit-deck-standard’ is not installed. To display time line, install the plugin in the image.
even though I remove the existing image and rebuild a new one
y
One trick might be you need to first install flytekit-deck-standard then the flytekit
h
you mean in the docker image?
y
Yes~
h
Copy code
FROM python:3.9-slim-buster
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
here is current my docker file
Are you suggesting I change it into the following?
Copy code
FROM python:3.9-slim-buster
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install -U 
RUN pip install flytekitplugins-deck-standard
git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
y
Yes
h
Hi @Yicheng Lu, still the same
y
Copy code
FROM python:3.9-slim-buster
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
# The following line is an example of how to install your modified plugins. In this case, it demonstrates how to install the 'deck' plugin.
RUN pip install -U git+<https://github.com/Yicheng-Lu-llll/flytekit.git@>"demo#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard" # replace with your own repo and branch
RUN pip install -U git+<https://github.com/Yicheng-Lu-llll/flytekit.git@demo> # replace with your own repo and branch
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:demo" # replace with your own image name and tag
Would you mind try this one? just replace with your repo and branch
h
k
still the same
y
Can you see the deck with the default image? maybe try to build the image start from
FROM
ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0 in this case
h
do you mean add this in docker file?
y
like
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
h
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install flytekitplugins-deck-standard
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
the above is my latest docker file, but still not. working…
I will tried it tomorrow
k
this is incorrect
Copy code
git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
should be ?
Copy code
pip install git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
second line
h
should I change it to ?
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
RUN pip install git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install flytekitplugins-deck-standard
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
k
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
RUN pip install git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
h
hmm.. still the same
y
Maybe change the image tag and try again 😞
I am guessing the image you are actually using is not the one you just built(if tag remains unchanged)
h
yeah…
but the weird thing is I did call
rmi before it push
but I may not stop the service first, that’s why we meet such problem
y
Also building the image with --no-cache may help
h
I see
thanks for your time and response @Yicheng Lu !