:hugs: HF deploy
Browse files- .github/workflows/deploy.yml +20 -0
- Dockerfile +13 -0
- README.md +9 -0
- install.r +17 -0
.github/workflows/deploy.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
lfs: true
|
17 |
+
- name: Push to hub
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: git push -f https://cboettig:[email protected]/spaces/boettiger-lab/sf_biodiv_access_shiny/ main
|
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM quay.io/jupyter/minimal-notebook:ubuntu-24.04
|
2 |
+
|
3 |
+
USER root
|
4 |
+
|
5 |
+
# R & RStudio
|
6 |
+
RUN curl -s https://raw.githubusercontent.com/boettiger-lab/repo2docker-r/refs/heads/main/install_r.sh | bash
|
7 |
+
RUN curl -s https://raw.githubusercontent.com/boettiger-lab/repo2docker-r/refs/heads/main/install_rstudio.sh | bash
|
8 |
+
|
9 |
+
WORKDIR /code
|
10 |
+
COPY . .
|
11 |
+
RUN Rscript install.r
|
12 |
+
|
13 |
+
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|
README.md
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# SF Biodiversity Access Shiny App
|
2 |
|
3 |
This Shiny app provides decision support for the **Reimagining San Francisco Initiative**, aiming to explore the intersection of biodiversity, socio-economic variables, and greenspace accessibility.
|
|
|
1 |
+
---
|
2 |
+
title: Sf Biodiv Access Shiny
|
3 |
+
emoji: 📚
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: yellow
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
---
|
9 |
+
|
10 |
# SF Biodiversity Access Shiny App
|
11 |
|
12 |
This Shiny app provides decision support for the **Reimagining San Francisco Initiative**, aiming to explore the intersection of biodiversity, socio-economic variables, and greenspace accessibility.
|
install.r
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
install.packages(c("shinyjs",
|
2 |
+
"shiny",
|
3 |
+
"shinydashboard",
|
4 |
+
"leaflet",
|
5 |
+
"mapboxapi",
|
6 |
+
"tidyverse",
|
7 |
+
"tidycensus",
|
8 |
+
"sf",
|
9 |
+
"DT",
|
10 |
+
"RColorBrewer",
|
11 |
+
"terra",
|
12 |
+
"data.table",
|
13 |
+
"mapview",
|
14 |
+
"sjPlot",
|
15 |
+
"sjlabelled",
|
16 |
+
"bslib",
|
17 |
+
"shinycssloaders"))
|