Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TFG_Informatica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
victarr
TFG_Informatica
Commits
4ecf9320
Commit
4ecf9320
authored
Jun 10, 2022
by
victarr
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
5530097d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker files/Dockerfile
+84
-0
84 additions, 0 deletions
docker files/Dockerfile
with
84 additions
and
0 deletions
docker files/Dockerfile
0 → 100644
+
84
−
0
View file @
4ecf9320
# Comenzamos desde una 4.1.3 de rocker/shiny:4.1.3 que se basa en Debian
# Ver el Dockerfile en el github de shiny
#FROM rocker/shiny:4.1.3
FROM
rocker/shiny:latest
ENV
DEBIAN_FRONTEND=noninteractive
# Instalamos herramientas y paquetes que necesitaremos. C, Fortran, Python3
# Instalamos apt-utils y hacemos un segundo update para facilitar gestión de paquetes.
RUN
apt-get update
-qq
\
&&
apt-get
install
-y
--no-install-recommends
apt-utils
\
&&
apt-get update
-qq
\
&&
apt-get
install
-y
--no-install-recommends
\
apt-transport-https
\
software-properties-common
\
build-essential
\
wget
\
bzip2
\
gnupg
\
gcc
\
gfortran
\
git
\
curl
\
libpng-dev
\
libnlopt-dev
\
liblapack-dev
\
libssl-dev
\
libcurl4-openssl-dev
\
ca-certificates
\
r-base
\
python3.9
\
libpython3.9
\
python3-virtualenv
\
python3-pip
\
python3-setuptools
\
python3-dev
\
cron
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt-get/lists/
*
/tmp/
*
/var/tmp/
*
\
&&
cron start
# Instalamos NUMPY, PANDAS, TENSORFLOW, KERAS, SCIKIT-LEARN
RUN
pip3
install
\
protobuf
==
3.20.0
\
numpy
==
1.20.3
\
pandas
==
1.3.4
\
scikit-learn
==
0.24.2
\
tensorflow
==
2.8.0
\
keras
==
2.8.0
\
statsmodels
==
0.13.2
\
tslearn
==
0.5.2
\
numba
==
0.53
\
xgboost
==
1.6.1
# Instalamos diversos paquetes de R
ADD
./scripts/instala_paquetes.R /opt
RUN
Rscript /opt/instala_paquetes.R
# Descargamos, instalamos demos de AMPL
ARG
AMPL=http://ampl.com/demo/ampl.linux64.tgz
ADD
${AMPL} /opt
ADD
./scripts/detect_ampl.sh /opt
RUN
chmod
+x /opt/detect_ampl.sh
RUN
/opt/detect_ampl.sh
ENV
PATH /opt/ampl:$PATH
# Run cron
COPY
crontab /etc/cron.d/task-descargaDatos
RUN
chmod
0644 /etc/cron.d/task-descargaDatos
&&
\
crontab /etc/cron.d/task-descargaDatos
#Personalización del sistema que usa s6-overlay, parece
COPY
./timezone /etc/timezone
COPY
./timezone /etc/s6/init/env/TZ
COPY
./timezone /etc/s6/init/env-stage2/TZ
COPY
./environment /etc/environment
RUN
mkdir
-p
/etc/services.d/cron
COPY
./scripts /usr/local/src/myscripts
WORKDIR
/usr/local/src/myscripts
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment