-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to generate production data on GAE (#87)
- Loading branch information
Showing
27 changed files
with
575 additions
and
162 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
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
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
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,7 @@ | ||
OMOPCAT_DATA_PATH= | ||
DB_NAME= | ||
HOST= | ||
PORT= | ||
DB_USERNAME= | ||
DB_PASSWORD= | ||
DB_CDM_SCHEMA= |
This file was deleted.
Oops, something went wrong.
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,18 +1,27 @@ | ||
FROM rocker/shiny-verse:4.4.1 | ||
|
||
WORKDIR /app | ||
COPY renv.lock.prod renv.lock | ||
COPY deploy/renv.lock.prod renv.lock | ||
|
||
# Install renv and restore environment | ||
# omopbundles is installed separately as renv is giving problems | ||
# with GitHub packages | ||
RUN R -e 'remotes::install_github("SAFEHR-data/omop-bundles")' | ||
RUN install2.r --error --skipinstalled renv && \ | ||
R -e 'renv::restore()' | ||
R -e 'renv::restore(exclude = "omopbundles")' | ||
|
||
COPY omopcat_*.tar.gz /app.tar.gz | ||
RUN R -e 'remotes::install_local("/app.tar.gz", upgrade="never")' && \ | ||
COPY deploy/omopcat_*.tar.gz /app.tar.gz | ||
RUN R -e 'remotes::install_local("/app.tar.gz", upgrade="never", dependencies = FALSE)' && \ | ||
rm /app.tar.gz | ||
|
||
EXPOSE 3838 | ||
CMD ["R", "-e", "options('shiny.port'=3838,shiny.host='0.0.0.0');library(omopcat);omopcat::run_app()"] | ||
ARG OMOPCAT_DATA_PATH | ||
|
||
ADD scripts ./scripts | ||
COPY deploy/.Renviron .Renviron | ||
|
||
# to build: docker build -t omopcat . | ||
# to run: docker run -p 3838:3838 omopcat | ||
EXPOSE 3838 | ||
CMD ["R", "-e", \ | ||
"options('shiny.port'=3838,shiny.host='0.0.0.0'); \ | ||
source('scripts/create_prod_data.R'); \ | ||
omopcat::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
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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.