-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
72 lines (63 loc) · 1.8 KB
/
Dockerfile
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
70
71
72
FROM rocker/tidyverse:latest
COPY src /install_scripts
USER root
WORKDIR /workdir
# Define variables de entorno
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH="/root/.local/lib/shellspec:$PATH"
ENV PYTHONIOENCODING=utf-8
ENV QT_QPA_PLATFORM=offscreen
ENV TZ=US/Pacific
# Instala paquetes en el sistema operativo
RUN apt update && apt full-upgrade --yes && apt install --yes \
curl \
docker.io \
gettext-base \
git \
gnumeric \
jq \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
make \
openssl \
python3 \
python3-dev \
python3-pip \
texlive-full \
vim \
xml2 \
&& \
apt clean
# Usa `python3` como la versión _default_ de Python
RUN ln --symbolic /usr/bin/python3 /usr/bin/python
# Instala modulos con pip
RUN pip install \
csvkit \
git+https://github.com/IslasGECI/bootstrapping_tools.git@main \
git+https://github.com/IslasGECI/descarga_datos.git@main \
git+https://github.com/IslasGECI/geci_cli.git@main \
git+https://github.com/IslasGECI/geci_plots.git@main \
git+https://github.com/IslasGECI/pythontex_tools.git@main \
goodtables \
matplotlib \
numpy \
pandas \
pygments \
scipy
# Instala paquetes de R
RUN Rscript -e "install.packages(c('covr', 'DT', 'lintr', 'styler', 'vdiffr'), repos='http://cran.rstudio.com')"
# Instala ShellSpec
RUN /install_scripts/install_shellspec.sh
# Instala repo de bats
RUN git clone https://github.com/bats-core/bats-core.git && \
cd bats-core && \
./install.sh /usr/local
# Instala repo de queries
RUN git clone https://github.com/IslasGECI/queries.git && \
cd queries && \
make install && \
cd .. && \
rm --recursive queries
# Inicia `bash` después de agregar permisos de escritura y ejecución para todos
CMD ["bash", "-c", "umask 000 && bash"]