Commit 5a9847ee authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Switched to Python v3.9.5.

parent 0789ebfb
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@ RUN yum update -y && yum -y install epel-release
# Install make, nano, openssh, wget, rsync and cronie
RUN yum -y install make nano openssh-clients wget rsync cronie

# Install python 3.9.4
# Install python 3.9.5
RUN yum -y install gcc openssl-devel bzip2-devel libffi-devel zlib-devel && \
    wget https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tgz && \
    tar xzf Python-3.9.4.tgz && \
    cd Python-3.9.4 && \
    wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz && \
    tar xzf Python-3.9.5.tgz && \
    cd Python-3.9.5 && \
    ./configure --enable-optimizations && \
    make altinstall && cd .. && rm Python-3.9.4.tgz
    make altinstall && cd .. && rm Python-3.9.5.tgz
    
# Install pika, redis, psycopg2, paramiko, scp, tabulate Python packages
RUN pip3.9 install --no-cache-dir pika redis psycopg2-binary paramiko scp tabulate
+3 −3
Original line number Diff line number Diff line
# Use python 3.9.4-slim as base image
FROM python:3.9.4-slim
# Use python 3.9.5-slim as base image
FROM python:3.9.5-slim

# Install psql client to be able to connect manually to the file_catalog container
# Install also redis-tools to be able to access the redis container via redis-cli
RUN apt-get -y update && apt-get -y install screen postgresql-client redis-tools 
RUN apt-get -y update && apt-get -y install nano screen postgresql-client redis-tools 

# Create a new user called 'client', create the home directory and set the default shell
RUN useradd -m -s /bin/bash client