-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from gvegayon/main
Deployment with Docker container
- Loading branch information
Showing
9 changed files
with
76 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ README.Rmd | |
^CODE_OF_CONDUCT\.md$ | ||
^app\.R$ | ||
^rsconnect$ | ||
^app$ | ||
Dockerimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.Rhistory | ||
.secrets.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM rocker/tidyverse:4.3.3 | ||
|
||
# Installing only packages that are not already installed in the base image | ||
RUN install2.r -s \ | ||
shinyjs \ | ||
utils \ | ||
shinydashboard \ | ||
DT \ | ||
ggplot2 \ | ||
epiworldR \ | ||
shinycssloaders \ | ||
plotly \ | ||
pkgload \ | ||
shiny | ||
|
||
|
||
RUN install2.r -s rsconnect | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
epiworldRShiny::run_app() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
library(rsconnect) | ||
|
||
rsconnect::setAccountInfo( | ||
name = Sys.getenv("SHINY_USER"), | ||
token = Sys.getenv("SHINY_TOKEN"), | ||
secret = Sys.getenv("SHINY_SECRET") | ||
) | ||
|
||
cat("Listing the current directory and its contents\n") | ||
cat(getwd(), "\n") | ||
list.files() |> cat("\n") | ||
|
||
rsconnect::deployApp( | ||
appDir = file.path(getwd(), "epishiny"), | ||
appName = "epishiny", | ||
# appId = Sys.getenv("SHINY_APP_ID"), | ||
forceUpdate = TRUE, | ||
account = Sys.getenv("SHINY_USER"), | ||
logLevel = "verbose" | ||
) |