Giter VIP home page Giter VIP logo

Comments (5)

ahuang11 avatar ahuang11 commented on May 30, 2024 2

Yes that sounds correct. Perhaps prefect-gcp should add a disclaimer to discourage use of service_account_file since it's not portable within containers. Would you be willing to contribute a PR to do so?

from prefect-gcp.

ahuang11 avatar ahuang11 commented on May 30, 2024

I think it might be because you used: ~

What if you provide an absolute path?

from prefect-gcp.

khoinguyen19k8 avatar khoinguyen19k8 commented on May 30, 2024

I tried it but also did not work.

from prefect-gcp.

ahuang11 avatar ahuang11 commented on May 30, 2024

Ok I'll try testing soon. In the meantime, would you be able to copy the JSON into service_account_info as a workaround?

from prefect-gcp.

khoinguyen19k8 avatar khoinguyen19k8 commented on May 30, 2024

I suspect the reason would be:

  • I defined the GCS block by using a local path in my machine.
  • The prefect flow in my container try to find this exact path in the container but it does not exist.
    Maybe there is a way to define a mount that let the container access the credential path on my local machine but I am not sure how.
    Anyway, If I leave service_account_file NULL and copy the JSON content into service_account_info then it would work. I think I will do this for now.

from prefect-gcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.