site-www icon indicating copy to clipboard operation
site-www copied to clipboard

Add a page on how to run Dart in Docker

Open kwalrath opened this issue 3 years ago • 1 comments

/cc @mit-mit @kevmoo

kwalrath avatar Mar 23 '21 18:03 kwalrath

I'm marking this as no longer blocked due to the release of the official Dart docker image which is defined in https://github.com/dart-lang/dart-docker

parlough avatar May 30 '22 19:05 parlough

@domesticmouse I'd like to get something documented here, but don't have enough experience to know of what's important to note or challenges developers may face. In using Docker for dart-services or otherwise, has anything come up that may be worth documenting as part of this work? Or concepts that you think are important to cover?

The primary extra thing I can think of is discussing AOT compiling your Dart app and potentially(?) when that does or does not make sense in this context.

Thanks for your thoughts!!

parlough avatar Jul 03 '23 02:07 parlough

Hilariously, the docker based service I maintain doesn't use AOT, mainly for historical reasons.

AOT compilation for docker hosted Dart applications reduces start up time, which is important for rapid scaling in hosted environments like Cloud Run. All the same arguments that the GraalVM folks are using for dockerised Java apps, basically.

domesticmouse avatar Jul 03 '23 02:07 domesticmouse

@kevmoo probably has a lot more information to add here

domesticmouse avatar Jul 03 '23 02:07 domesticmouse

Not sure if I have a LOT more info to add. The docs on the official site are great. My only concern is to avoid duplicating content where we'd have to keep multiple artifacts in sync.

We should absolutely make sure we have good SEO around Dart + Docker. I'm not convinced (yet) that we need a dedicated page here (maybe just a mention somewhere else?) but happy to have my mind changed!

kevmoo avatar Jul 05 '23 21:07 kevmoo

If you think the docs on https://hub.docker.com/_/dart are satisfactory and covers everything needed, then I'm happy. It seems to come up consistently in various searches as well.

We do link to it in https://dart.dev/get-dart but perhaps we can add a link or two from elsewhere, including our still lacking (https://github.com/dart-lang/site-www/issues/3671 😢) server docs.

parlough avatar Jul 05 '23 21:07 parlough

Sgtm

domesticmouse avatar Jul 06 '23 04:07 domesticmouse