docker icon indicating copy to clipboard operation
docker copied to clipboard

Julia-based images

Open Robinlovelace opened this issue 1 year ago • 9 comments

  • [ ] Base image with core spatial deps installed
  • [x] Addition to other images for x-language work

Robinlovelace avatar Sep 20 '24 23:09 Robinlovelace

Looks like there are still a few problems if you manage the Julia version via pixi: https://discourse.julialang.org/t/managing-julia-versions-using-pixi/116165/16

asinghvi17 avatar Sep 20 '24 23:09 asinghvi17

Interesting, seems there are a good few Julia projects here: https://pixi.sh/v0.16.1/Community/ some of which are by @evetion none of them use Docker or devcontainers as far as I can see though.

Robinlovelace avatar Sep 20 '24 23:09 Robinlovelace

Pure Julia version doesn't need to use Pixi. rpyjl version: probably worthwhile but open to ideas!

Robinlovelace avatar Sep 20 '24 23:09 Robinlovelace

Hmm...a pure Julia image would be pretty easy then! Is it easy to automatically update?

asinghvi17 avatar Sep 20 '24 23:09 asinghvi17

Yes, if you supply a Dockerfile we can handle the auto-deployment, just a julia.yml file in the .github/workflows folder should do it.

Robinlovelace avatar Sep 21 '24 00:09 Robinlovelace

Interesting, seems there are a good few Julia projects here: https://pixi.sh/v0.16.1/Community/ some of which are by @evetion none of them use Docker or devcontainers as far as I can see though.

Correct, pixi is easier to install than docker and it does everything for us, using the tasks feature. The notable exception is testing our QGIS plugin, which is done in Docker.

evetion avatar Sep 21 '24 10:09 evetion

I wonder to what extent pixi could replace Docker, with possible resource savings.

Robinlovelace avatar Sep 21 '24 16:09 Robinlovelace

This is now working!

image

See commits above and below.

Robinlovelace avatar Sep 22 '24 22:09 Robinlovelace

Maps looking good:

image

Robinlovelace avatar Sep 22 '24 22:09 Robinlovelace

This is basically done in https://github.com/geocompx/docker/tree/master/rocker-rpyjl although in terms of image size... I think we can do better. See https://github.com/geocompx/docker/issues/110 for an approach starting with Python's official bookworm-slim image. Thoughts v. welcome @evetion, @asinghvi17 and others, is this a solved problem or is it still worth developing cross-language images here? My hypothesis: not solved and yes worth developing this!

Robinlovelace avatar Sep 03 '25 15:09 Robinlovelace