Skip to content

Commit

Permalink
Finalize to run on server
Browse files Browse the repository at this point in the history
  • Loading branch information
azvoleff committed Aug 5, 2024
1 parent cefba8f commit 52d154d
Show file tree
Hide file tree
Showing 5 changed files with 390 additions and 1 deletion.
2 changes: 1 addition & 1 deletion status/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update && \
r-cran-tidyverse r-cran-rpostgres r-cran-jsonlite \
r-cran-geojsonsf r-cran-ggrepel r-cran-rcolorbrewer \
r-cran-rnaturalearth r-cran-rnaturalearthdata r-cran-cowplot r-cran-lwgeom \
r-cran-knitr r-cran-foreach && \
r-cran-knitr r-cran-foreach r-cran-logger && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /work
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ services:
image: api-status
volumes:
- status-public:/public
env_file:
- prod.env
extra_hosts:
- "host.docker.internal:host-gateway"

Expand Down
2 changes: 2 additions & 0 deletions status/knit2html.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Rscript -e 'library(rmarkdown); rmarkdown::render("usage_report.Rmd", "html_document")'
mv usage_report.html /public/index.html
chmod 644 /public/index.html
3 changes: 3 additions & 0 deletions status/knit2pdf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Rscript -e 'library(rmarkdown); rmarkdown::render("usage_report.Rmd", "pdf_document")'
mv usage_report.pdf /public/index.pdf
chmod 644 /public/index.pdf
Loading

0 comments on commit 52d154d

Please sign in to comment.