Microsoft Azure Just-In-Time access control
According to Microsoft, Therefore, they recently posted about a feature in beta…
March 03, 2021
We will see how we can install Python from command line using pyenv, and we will also create a Dockerfile.
I will be working on Centos-7 machine.
yum -y update
yum -y install git \
libffi-devel libffi libssh2-devel autoconf automake libtool \
libxml2-devel libxslt-devel libjpeg-devel zlib-devel \
make cmake gcc python-devel python-setuptools \
bzip2-devel sqlite-devel wget openssl
PYENV_INSTALLER_URL=https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer
PYTHON_CONFIGURE_OPTS="--enable-shared"
RUN umask 022
curl -s -S -L "$PYENV_INSTALLER_URL" -o /usr/bin/pyenv-installer
chmod 0755 /usr/bin/pyenv-installer
/usr/bin/pyenv-installer
export PATH="/root/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
PYENV_VERSION=3.9.2 pyenv install $PYENV_VERSION pyenv global $PYENV_VERSION
eval ”$(pyenv init -)” python —version
## Complete Dockerfile for Installing Python 3.9.2
FROM centos:7
RUN yum makecache fast && yum -y update
RUN yum -y install git
libffi-devel openssl-devel libffi libssh2-devel autoconf automake libtool
libxml2-devel libxslt-devel libjpeg-devel zlib-devel
make cmake gcc python-devel python-setuptools wget openssl
bzip2-devel sqlite-devel
&& yum clean all
&& rm -rf /var/cache/yum
ARG PYENV_VERSION=3.9.2
ENV PYENV_INSTALLER_URL=https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer
ENV PYTHON_CONFIGURE_OPTS=“—enable-shared”
ENV PATH=/root/.pyenv/bin:$PATH
RUN umask 022
&& curl -s -S -L “$PYENV_INSTALLER_URL” -o /usr/bin/pyenv-installer
&& chmod 0755 /usr/bin/pyenv-installer
&& /usr/bin/pyenv-installer
&& eval ”$(pyenv init -)”
&& pyenv install $PYENV_VERSION
&& pyenv global $PYENV_VERSION
According to Microsoft, Therefore, they recently posted about a feature in beta…
To download this code from git: See: Gyanblog Github
Many times, while administering your drupal website, you must have encountered…
Introduction This post has the complete code to send email through smtp server…
Introduction In this post, we will see Python 3.9.x patch for FIPS enabled…
This post will show some really awesome tricks in python. Get the power of a…
Introduction This post has the complete code to send email through smtp server…
Introduction In a normal email sending code from python, I’m getting following…
Introduction In one of my app, I was using to talk to . I have used some event…
Introduction So you have a Django project, and want to run it using docker image…
Introduction It is very important to introduce few process so that your code and…
Introduction In this post, we will see a sample Jenkin Pipeline Groovy script…