From 842009068b2c343feae564082bf5e914d642460c Mon Sep 17 00:00:00 2001 From: MoodyMudit Date: Sun, 16 May 2021 21:36:53 +0530 Subject: [PATCH] fixing pip in entrypoint also --- pkg/amazonlinux2016.09/entrypoint.sh | 3 +-- pkg/centos7/entrypoint.sh | 2 +- pkg/centos8/entrypoint.sh | 3 +-- pkg/coreos/entrypoint.sh | 3 +-- pkg/debian10/entrypoint.sh | 3 +-- pkg/debian8/entrypoint.sh | 3 +-- pkg/debian9/entrypoint.sh | 3 +-- pkg/dev/amazonlinux2016.09/entrypoint.sh | 3 +-- pkg/dev/centos7/entrypoint.sh | 3 +-- pkg/dev/centos8/entrypoint.sh | 3 +-- pkg/dev/coreos/entrypoint.sh | 3 +-- pkg/dev/debian10/entrypoint.sh | 3 +-- pkg/dev/debian8/entrypoint.sh | 3 +-- pkg/dev/debian9/entrypoint.sh | 3 +-- 14 files changed, 14 insertions(+), 27 deletions(-) diff --git a/pkg/amazonlinux2016.09/entrypoint.sh b/pkg/amazonlinux2016.09/entrypoint.sh index f7d083aa1..a076c6b52 100644 --- a/pkg/amazonlinux2016.09/entrypoint.sh +++ b/pkg/amazonlinux2016.09/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/centos7/entrypoint.sh b/pkg/centos7/entrypoint.sh index bf30fa40e..47cd81ca3 100644 --- a/pkg/centos7/entrypoint.sh +++ b/pkg/centos7/entrypoint.sh @@ -26,7 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" diff --git a/pkg/centos8/entrypoint.sh b/pkg/centos8/entrypoint.sh index e14144e28..3bf589453 100644 --- a/pkg/centos8/entrypoint.sh +++ b/pkg/centos8/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/coreos/entrypoint.sh b/pkg/coreos/entrypoint.sh index b333a21fb..f409ed5e5 100644 --- a/pkg/coreos/entrypoint.sh +++ b/pkg/coreos/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/debian10/entrypoint.sh b/pkg/debian10/entrypoint.sh index 7ae2375e0..86d69949f 100644 --- a/pkg/debian10/entrypoint.sh +++ b/pkg/debian10/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/debian8/entrypoint.sh b/pkg/debian8/entrypoint.sh index 13b2f414c..a7e9f2585 100644 --- a/pkg/debian8/entrypoint.sh +++ b/pkg/debian8/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/debian9/entrypoint.sh b/pkg/debian9/entrypoint.sh index c48178f51..976543052 100644 --- a/pkg/debian9/entrypoint.sh +++ b/pkg/debian9/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/dev/amazonlinux2016.09/entrypoint.sh b/pkg/dev/amazonlinux2016.09/entrypoint.sh index f7d083aa1..a076c6b52 100644 --- a/pkg/dev/amazonlinux2016.09/entrypoint.sh +++ b/pkg/dev/amazonlinux2016.09/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/dev/centos7/entrypoint.sh b/pkg/dev/centos7/entrypoint.sh index bf30fa40e..95038589a 100644 --- a/pkg/dev/centos7/entrypoint.sh +++ b/pkg/dev/centos7/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/dev/centos8/entrypoint.sh b/pkg/dev/centos8/entrypoint.sh index e14144e28..3bf589453 100644 --- a/pkg/dev/centos8/entrypoint.sh +++ b/pkg/dev/centos8/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/dev/coreos/entrypoint.sh b/pkg/dev/coreos/entrypoint.sh index b333a21fb..f409ed5e5 100644 --- a/pkg/dev/coreos/entrypoint.sh +++ b/pkg/dev/coreos/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/dev/debian10/entrypoint.sh b/pkg/dev/debian10/entrypoint.sh index 7ae2375e0..86d69949f 100644 --- a/pkg/dev/debian10/entrypoint.sh +++ b/pkg/dev/debian10/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/dev/debian8/entrypoint.sh b/pkg/dev/debian8/entrypoint.sh index 13b2f414c..a7e9f2585 100644 --- a/pkg/dev/debian8/entrypoint.sh +++ b/pkg/dev/debian8/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)" diff --git a/pkg/dev/debian9/entrypoint.sh b/pkg/dev/debian9/entrypoint.sh index c48178f51..976543052 100644 --- a/pkg/dev/debian9/entrypoint.sh +++ b/pkg/dev/debian9/entrypoint.sh @@ -26,8 +26,7 @@ cp /hubble_build/hubblestack/__init__.py /hubble_build/hubblestack/__init__.fixe sed -i -e "s/'.*'/'$HUBBLE_VERSION_ENV'/g" /hubble_build/hubblestack/version.py -eval "$(pyenv init -)" - +eval "$(pyenv init --path)" # locate some pyenv things pyenv_prefix="$(pyenv prefix)" python_binary="$(pyenv which python)"