You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/04/02 12:55:51 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: changed aws base Dockerfile according to python3

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
     new 3c41cbb  [DATALAB-2091]: changed aws base Dockerfile according to python3
3c41cbb is described below

commit 3c41cbb79336e11d128eb97842100ba47f6ad8fd
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Apr 2 15:55:36 2021 +0300

    [DATALAB-2091]: changed aws base Dockerfile according to python3
---
 .../src/general/files/aws/base_Dockerfile               | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/infrastructure-provisioning/src/general/files/aws/base_Dockerfile b/infrastructure-provisioning/src/general/files/aws/base_Dockerfile
index 548dfeb..47185c8 100644
--- a/infrastructure-provisioning/src/general/files/aws/base_Dockerfile
+++ b/infrastructure-provisioning/src/general/files/aws/base_Dockerfile
@@ -19,19 +19,30 @@
 #
 # ******************************************************************************
 
-FROM ubuntu:18.04
+FROM ubuntu:20.04
 ARG OS
 ARG SRC_PATH
 
 # Install any .deb dependecies
 RUN	apt-get update && \
     apt-get -y upgrade && \
-    apt-get -y install python3-pip python3-dev python3-virtualenv groff vim less git wget nano libssl-dev libffi-dev libffi6 && \
+    DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip python3-dev python3-virtualenv groff vim less git wget nano libssl-dev libffi-dev libffi7 && \
     apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
+# To cahnge POSIX locale to en_US.UTF-8
+RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
+
+RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
+    dpkg-reconfigure --frontend=noninteractive locales && \
+    update-locale LANG=en_US.UTF-8
+
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
 # Install any python dependencies
 RUN pip install -UI qtconsole==4.7.7 pip==21.0.1 && \
-    pip install boto3 backoff patchwork fabric==1.14.0 fabvenv awscli argparse requests ujson jupyter pycryptodome
+    pip install boto3 backoff patchwork fabric fabvenv awscli argparse requests ujson jupyter pycryptodome
 
 # Configuring ssh for user
 RUN mkdir -p /root/.ssh; echo "Host *" > /root/.ssh/config; \

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org