diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..0eff9b7 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,20 @@ +# Pre-built Dev Container Image for R. More info: https://github.com/rocker-org/devcontainer-images/pkgs/container/devcontainer%2Ftidyverse +# Available R version: 4, 4.1, 4.0 +ARG VARIANT="4.2" +FROM ghcr.io/rocker-org/devcontainer/tidyverse:${VARIANT} + +RUN apt-get update && apt-get install -y --no-install-recommends \ + software-properties-common \ + libudunits2-dev \ + libgdal-dev \ + libgeos-dev \ + libproj-dev + +RUN add-apt-repository ppa:ubuntugis/ppa -y \ + && apt-get install -y --no-install-recommends gdal-bin + +RUN pip uninstall Jinja2 + +# Install Python packages +COPY requirements.txt /tmp/pip-tmp/ +RUN python3 -m pip --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..3b0fc86 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,44 @@ +{ + "name": "R Data Science Environment", + "build": { + "dockerfile": "Dockerfile", + // Update VARIANT to pick a specific R version: 4, 4.1, 4.0 + // More info: https://github.com/rocker-org/devcontainer-images/pkgs/container/devcontainer%2Ftidyverse + "args": { "VARIANT": "4" } + }, + + "customizations": { + "vscode": { + "extensions": [ + // Add Jupyter and Python vscode extensions + "ms-toolsai.jupyter", + "ms-toolsai.jupyter-renderers", + "ms-python.python", + "ms-python.vscode-pylance" + //"vsls-contrib.codetour", + //"GitHub.copilot" + ] + } + }, + + // Forward Jupyter and RStudio ports + "forwardPorts": [8888], + "portsAttributes": { + //"8787": { + // "label": "Rstudio", + // "requireLocalPort": true, + // "onAutoForward": "ignore" + //}, + "8888": { + "label": "Jupyter", + "requireLocalPort": true, + "onAutoForward": "ignore" + } + }, + + // Use 'postAttachCommand' to run commands after the container is started. + //"postAttachCommand": "sudo rstudio-server start" + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root + // "remoteUser": "root" +} diff --git a/.devcontainer/requirements.txt b/.devcontainer/requirements.txt new file mode 100644 index 0000000..f4a287b --- /dev/null +++ b/.devcontainer/requirements.txt @@ -0,0 +1,22 @@ +pybryt +pylint +datascience +otter-grader +numpy +pandas +scipy +folium>=0.9.1 +matplotlib +ipywidgets>=7.0.0 +bqplot +nbinteract>=0.0.12 +okpy +scikit-learn +Rtree +GDAL +Fiona +pyproj +Shapely +geopandas +mapclassify +jupyter