softwareDevelopment commited on
Commit
58870a0
·
verified ·
1 Parent(s): c2da2bd

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -163
Dockerfile DELETED
@@ -1,163 +0,0 @@
1
- FROM rocker/shiny:latest
2
-
3
- # Set working directory inside container
4
- WORKDIR /code
5
-
6
- # Install additional system dependencies
7
- RUN apt-get update && apt-get install -y \
8
- libcurl4-openssl-dev \
9
- libssl-dev \
10
- libxml2-dev \
11
- libnlopt-dev \
12
- libicu-dev \
13
- libgdal-dev \
14
- libgeos-dev \
15
- libproj-dev \
16
- libv8-dev \
17
- libnode-dev \
18
- libglpk-dev \
19
- libglpk40 \
20
- libgmp-dev \
21
- zlib1g-dev \
22
- libbz2-dev \
23
- libgit2-dev \
24
- libudunits2-dev \
25
- libgsl-dev \
26
- && apt-get clean \
27
- && rm -rf /var/lib/apt/lists/*
28
-
29
- # Install devtools and remotes first
30
- RUN install2.r --error --repo https://cloud.r-project.org \
31
- devtools \
32
- remotes \
33
- > install_devtools.log 2>&1 || cat install_devtools.log
34
-
35
- # Install DT dependencies
36
- RUN install2.r --error --repo https://cloud.r-project.org \
37
- htmltools \
38
- htmlwidgets \
39
- jsonlite \
40
- crosstalk \
41
- magrittr \
42
- promises \
43
- > install_dt.log 2>&1 || cat install_dt.log
44
-
45
- # Install main packages
46
- RUN install2.r --error --repo https://cloud.r-project.org \
47
- nloptr \
48
- lme4 \
49
- emmeans \
50
- readxl \
51
- plotly \
52
- shinyjs \
53
- shinyWidgets \
54
- DT \
55
- RColorBrewer \
56
- ggrepel \
57
- openxlsx \
58
- randomForest \
59
- caret \
60
- writexl \
61
- viridis \
62
- tidyverse \
63
- shinythemes \
64
- shinyBS \
65
- data.table \
66
- dplyr \
67
- tidyr \
68
- qtlDesign \
69
- > install_main.log 2>&1 || cat install_main.log
70
-
71
- # Install additional packages
72
- RUN install2.r --error --repo https://cloud.r-project.org \
73
- igraph \
74
- vcfR \
75
- dbscan \
76
- factoextra \
77
- cluster \
78
- > install_extra.log 2>&1 || cat install_extra.log
79
-
80
- # Install qtl package
81
- RUN install2.r --error --repo https://cloud.r-project.org \
82
- qtl \
83
- > install_qtl.log 2>&1 || cat install_qtl.log
84
-
85
- # Install additional dependencies for QTLseqr and qtlTools
86
- RUN install2.r --error --repo https://cloud.r-project.org \
87
- ggplot2 \
88
- gridExtra \
89
- locfit \
90
- > install_additional_deps.log 2>&1 || cat install_additional_deps.log
91
-
92
- # Install QTLseqr from GitHub with specific error handling
93
- RUN R -e "options(timeout = 1200); \
94
- if (!requireNamespace('QTLseqr', quietly = TRUE)) { \
95
- tryCatch({ \
96
- remotes::install_github('bmansfeld/QTLseqr') \
97
- }, error = function(e) { \
98
- message('GitHub installation failed: ', e$message); \
99
- tryCatch({ \
100
- remotes::install_github('bmansfeld/QTLseqr@HEAD') \
101
- }, error = function(e) { \
102
- message('Alternative installation failed: ', e$message); \
103
- install.packages(c('data.table', 'ggplot2', 'dplyr', 'tidyr', 'gridExtra', 'locfit'), repos='https://cloud.r-project.org'); \
104
- remotes::install_github('bmansfeld/QTLseqr', dependencies = FALSE); \
105
- if (!requireNamespace('QTLseqr', quietly = TRUE)) { \
106
- stop('Failed to install QTLseqr'); \
107
- } \
108
- }) \
109
- }); \
110
- if (!requireNamespace('QTLseqr', quietly = TRUE)) { \
111
- stop('QTLseqr installation failed after all attempts'); \
112
- } \
113
- }" > install_QTLseqr.log 2>&1 && cat install_QTLseqr.log
114
-
115
- # Install qtlTools from GitHub with error handling
116
- RUN R -e "options(timeout = 1200); \
117
- if (!requireNamespace('qtlTools', quietly = TRUE)) { \
118
- tryCatch({ \
119
- remotes::install_github('jtlovell/qtlTools') \
120
- }, error = function(e) { \
121
- message('GitHub installation failed: ', e$message); \
122
- tryCatch({ \
123
- install.packages('qtlTools', repos='https://cloud.r-project.org') \
124
- }, error = function(e) { \
125
- message('CRAN installation also failed: ', e$message); \
126
- install.packages(c('qtl', 'dplyr', 'tidyr', 'ggplot2'), repos='https://cloud.r-project.org'); \
127
- remotes::install_github('jtlovell/qtlTools', dependencies = FALSE); \
128
- if (!requireNamespace('qtlTools', quietly = TRUE)) { \
129
- stop('Failed to install qtlTools'); \
130
- } \
131
- }) \
132
- }); \
133
- if (!requireNamespace('qtlTools', quietly = TRUE)) { \
134
- stop('qtlTools installation failed after all attempts'); \
135
- } \
136
- }" > install_qtlTools.log 2>&1 && cat install_qtlTools.log
137
-
138
- # Verify installations
139
- RUN R -e " \
140
- cat('Checking package installations:\\n'); \
141
- cat('QTLseqr available:', requireNamespace('QTLseqr', quietly = TRUE), '\\n'); \
142
- cat('qtlTools available:', requireNamespace('qtlTools', quietly = TRUE), '\\n'); \
143
- if (!requireNamespace('QTLseqr', quietly = TRUE)) { \
144
- message('QTLseqr not installed'); \
145
- quit(status = 1); \
146
- }; \
147
- if (!requireNamespace('qtlTools', quietly = TRUE)) { \
148
- message('qtlTools not installed'); \
149
- quit(status = 1); \
150
- } \
151
- " > verify_install.log 2>&1 && cat verify_install.log
152
-
153
- # Create www directory and health file
154
- RUN mkdir -p /code/www && echo "OK" > /code/www/health
155
-
156
- # Copy app code
157
- COPY app.R /code/
158
-
159
- # Expose the port Shiny will run on
160
- EXPOSE 7860
161
-
162
- # Run the app
163
- CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]