Skip to content

Commit

Permalink
Merge pull request #55 from omnideconv/alex_dev
Browse files Browse the repository at this point in the history
Updated Version of Webserver for DeconvExplorer
  • Loading branch information
alex-d13 authored Feb 27, 2024
2 parents ec0d8f1 + 0315bf0 commit 583b813
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 26 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ FROM rocker/r-base
ARG GITHUB_PAT

RUN apt-get update && apt-get install -y \
binutils \
sudo \
pandoc \
apt-utils \
#pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
Expand All @@ -27,13 +27,12 @@ RUN apt-get update && apt-get install -y \
# omnideconv and DeconvExplorer
#RUN install2.r --error textshaping

RUN install2.r --error pak car matlib
#RUN R -e "remotes::install_github('omnideconv/omnideconv', dependencies=TRUE)"
RUN R -e "pak::pkg_install('omnideconv/omnideconv', dependencies=TRUE)"
#RUN R -e "remotes::install_github('omnideconv/DeconvExplorer', dependencies=TRUE)"
RUN install2.r --error pak car matlib remotes
RUN R -e "remotes::install_github('omnideconv/omnideconv', dependencies=TRUE)"
RUN R -e "pak::pkg_install('omnideconv/DeconvExplorer', dependencies=TRUE)"

RUN R -e "reticulate::install_miniconda(force=TRUE)" # will not install automatically
#RUN R -e "reticulate::install_miniconda()" # will not install automatically


RUN R -e "omnideconv::install_all_python()"

Expand All @@ -56,9 +55,7 @@ COPY /*.R /srv/shiny-server/
#RUN chmod -R +r /srv/shiny-server
RUN chown -R shiny:shiny /srv/shiny-server


EXPOSE 3838


CMD ["R", "-e", "shiny::runApp('/srv/shiny-server/', host = '0.0.0.0', port = 3838)"]
#CMD ["/usr/bin/shiny-server.sh"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
version: "3.5"

services:
deconvexplorer:
build:
context: ./app
args:
GITHUB_PAT: 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
image: deconv_explorer:latest
expose:
- 3838
networks:
- sp-net-deconvexplorer
shinyproxy:
build: ./shinyproxy
depends_on:
- deconvexplorer
expose:
- 8080
networks:
- sp-net-deconvexplorer
sp-net:
ipv4_address: 172.16.199.3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./logs/:/opt/shinyproxy/container-logs/
nginx:
image: nginx:1.17.5
restart: unless-stopped
ports:
- 3828:80
- 3868:80
networks:
- sp-net-deconvexplorer
sp-net:
ipv4_address: 172.16.199.4
depends_on:
- shinyproxy
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf

networks:
sp-net-deconvexplorer:
sp-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.199.0/24
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ proxy:
"-e",
"shiny::runApp('/srv/shiny-server/', host = '0.0.0.0', port = 3838)",
]
container-network: webserversetup_sp-net-deconvexplorer
container-image: deconv_explorer:latest
container-network: deconvexplorer-webserver_sp-net
container-image: alexd13/deconv_explorer:1.0
#container-cpu-limit: 2

logging:
Expand Down

0 comments on commit 583b813

Please sign in to comment.