Merge branch 'master' of https://atc.bmwgroup.net/bitbucket/scm/opapm/coco_apm_exportdtconfig
commit
96d0a76c63
|
|
@ -114,6 +114,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Make exporter executable') {
|
||||||
|
steps {
|
||||||
|
|
||||||
|
sh 'chmod 755 ./bin/terraform-provider-dynatrace_v1.9.1'
|
||||||
|
sh 'sudo zypper refresh'
|
||||||
|
|
||||||
|
sh 'chmod 755 ./updatepython.sh'
|
||||||
|
sh './updatepython.sh'
|
||||||
|
|
||||||
|
//Only required once CN is not reachable from EMEA
|
||||||
|
//loopEnvironments(environments)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
stage('Execute Export Script TERRAFORM') {
|
stage('Execute Export Script TERRAFORM') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
# !/bin/bash
|
||||||
|
|
||||||
|
# Step 1. Install pyenv
|
||||||
|
|
||||||
|
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
||||||
|
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
|
||||||
|
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
|
||||||
|
source ~/.bashrc
|
||||||
|
|
||||||
|
# Step 2. Install missing headers for all the Python modules to be built and make sure gcc is installed
|
||||||
|
|
||||||
|
#sudo zypper install -y readline-devel sqlite3-devel libbz2-devel zlib-devel libopenssl-devel libffi-devel gcc
|
||||||
|
|
||||||
|
# Step 3. Install the desired Python version
|
||||||
|
|
||||||
|
#pyenv install 3.7.4
|
||||||
|
|
||||||
|
# Step 4. Install virtualenv
|
||||||
|
|
||||||
|
#sudo zypper install -y python3-virtualenv
|
||||||
|
pip3 install --user virtualenv
|
||||||
|
# Step 5. Create a virtual environment for the installed Python and activate it
|
||||||
|
|
||||||
|
#mkdir ~/pythons
|
||||||
|
#cd ~/pythons
|
||||||
|
virtualenv -p ~/.pyenv/versions/3.7.4/bin/python3.7 python3.7.4
|
||||||
|
source ./python3.7.4/bin/activate
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
# !/bin/bash
|
||||||
|
|
||||||
|
# Step 1. Install pyenv
|
||||||
|
|
||||||
|
sudo zypper refresh
|
||||||
|
sudo zypper update -y
|
||||||
|
sudo zypper install -y python38
|
||||||
|
#sudo zypper install -y readline-devel sqlite3-devel libbz2-devel zlib-devel libopenssl-devel libffi-devel gcc make
|
||||||
|
#cd /tmp
|
||||||
|
#wget https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tgz
|
||||||
|
#tar -xvf Python-3.8.7.tgz
|
||||||
|
#cd Python-3.8.7/
|
||||||
|
|
||||||
|
#./configure
|
||||||
|
#make
|
||||||
|
#make install
|
||||||
|
|
||||||
|
#echo ‘export PATH=”$PATH/root/Python-3.8.7/”’>> ~/.bashrc
|
||||||
|
#source ~/.bashrc
|
||||||
|
|
||||||
|
python3 --version
|
||||||
|
python38 --version
|
||||||
|
# Step 3. Install the desired Python version
|
||||||
|
|
||||||
|
#pyenv install 3.7.4
|
||||||
|
|
||||||
|
# Step 4. Install virtualenv
|
||||||
|
|
||||||
|
#sudo zypper install -y python3-virtualenv
|
||||||
Loading…
Reference in New Issue