-
Notifications
You must be signed in to change notification settings - Fork 5
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 #6 from anodaini/main
Deployed the app
- Loading branch information
Showing
9 changed files
with
95 additions
and
52 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM plotly/heroku-docker-r:3.6.3_heroku18 | ||
|
||
# on build, copy application files | ||
COPY . /app/ | ||
|
||
# for installing additional dependencies etc. | ||
RUN if [ -f '/app/onbuild' ]; then bash /app/onbuild; fi; | ||
|
||
# look for /app/apt-packages and if it exists, install the packages contained | ||
RUN if [ -f '/app/apt-packages' ]; then apt-get update -q && cat apt-packages | xargs apt-get -qy install && rm -rf /var/lib/apt/lists/*; fi; | ||
|
||
# look for /app/init.R and if it exists, execute it | ||
RUN if [ -f '/app/init.R' ]; then /usr/bin/R --no-init-file --no-save --quiet --slave -f /app/init.R; fi; | ||
|
||
# You could install packages here, but I strongly reccomend that you use init.R instead. | ||
# RUN R -e "install.packages('remotes', repos='http://cran.rstudio.com/')" \ | ||
# && R -e "remotes::install_github('facultyai/dash-bootstrap-components@r-release')" | ||
|
||
# here app.R needs to match the name of the file which contains your app | ||
CMD cd /app && /usr/bin/R --no-save -f /app/app.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,13 @@ | ||
Version: 1.0 | ||
|
||
RestoreWorkspace: Default | ||
SaveWorkspace: Default | ||
AlwaysSaveHistory: Default | ||
|
||
EnableCodeIndexing: Yes | ||
UseSpacesForTab: Yes | ||
NumSpacesForTab: 2 | ||
Encoding: UTF-8 | ||
|
||
RnwWeave: Sweave | ||
LaTeX: pdfLaTeX |
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
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,3 @@ | ||
libcurl4-openssl-dev | ||
libxml2-dev | ||
libv8-3.14-dev |
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,3 @@ | ||
build: | ||
docker: | ||
web: Dockerfile |
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,13 @@ | ||
# R script to run author supplied code, typically used to install additional R packages | ||
# contains placeholders which are inserted by the compile script | ||
# NOTE: this script is executed in the chroot context; check paths! | ||
|
||
r <- getOption('repos') | ||
r['CRAN'] <- 'http://cloud.r-project.org' | ||
options(repos=r) | ||
|
||
# ====================================================================== | ||
|
||
# packages go here | ||
install.packages(c('dash', 'readr', 'here', 'ggthemes', 'remotes', 'tidyverse', 'purrr')) | ||
remotes::install_github('facultyai/dash-bootstrap-components@r-release') |
This file was deleted.
Oops, something went wrong.