Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
morphemic-preprocessor
Commits
9e6b1c58
Commit
9e6b1c58
authored
Apr 01, 2022
by
Andreas Tsagkaropoulos
Browse files
Removal of unecessary, backup Dockerfile2
parent
ef4f54cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
morphemic-forecasting-exponentialsmoothing/Dockerfile2
deleted
100644 → 0
View file @
ef4f54cc
FROM python:3 as source
RUN pip install --upgrade pip
RUN mkdir /src
ADD ./src/ /src/
WORKDIR /src
RUN pip install -r requirements.txt
RUN ls -la
RUN python3 setup.py sdist
RUN ls ./dist/
#FROM rbase
FROM ubuntu:latest
RUN mkdir -p /home/r_predictions
#RUN mkdir -p /home/prestocloud/output
#ADD input /home/prestocloud/input
RUN apt-get update
ENV TZ=Europe/Athens
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
build-essential \
r-base-core \
r-base-dev \
r-cran-digest \
r-cran-boot \
r-cran-class \
r-cran-cluster \
r-cran-codetools \
r-cran-foreign \
r-cran-kernsmooth \
r-cran-lattice \
r-cran-littler \
r-cran-mass \
r-cran-matrix \
r-cran-mgcv \
r-cran-nlme \
r-cran-nnet \
r-cran-pkgkitten \
r-cran-rcpp \
r-cran-rpart \
r-cran-spatial \
r-cran-survival \
r-doc-html \
r-recommended \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
#RUN mkdir -p /home/prestocloud/
COPY ./src/r_predictors/r_commands.R /home/r_predictions/
#ENTRYPOINT ["Rscript","/home/r_predictions/forecasting_real_workload.R"]
#WORKDIR /home/r_predictions
RUN Rscript /home/r_predictions/r_commands.R #install prerequisite libraries
COPY --from=source ./src/dist/esm_forecaster-0.1.0.tar.gz /home/r_predictions/
COPY ./src/requirements.txt /home/r_predictions/
COPY ./src/prepare_python_dependencies.sh /home/r_predictions/
RUN bash -x /home/r_predictions/prepare_python_dependencies.sh
#---------------------Installation up to here
#RUN apt-get update
#RUN apt-get -y install python3 python3-pip #this installation should be merged with the previous one
#COPY ./src/r_predictors/prediction_configuration.properties /home/r_predictions
#COPY ./extra_r_commands.R /home/r_predictions/
#RUN Rscript /home/r_predictions/extra_r_commands.R #these libraries should be merged with the previous ones
#WORKDIR /home/r_predictions
COPY ./src/r_predictors/forecasting_real_workload.R /home/r_predictions/
#below two commented lines only serve for experiments with predictive functionality
#COPY ./default_application.csv /home/r_predictions
#RUN Rscript forecasting_real_workload.R default_application.csv MinimumCores 1638878119
WORKDIR /home/r_predictions/esm_forecaster-0.1.0
#RUN python3 runtime/Predictor.py r_predictors/prediction_configuration-windows.properties
CMD ["/bin/sh","-c","python3 /home/r_predictions/esm_forecaster-0.1.0/runtime/Predictor.py /home/r_predictions/esm_forecaster-0.1.0/r_predictors/prediction_configuration.properties > /home/r_predictions/exponential_smoothing.log"]
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment