Git - How to create a Pull Request with no history of commits
Introduction If you working on a github project in a team. Consider you have…
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
Introduction If you working on a github project in a team. Consider you have…
Introduction I have my main website, which I run on Lets say: . Now, there is my…
Introduction Consider a scenario where you are building a docker image on your…
This post will show some really awesome tricks in python. Get the power of a…
Introduction Drupal is an awesome CMS. Drupal content type form, allows you to…
If your youtube video looks like:https://www.youtube.com/watch?v=g0kFl7sBdDQ…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…