p-vdp commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3412766674

   @paleolimbot Here's what I settled on, feel free to adapt it for the 
documentation:
   
   ```Dockerfile
   # syntax=docker/dockerfile:1
   FROM fedora:latest AS builder
   ENV HOME=/root
   WORKDIR $HOME
   
   FROM builder AS sys-deps
   RUN dnf install -y abseil-cpp-devel cmake g++ geos-devel git maturin 
openssl-devel proj-devel python3 python3-devel
   
   FROM sys-deps AS clone
   # Replace "apache" with your GitHub username to use your forked repo:
   RUN git clone https://github.com/apache/sedona-db  
   
   FROM clone AS build
   WORKDIR $HOME/sedona-db
   RUN <<EOF
       git remote add upstream https://github.com/apache/sedona-db.git
        git remote -v
        git submodule init
        git submodule update --recursive
        cargo build
   EOF
   
   # Extra datasets for testing:
   FROM build AS extra
   RUN python submodules/download-assets.py
   ```
   
   I also realized that [Fedora 42 is available through 
WSL](https://docs.fedoraproject.org/en-US/cloud/wsl/#_installing_fedora_in_wsl) 
now which helps Windows users (like myself) who don't usually maintain a dev 
environment for Rust/C++/etc. 
   
   Thanks again!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to