You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marvin.apache.org by ra...@apache.org on 2019/06/13 18:44:25 UTC
[incubator-marvin] branch MARVIN-59 created (now a7db5b2)
This is an automated email from the ASF dual-hosted git repository.
rafaelnovello pushed a change to branch MARVIN-59
in repository https://gitbox.apache.org/repos/asf/incubator-marvin.git.
at a7db5b2 Updating Dockerfile to use Python 3
This branch includes the following new commits:
new a7db5b2 Updating Dockerfile to use Python 3
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-marvin] 01/01: Updating Dockerfile to use Python 3
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rafaelnovello pushed a commit to branch MARVIN-59
in repository https://gitbox.apache.org/repos/asf/incubator-marvin.git
commit a7db5b274924cf455b3bd24b43c40b1b8f90dd88
Author: Rafael Novello <ra...@lendico.com.br>
AuthorDate: Thu Jun 13 15:44:06 2019 -0300
Updating Dockerfile to use Python 3
---
.../management/templates/python-engine/Dockerfile | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/python-toolbox/marvin_python_toolbox/management/templates/python-engine/Dockerfile b/python-toolbox/marvin_python_toolbox/management/templates/python-engine/Dockerfile
index bb77140..70c2db6 100644
--- a/python-toolbox/marvin_python_toolbox/management/templates/python-engine/Dockerfile
+++ b/python-toolbox/marvin_python_toolbox/management/templates/python-engine/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:16.04
+FROM ubuntu:18.04
MAINTAINER {{mantainer.email}}
@@ -19,7 +19,10 @@ ENV SPARK_HOME=/opt/spark
ENV SPARK_CONF_DIR=$SPARK_HOME/conf
ENV HADOOP_CONF_DIR=$SPARK_CONF_DIR
ENV YARN_CONF_DIR=$SPARK_CONF_DIR
-
+ENV DEBIAN_FRONTEND=noninteractive
+ENV TZ=America/Sao_Paulo
+ENV LC_ALL=C.UTF-8
+ENV LANG=C.UTF-8
##############################################################
# Create all folders needed
@@ -36,23 +39,23 @@ RUN mkdir -p $MARVIN_HOME && \
# Install the system dependencies for default installation
##############################################################
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y && \
apt-get install -y build-essential && \
apt-get install -y maven git python cmake software-properties-common curl libstdc++6 && \
apt-get install -y git && \
apt-get install -y wget && \
- apt-get install -y python2.7-dev && \
+ apt-get install -y python3.6-dev && \
apt-get install -y python-pip && \
apt-get install -y ipython && \
apt-get install -y libffi-dev && \
apt-get install -y libssl-dev && \
apt-get install -y libxml2-dev && \
apt-get install -y libxslt1-dev && \
- apt-get install -y libpng12-dev && \
+ apt-get install -y libpng-dev && \
apt-get install -y libfreetype6-dev && \
apt-get install -y python-tk && \
apt-get install -y libsasl2-dev && \
- apt-get install -y python-pip && \
apt-get install -y graphviz && \
pip install --upgrade pip && \
apt-get clean
@@ -82,7 +85,7 @@ RUN mkdir -p $SPARK_CONF_DIR
RUN /bin/bash -c "cd $MARVIN_ENGINE_HOME && \
source /usr/local/bin/virtualenvwrapper.sh && \
- mkvirtualenv $MARVIN_ENGINE_ENV"
+ mkvirtualenv -p python3 $MARVIN_ENGINE_ENV"
##############################################################
@@ -113,4 +116,4 @@ EXPOSE 8000
CMD /bin/bash -c "source /usr/local/bin/virtualenvwrapper.sh && \
workon $MARVIN_ENGINE_ENV && \
cd $MARVIN_ENGINE_HOME && \
- marvin engine-httpserver -h 0.0.0.0 -p 8000"
\ No newline at end of file
+ marvin engine-httpserver -h 0.0.0.0 -p 8000"