Giter Club home page Giter Club logo

Comments (8)

kevmoo avatar kevmoo commented on June 25, 2024 2

We clearly need to fix something here...will take a look!

from functions-framework-dart.

weenzeel avatar weenzeel commented on June 25, 2024 1

@Mooibroek If you created your project via the dartfn tool it may be that you've got a faulty docker file. Try and add a line similar to ...

COPY --from=0 /runtime/ /

to get the runtime needed by the server in the final runt-time Docker image.

from functions-framework-dart.

kevmoo avatar kevmoo commented on June 25, 2024 1

This is now fixed – thanks to @subfuzion – update dartfn and you should be good to go!

from functions-framework-dart.

kevmoo avatar kevmoo commented on June 25, 2024

I'd try again. Seems like a networking issue...

from functions-framework-dart.

Mooibroek avatar Mooibroek commented on June 25, 2024

Also running into a docker build failure.
Steps to reproduce:

  • Creating a helloworld application,
  • Running dart run bin/server.dart works fine locally
  • Running docker build . and after that docker run [container_name]

This error pops up:

standard_init_linux.go:228: exec user process caused: no such file or directory

Any thoughts?

On cloud deploy I get the following error (not sure if its the same of a different error)
image

from functions-framework-dart.

kevmoo avatar kevmoo commented on June 25, 2024

I just did

docker build -t dart-server .
run -it --rm -p 8080:8080 --name myserver dart-server

no problem.

If you try to run /bin/sh or similar that will fail because that command does not exist in the compiled image. It's from scratch which is tiny

from functions-framework-dart.

weenzeel avatar weenzeel commented on June 25, 2024

I'm also getting the "standard_init_linux.go:228: exec user process caused: no such file or directory" error message as reported by @Mooibroek above.

Steps to reproduce.

Run dartfn generate helloworld in a new folder.

As instructed by the README file. Run commands ...

docker build -t hello .
docker run -it -p 8080:8080 --name app hello

I'm on MacOS.

from functions-framework-dart.

kevmoo avatar kevmoo commented on June 25, 2024

CC @subfuzion

from functions-framework-dart.

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.