From ab6a85c55d6c45325fc36523acd7e10979dbecf2 Mon Sep 17 00:00:00 2001 From: ahugla Date: Thu, 5 Mar 2020 11:32:56 +0100 Subject: [PATCH] Decrease size and debugging --- asset/Deployment/Docker/tito-fe/Dockerfile | 12 ++--- .../Docker/tito-fe/apache2-foreground | 5 ++- .../Docker/tito-fe/installTracing.sh | 45 +++++-------------- 3 files changed, 23 insertions(+), 39 deletions(-) diff --git a/asset/Deployment/Docker/tito-fe/Dockerfile b/asset/Deployment/Docker/tito-fe/Dockerfile index a55cbad..b66f688 100755 --- a/asset/Deployment/Docker/tito-fe/Dockerfile +++ b/asset/Deployment/Docker/tito-fe/Dockerfile @@ -5,17 +5,19 @@ FROM php:7.3.6-apache-stretch COPY apache2-foreground /usr/local/bin/apache2-foreground +COPY installTracing.sh /tmp/installTracing.sh + + RUN chmod +x /usr/local/bin/apache2-foreground; \ apt-get update; \ # for troubleshooting, can add vim and iputils-ping the following command line - apt-get install -y libmcrypt-dev git curl vim nano; \ + apt-get install -y libmcrypt-dev git curl; \ docker-php-ext-install mysqli pdo_mysql sockets; \ echo "ServerName localhost" > /etc/apache2/conf-available/servername.conf; a2enconf servername; \ apt-get clean && rm -rf /var/cache/apt/archives; \ - cd /tmp; \ - curl -O https://raw.githubusercontent.com/ahugla/test-bidouille-docker/master/Debian9/installTracing.sh; \ - chmod 755 installTracing.sh; \ - ./installTracing.sh; + chmod 755 /tmp/installTracing.sh; \ + /tmp/installTracing.sh; \ + rm -rf /tmp/*; ENTRYPOINT ["/usr/local/bin/apache2-foreground"] diff --git a/asset/Deployment/Docker/tito-fe/apache2-foreground b/asset/Deployment/Docker/tito-fe/apache2-foreground index bee9378..5dec5bb 100755 --- a/asset/Deployment/Docker/tito-fe/apache2-foreground +++ b/asset/Deployment/Docker/tito-fe/apache2-foreground @@ -53,7 +53,10 @@ cat >>/etc/apache2/apache2.conf <> /etc/apt/sources.list +echo 'APT::Default-Release "stable";' | tee -a /etc/apt/apt.conf.d/00local +apt-get update +apt-get -t testing install -y python3 -apt-get update && sudo apt-get upgrade -apt-get install -y do build-essential libssl-dev zlib1g-dev -apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm -apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev - -curl -O https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz - -tar xvf Python-3.6.4.tgz - -#prepare the build -cd Python-3.6.4 -#./configure --enable-optimizations # LENT: The configure option --enable-optimizations enables running test suites to generate data for profiling Python. The resulting python binary has better performance in executing python code. -./configure # PLUS RAPIDE - - -#build Python -make -j8 # dure 30 min avec --enable-optimizations - -#install Python -make altinstall - -python3.6 -V - - - -# INSTALL PYTHON-PIP -#------------------- +# INSTALL PYTHON3-PIP +#---------------------- +rm -f /etc/apt/apt.conf.d/00local +apt-get update apt-get install -y python3-pip -pip3 --version # INSTALL WAVEFRONT SDK #---------------------- -pip3 install wavefront-opentracing-sdk-python --no-cache-dir \ No newline at end of file +pip3 install wavefront-opentracing-sdk-python --no-cache-dir