Skip to content

Commit cecb8ff

Browse files
committed
docs: Adds examples for use in docker
1 parent 6d65048 commit cecb8ff

File tree

11 files changed

+2363
-0
lines changed

11 files changed

+2363
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ can control the column `namespace` using the environment variable
249249
`FAUCET_TELEMETRY_NAMESPACE` or cli argument `--telemetry-namespace`. By
250250
default, this value is `"faucet"`.
251251

252+
253+
## Useful links
254+
255+
- [How to Run R Shiny in Docker: A Step-by-Step Guide](https://www.ixpantia.com/en/blog/how-to-run-r-shiny-in-docker-guide)
256+
252257
## Contributing
253258

254259
If you want to contribute to `faucet` please read the
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source("renv/activate.R")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
renv/library/
2+
renv/local/
3+
renv/cellar/
4+
renv/lock/
5+
renv/python/
6+
renv/sandbox/
7+
renv/staging/
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ixpantia/faucet:r4.4
2+
3+
# Install extra system dependencies
4+
RUN apt-get update && \
5+
apt-get install -y libssl-dev libcurl4-openssl-dev && \
6+
apt-get clean && \
7+
rm -rf /var/lib/apt/lists/*
8+
9+
# Copy Files to bootstrap renv
10+
COPY renv.lock renv.lock
11+
COPY .Rprofile .Rprofile
12+
COPY renv/ renv/
13+
14+
# Restore Renv
15+
RUN Rscript -e "renv::restore()"
16+
17+
COPY global.R global.R
18+
COPY ui.R ui.R
19+
COPY server.R server.R
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
library(shiny)
2+
library(bslib)
3+
library(plotly)
4+
library(ggplot2)

0 commit comments

Comments
 (0)