-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (59 loc) · 3.56 KB
/
Dockerfile
File metadata and controls
69 lines (59 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM rocker/rstudio:4.3
# Install libraries
RUN apt-get update && apt-get install -y \
libpq-dev \
cmake \
libz-dev \
libpng-dev
# Set Working directory
WORKDIR /app
# Permissions
RUN mkdir -p /home/rstudio/.cache/
RUN chown -R rstudio /home/rstudio/.cache/
RUN chown -R rstudio:rstudio /app
# Copy data
RUN mkdir -p renv
COPY src /app/src
COPY data /app/data
COPY figures /app/figures
COPY renv.lock renv.lock
# renv caching
RUN mkdir renv/.cache
# # Restore packages, if needed
RUN Rscript -e "install.packages('renv')"
RUN Rscript -e 'renv::restore()'
# Run scripts
RUN Rscript /app/src/analysis/main/figures/figure_1/create_data_distributions.R
RUN Rscript /app/src/transformation/create_toxicity_percentage_by_binned_conversation_size_and_with_bin_ge_07.R
RUN Rscript /app/src/analysis/main/figures/figure_1/create_data_participation_vs_bin.R
RUN Rscript /app/src/visualization/figure_1/plot_figure_1.R
RUN Rscript /app/src/transformation/figure_2/create_data_toxicity_percentage_by_bin.R
RUN Rscript /app/src/visualization/figure_2/plot_figure_2.R
RUN Rscript /app/src/analysis/main/figures/figure_3/create_data_correlation_toxicity_and_participation.R
RUN Rscript /app/src/analysis/main/figures/figure_3/create_data_differences_between_toxic_and_non_toxic_threads.R
RUN Rscript /app/src/visualization/figure_3/plot_figure_3.R
RUN Rscript /app/src/analysis/main/figures/figure_4/4b_upvotes_vs_toxicity/create_data_likes_vs_toxicity.R
RUN Rscript /app/src/visualization/figure_4/plot_figure_4.R
RUN Rscript /app/src/analysis/main/tables/table_1/create_table_1.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_1/create_data_user_lifetime_distribution.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_1/create_data_thread_size_distribution.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_1/create_data_thread_lifetime_distribution.R
RUN Rscript /app/src/visualization/extended_data_figure_1/plot_extended_data_figure_1.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_2/create_data_toxicity_conversation_with_at_least_11_comments.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_2/create_data_toxicity_extremely_toxic_authors.R
RUN Rscript /app/src/visualization/extended_data_figure_2/plot_extended_data_figure_2.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_2/create_data_toxicity_extremely_toxic_authors.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_2/create_data_toxicity_conversation_with_at_least_11_comments.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_3/create_data_toxicity_vs_bin.R
RUN Rscript /app/src/visualization/extended_data_figure_3/plot_toxicity_vs_bin.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_4/create_data_toxicity_vs_lifetime_user.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_4/create_data_toxicity_vs_lifetime_threads.R
RUN Rscript /app/src/visualization/extended_data_figure_4/plot_extended_figure_4.R
RUN Rscript /app/src/analysis/ED/tables/extended_data_table_3/create_ed_table_3.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_5/create_data_correlation_toxic_non_toxic_threads_05.R
RUN Rscript /app/src/analysis/ED/figures/extended_data_figure_5/create_data_toxicity_percentage_by_log_bin_threads_0.5.R
RUN Rscript /app/src/visualization/extended_data_figure_5/plot_extended_data_figure_5.R
ENV R_PROFILE_USER=/usr/local/lib/R/etc/Rprofile.site
RUN echo 'setwd("/app")' >> $R_PROFILE_USER
ENV USER="rstudio"
CMD ["/usr/lib/rstudio-server/bin/rserver", "--server-daemonize", "0", "--auth-none", "1"]