devcloudcli
Advanced tools
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the ansible is present in the system | ||
| if [[ $(which ansible) && $(ansible --version) ]]; then | ||
| echo -e "\e[1;36mansible is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling ansible.....This will take few mins...\e[0m" | ||
| sudo apt-get update -y | ||
| sudo apt-get install software-properties-common -y | ||
| sudo add-apt-repository --yes --update ppa:ansible/ansible -y | ||
| sudo apt install ansible -y | ||
| #Checking if the ansible is installed successfully | ||
| if [[ $(which ansible) && $(ansible --version) ]]; then | ||
| ansible_version=$(ansible --version | grep ansible | awk '{print $3}') | ||
| echo -e "\e[1;32mSuceessfully installed Ansible : $ansible_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the ansible is installed in the system | ||
| if ! [[ $(which ansible) && $(ansible --version) ]]; then | ||
| echo -e "\e[1;36mansible is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling ansible | ||
| echo -e "\e[1;33mUninstalling ansible....Please wait....\e[0m" | ||
| sudo apt-get purge ansible -y | ||
| sudo apt autoremove ansible -y | ||
| if ! [[ $(which ansible) && $(ansible --version) ]]; then | ||
| echo -e "\e[1;32mansible uninstalled successfully\e[0m" | ||
| fi | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the chef is present in the system | ||
| if [[ $(which chef) && $(chef --version) ]]; then | ||
| echo -e "\e[1;36mchef is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling chef.....This will take few mins...\e[0m" | ||
| sudo apt update -y | ||
| wget https://packages.chef.io/files/stable/chef-workstation/21.10.640/ubuntu/20.04/chef-workstation_21.10.640-1_amd64.deb | ||
| sudo dpkg -i chef-workstation_21.10.640-1_amd64.deb | ||
| #Checking if the chef is installed successfully | ||
| if [[ $(which chef) && $(chef --version) ]]; then | ||
| chef_version=$(chef --v) | ||
| echo -e "\e[1;32mSucessfully installed Chef : $chef_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the chef is installed in the system | ||
| if ! [[ $(which chef) && $(chef --version) ]]; then | ||
| echo -e "\e[1;36mchef is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling chef | ||
| echo -e "\e[1;33mUninstalling chef....Please wait....\e[0m" | ||
| sudo dpkg -P chef-workstation | ||
| sudo rm -rf chef-workstation_21.10.640-1_amd64.deb | ||
| if ! [[ $(which chef) && $(chef --version) ]]; then | ||
| echo -e "\e[1;32mchef uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the puppet is present in the system | ||
| if [[ $(which puppet) && $(puppet --version) ]]; then | ||
| echo -e "\e[1;36mpuppet is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling puppet.....This will take few mins...\e[0m" | ||
| echo -e "\e[1;32mBefore starting installation update /etc/hosts file with puppetmaster ip and puppet client ip's..\e[0m" | ||
| sudo apt-get update -y | ||
| sudo curl -O https://apt.puppetlabs.com/puppet7-release-bionic.deb | ||
| sudo dpkg -i puppet7-release-bionic.deb | ||
| sudo apt-get update -y | ||
| sudo apt-get install puppetserver -y | ||
| sudo systemctl enable puppetserver.service | ||
| sudo systemctl start puppetserver.service | ||
| sudo apt policy puppetserver | ||
| sudo cp /opt/puppetlabs/bin/puppet /usr/bin/ -v | ||
| sudo cp /opt/puppetlabs/puppet/bin/gem /usr/bin/ -v | ||
| #Checking if the puppet is installed successfully | ||
| if [[ $(which puppet) && $(puppet --version) ]]; then | ||
| puppet_version=$(puppet --version) | ||
| echo -e "\e[1;32mSuceessfully installed Puppet : $puppet_version \e[0m" | ||
| echo -e "\e[1;33mAfter puppetserver installed successfully then run these commands on puppetclient servers\e[0m" | ||
| echo -e "\e[1;36msudo curl -O https://apt.puppetlabs.com/puppet7-release-bionic.deb\e[0m" | ||
| echo -e "\e[1;32msudo dpkg -i puppet7-release-bionic.deb\e[0m" | ||
| echo -e "\e[1;33msudo apt-get update -y\e[0m" | ||
| echo -e "\e[1;36msudo apt-get install puppet-agent -y\e[0m" | ||
| echo -e "\e[1;32mAdd the following lines to the end of the Puppet configuration file to define the Puppet master information--->"sudo nano /etc/puppetlabs/puppet/puppet.conf"\e[0m" | ||
| echo "[main] | ||
| certname = puppetclient | ||
| server = puppetmaster" | ||
| echo -e "\e[1;36msudo systemctl start puppet\e[0m" | ||
| echo -e "\e[1;33msudo systemctl enable puppet\e[0m" | ||
| echo -e "\e[1;32msudo /opt/puppetlabs/bin/puppetserver ca list --all\e[0m" | ||
| echo -e "\e[1;36msudo /opt/puppetlabs/bin/puppetserver ca sign --all\e[0m" | ||
| echo -e "\e[1;33msudo /opt/puppetlabs/bin/puppet agent --test\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the puppet is installed in the system | ||
| if ! [[ $(which puppet) && $(puppet --version) ]]; then | ||
| echo -e "\e[1;36mpuppet is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling puppet | ||
| echo -e "\e[1;33mUninstalling puppet....Please wait....\e[0m" | ||
| sudo apt-get remove puppetserver -y | ||
| sudo apt-get remove --auto-remove puppetserver -y | ||
| sudo apt-get purge puppetserver -y | ||
| sudo apt-get purge --auto-remove puppetserver -y | ||
| sudo rm -rf /usr/bin/puppet | ||
| sudo rm -rf puppet7-release-bionic.deb | ||
| if ! [[ $(which puppet) && $(puppet --version) ]]; then | ||
| echo -e "\e[1;32mpuppet uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the atom is present in the system | ||
| if [[ $(which atom) && $(atom --version) ]]; then | ||
| echo -e "\e[1;36matom is already installed in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling atom.....This will take few mins...\e[0m" | ||
| echo 'intel123' | sudo apt update | ||
| sudo apt install software-properties-common apt-transport-https wget | ||
| wget -q https://packagecloud.io/AtomEditor/atom/gpgkey -O- | sudo apt-key add - | ||
| sudo add-apt-repository "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" | ||
| sudo apt install atom | ||
| #Checking if the atom is installed successfully | ||
| if [[ $(which atom) && $(atom --version) ]]; then | ||
| atom_version=$(atom --version | grep Atom | awk '{print $3}') | ||
| echo -e "\e[1;32mSuceessfully installed Atom : $atom_version \e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://www.codecademy.com/article/f1-text-editors\e[0m" | ||
| fi | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the atom is installed in the system | ||
| if ! [[ $(which atom) && $(atom --version) ]]; then | ||
| echo -e "\e[1;36matom is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling atom | ||
| echo -e "\e[1;33mUninstalling atom....Please wait....\e[0m" | ||
| echo 'intel123' | sudo apt purge atom -y | ||
| sudo apt remove atom | ||
| sudo rm /usr/local/bin/atom | ||
| sudo rm /usr/local/bin/apm | ||
| rm -rf ~/atom | ||
| rm -rf ~/.atom | ||
| rm -rf ~/.config/Atom-Shell | ||
| sudo rm -rf /usr/local/share/atom/ | ||
| if ! [[ $(which atom) && $(atom --version) ]]; then | ||
| echo -e "\e[1;32matom uninstalled successfully\e[0m" | ||
| fi | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if jupyter notebook is installed in the system | ||
| if [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| notebook_version=$(jupyter-notebook --version) | ||
| echo -e "\e[1;36mjupyter notebook : $notebook_version is already installed in the system\e[0m" | ||
| else | ||
| #Installing jupyter notebook | ||
| echo -e "\e[1;33mInstalling jupyter notebook....This might take few mins\e[0m" | ||
| echo 'intel123' | sudo -S apt-get update | ||
| sudo apt-get install jupyter-notebook -y | ||
| #Checking if jupyter notebook is installed | ||
| if [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| notebook_version=$(jupyter-notebook --version) | ||
| echo -e "\e[1;32mjupyter notebook : $notebook_version is successfully installed\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if jupyter notebook is present in the system | ||
| if ! [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| echo -e "\e[1;36mjupyter notebook is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling jupyter notebook | ||
| echo -e "\e[1;33mUninstalling jupyter notebook...Please wait...\e[0m" | ||
| echo 'intel123' | sudo -S apt remove jupyter-notebook -y | ||
| sudo apt autoclean && sudo apt autoremove -y | ||
| #Checking if jupyter notebook uninstalled | ||
| if ! [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| echo -e "\e[1;32mUninstalled jupyter notebook\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if notepad++ is installed in the system | ||
| if [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| notepad_version=$(snap list | awk '/notepad-plus-plus/ {print $2}') | ||
| echo -e "\e[1;36mnotepad++ : $notepad_version is already installed in the system\e[0m" | ||
| else | ||
| #Installing notepad++ | ||
| echo -e "\e[1;33mInstalling notepad++....This might take few mins....\e[0m" | ||
| echo 'intel123' | sudo -S apt-get install snapd snapd-xdg-open | ||
| sudo snap install notepad-plus-plus | ||
| #Checking if the notepad++ is installed | ||
| if [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| notepad_version=$(snap list | awk '/notepad-plus-plus/ {print $2}') | ||
| echo -e "\e[1;32mSuccessfully installed notepad-plus-plus : $notepad_version\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://npp-user-manual.org/docs/getting-started/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the notepad-plus-plus is installed in the system | ||
| if ! [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| echo -e "\e[1;36mnotepad++ is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling notepad++ | ||
| echo -e "\e[1;33mUninstalling notepad++....Please wait....\e[0m" | ||
| echo 'intel123' | sudo -S snap disable notepad-plus-plus | ||
| sudo snap remove notepad-plus-plus | ||
| #Checking if notepad++ uninstalled | ||
| if ! [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| echo -e "\e[1;32mnotepad++ uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the Sublime-Text is present in the system | ||
| if [[ $(which subl) && $(subl --version) ]]; then | ||
| subl_version=$(subl --version) | ||
| echo -e "\e[1;36m$subl_version is already installed in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling Sublime-Text.....This might take few mins...\e[0m" | ||
| echo "intel123" | sudo apt update | ||
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | ||
| curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | ||
| sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/" | ||
| sudo apt update | ||
| sudo apt install sublime-text | ||
| #Checking if the Sublime-Text is installed successfully | ||
| if [[ $(which subl) && $(subl --version) ]]; then | ||
| subl_version=$(subl --version) | ||
| echo -e "\e[1;32mSucessfully installed $subl_version \e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://www.loginradius.com/blog/engineering/beginners-guide-for-sublime-text/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the Sublime-Text is installed in the system | ||
| if ! [[ $(which subl) && $(subl --version) ]]; then | ||
| echo -e "\e[1;36mSublime-Text is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling Sublime-Text | ||
| echo -e "\e[1;33mUninstalling Sublime-Text....Please wait....\e[0m" | ||
| echo 'intel123' | sudo -S apt-get purge sublime-text -y | ||
| sudo apt-get remove sublime-text | ||
| if ! [[ $(which subl) && $(subl --version) ]]; then | ||
| echo -e "\e[1;32mSublime-Text uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the vscode is already present in the system | ||
| if [[ $(which code) && $(code --version) ]]; then | ||
| code_version=$(code --version | head -n 1) | ||
| echo -e "\e[1;36mvscode : $code_version is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling Vscode....This might take few mins....\e[0m" | ||
| echo 'intel123' | sudo apt-get update | ||
| wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | ||
| sudo chmod +x packages.microsoft.gpg | ||
| sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | ||
| sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | ||
| sudo rm -f packages.microsoft.gpg | ||
| sudo apt-get install apt-transport-https | ||
| sudo apt-get update | ||
| sudo apt-get install code | ||
| #Checking if the vscode installed suceessfully or not | ||
| if [[ $(which code) && $(code --version) ]]; then | ||
| code_version=$(code --version | head -n 1) | ||
| echo -e "\e[1;32mSuccessfully installed vscode : $code_version \e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://code.visualstudio.com/docs/introvideos/basics\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the vscode is installed in the system | ||
| if ! [[ $(which code) && $(code --version) ]]; then | ||
| echo -e "\e[1;36mvscode is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling vscode | ||
| code_version=$(code --version | head -n 1) | ||
| echo -e "\e[1;33mUninstalling vscode $code_version\e[0m" | ||
| echo 'intel123' | sudo apt-get remove code -y | ||
| sudo rm -rf $HOME/.config/Code | ||
| sudo rm -rf ~/.vscode | ||
| #Checking if the vscode is uninstalled | ||
| if ! [[ $(which code) && $(code --version) ]]; then | ||
| echo -e "\e[1;32mvscode : $code_version is uninstalled\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the containerd is installed | ||
| #Installing Containerd | ||
| echo -e "\e[1;33mInstalling Conatinerd... This might take few mins...\e[0m" | ||
| wget https://github.com/containerd/containerd/releases/download/v1.6.4/containerd-1.6.4-linux-amd64.tar.gz | ||
| echo "intel123" | sudo -S tar Czxvf /usr/local containerd-1.6.4-linux-amd64.tar.gz | ||
| #Downloading the systemd service file and setting it up so that the service can be managed via systemd | ||
| wget https://raw.githubusercontent.com/containerd/containerd/main/containerd.service | ||
| sudo mv containerd.service /usr/lib/systemd/system/ | ||
| #Strating the containerd service | ||
| echo -e "\e[1;35mStrating the containerd service...\e[0m" | ||
| sudo systemctl daemon-reload | ||
| sudo systemctl enable --now containerd | ||
| #Installing runc | ||
| echo -e "\e[1;33mInstalling runc...\e[0m" | ||
| wget https://github.com/opencontainers/runc/releases/download/v1.1.1/runc.amd64 | ||
| sudo install -m 755 runc.amd64 /usr/local/sbin/runc | ||
| #Containerd configuration for Kubernetes | ||
| echo -e "\e[1;35mContainerd configuration for Kubernetes...\e[0m" | ||
| sudo mkdir -p /etc/containerd/ | ||
| containerd config default | sudo tee /etc/containerd/config.toml | ||
| sudo sed -i 's/SystemdCgroup \= false/SystemdCgroup \= true/g' /etc/containerd/config.toml | ||
| #Restarting the containerd service | ||
| sudo systemctl restart containerd | ||
| #Installing CNI Plugins For Containerd | ||
| echo -e "\e[1;33mInstalling CNI Plugins For Containerd...\e[0m" | ||
| sudo mkdir -p /opt/cni/bin/ | ||
| sudo wget https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-amd64-v1.1.1.tgz | ||
| sudo tar Cxzvf /opt/cni/bin cni-plugins-linux-amd64-v1.1.1.tgz | ||
| #Restarting the containerd service | ||
| sudo systemctl restart containerd | ||
| echo -e "\e[1;32mContainerd service is up and running...\e[0m" | ||
| if [[ $(containerd --version) ]]; then | ||
| containerd_version=$(containerd --version | awk '{print $3}') | ||
| echo -e "\e[1;32mContainerd : $containerd_version is installed\e[0m" | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mInstalling CRI-O...This might take few mins....\e[0m" | ||
| echo -e "\e[1;35mSetting up CRI-O Repository...\e[0m" | ||
| sudo apt update | ||
| sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | ||
| echo -e "\e[1;36mChecking OS_VERSION...\e[0m" | ||
| OS_VERSION=$( . /etc/os-release ; echo $VERSION_ID) | ||
| echo -e "\e[1;36mSystem OS : $OS_VERSION\e[0m" | ||
| if [[ $OS_VERSION == "18.04" ]]; then | ||
| export OS_VERSION=xUbuntu_18.04 | ||
| else | ||
| export OS_VERSION=xUbuntu_20.04 | ||
| fi | ||
| export CRIO_VERSION=1.23 | ||
| curl -fsSL https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS_VERSION/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpg | ||
| curl -fsSL https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$CRIO_VERSION/$OS_VERSION/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/libcontainers-crio-archive-keyring.gpg | ||
| echo "deb [signed-by=/usr/share/keyrings/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS_VERSION/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list | ||
| echo "deb [signed-by=/usr/share/keyrings/libcontainers-crio-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$CRIO_VERSION/$OS_VERSION/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$CRIO_VERSION.list | ||
| echo -e "\e[1;35mInstalling CRI-O components...\e[0m" | ||
| sudo apt update | ||
| sudo apt install -y cri-o cri-o-runc | ||
| echo -e "\e[1;35mStarting and enabling CRI-O Service...\e[0m" | ||
| sudo systemctl daemon-reload | ||
| sudo systemctl enable crio | ||
| sudo systemctl start crio | ||
| echo "\e[1;35mInstalling CNI Plugins For CRI-O...\e[0m" | ||
| sudo apt install -y containernetworking-plugins | ||
| sudo systemctl restart crio | ||
| echo -e "\e[1;35mVerifying CRI-O Installation...\e[0m" | ||
| sudo apt install -y cri-tools | ||
| version_info=$(sudo crictl --runtime-endpoint unix:///var/run/crio/crio.sock version) | ||
| echo -e "\e[1;32mCRIO-O is installed\e[0m" | ||
| echo -e "\e[1;32m$version_info\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker-compose is present in the system | ||
| if [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| compose_version=$(docker-compose --version | awk {'print $3'}) | ||
| echo -e "\e[1;36mdocker-compose : $compose_version is already installed in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling docker-compose....This might take few mins....\e[0m" | ||
| echo 'intel123' | sudo apt-get update | ||
| sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
| sudo chmod +x /usr/local/bin/docker-compose | ||
| #Checking if the docker-compose installed in the system | ||
| if [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| compose_version=$(docker-compose --version | awk {'print $3'}) | ||
| echo -e "\e[1;32mSuccessfully installed docker-compose : $compose_version\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://docs.docker.com/compose/gettingstarted/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker-compose is installed in the system | ||
| if ! [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| echo -e "\e[1;36mDocker Compose is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling docker-compose | ||
| echo -e "\e[1;33mUninstalling docker-compose...Please wait...\e[0m" | ||
| echo 'intel123' | sudo rm /usr/local/bin/docker-compose | ||
| sudo apt remove docker-compose | ||
| sudo apt autoremove | ||
| #Checking if the docker-compose is uninstalled | ||
| if ! [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| echo -e "\e[1;32mUninstalled docker-compose\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker is already installed in the system | ||
| if [[ $(which docker) && $(docker --version) ]]; then | ||
| docker_version=$(docker --version | awk {'print $3'}) | ||
| echo -e "\e[1;32mDocker : $docker_version is already installed in the system\e[0m" | ||
| else | ||
| #Installing docker | ||
| echo -e "\e[1;33mInstalling docker... This might take few mins...\e[0m" | ||
| echo "intel123" | sudo -S apt-get update | ||
| sudo apt-get install -y ca-certificates curl gnupg lsb-release | ||
| sudo mkdir -p /etc/apt/keyrings | ||
| if [[ -f /etc/apt/keyrings/docker.gpg ]]; then | ||
| sudo rm /etc/apt/keyrings/docker.gpg | ||
| fi | ||
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
| echo \ | ||
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | ||
| $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
| sudo apt-get update | ||
| sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
| #Checking if the docker is installed | ||
| if [[ $(which docker) && $(docker --version) ]]; then | ||
| docker_version=$(docker --version | awk {'print $3'}) | ||
| echo -e "\e[1;32mDocker : $docker_version is installed\e[0m" | ||
| fi | ||
| fi | ||
| #configuring the proxy | ||
| if [[ (-f /etc/systemd/system/docker.service.d/proxy.conf) || ((-f /etc/systemd/system/docker.service.d/http-proxy.conf) && (-f /etc/systemd/system/docker.service.d/https-proxy.conf)) ]]; then | ||
| echo -e "\e[1;32mProxy already configured in the system\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://docs.docker.com/get-started/\e[0m" | ||
| else | ||
| echo -e "\e[1;33mConfiguring the proxy\e[0m" | ||
| export DKR_PROXY='"HTTP_PROXY=http://proxy-chain.intel.com:911/" "HTTPS_PROXY=http://proxy-chain.intel.com:911/" "NO_PROXY=127.0.0.1,127.0.1.1,localhost,.intel.com"' | ||
| sudo mkdir -p /etc/systemd/system/docker.service.d | ||
| sudo chmod 755 /etc/systemd/system/docker.service.d | ||
| sudo touch /etc/systemd/system/docker.service.d/proxy.conf | ||
| sudo chmod 777 /etc/systemd/system/docker.service.d/proxy.conf | ||
| echo -e "[Service]\nEnvironment=$DKR_PROXY" > /etc/systemd/system/docker.service.d/proxy.conf | ||
| if [[ (-f /etc/systemd/system/docker.service.d/proxy.conf) ]]; then | ||
| env | grep -i proxy | ||
| echo -e "\e[1;32mproxy configured successfully in the system\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://docs.docker.com/get-started/\e[0m" | ||
| fi | ||
| echo "intel123" | sudo systemctl daemon-reload | ||
| sudo systemctl restart docker | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker is installed | ||
| if ! [[ $(which docker) && $(docker --version) ]]; then | ||
| echo -e "\e[1;36mDocker is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling the docker | ||
| echo -e "\e[1;33mUninstalling docker... This might take few mins...\e[0m" | ||
| echo "intel123" | sudo -S systemctl stop docker.socket | ||
| sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli | ||
| sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce | ||
| #sudo rm /etc/apt/keyrings/docker.gpg | ||
| sudo rm -rf /var/lib/docker /etc/docker | ||
| if [[ -f /etc/apparmor.d/docker ]]; then | ||
| sudo rm /etc/apparmor.d/docker | ||
| fi | ||
| sudo groupdel docker | ||
| sudo rm -rf /var/run/docker.sock | ||
| #Checking if the docker is uninstalled | ||
| if ! [[ $(which docker) && $(docker --version) ]]; then | ||
| echo -e "\e[1;32mDocker uninstalled Successfully\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;32mwork in progress \e[0m" | ||
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;32mwork in progress \e[0m" |
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;32mwork in progress \e[0m" | ||
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;32mwork in progress \e[0m" |
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # Creating a symbolic link | ||
| #checking git | ||
| if [[ $(which git) && $(git --version) ]]; then | ||
| echo -e "\e[1;36m\ngit installed in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;36m\nInstalling git....\e[0m" | ||
| sudo apt-get install git -y | ||
| fi | ||
| echo -e "\e[1;32m\nLogin to the 'github.com' with your credentials:\e[0m" | ||
| echo -e "\e[1;32m*****************************************************\e[0m" | ||
| echo -e "\e[1;34m\nFollow the below url to create workflows in github-actions: \e[0m" | ||
| echo -e "\e[1;34mhttps://github.com/features/actions\e[0m" |
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;32mwork in progress \e[0m" | ||
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;32mwork in progress \e[0m" |
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| sudo apt-get update -y | ||
| sudo apt-get install curl | ||
| echo -e "\e[1;32mInstalling curl.... \e[0m" | ||
| sudo apt-get install apt-transport-https | ||
| #installing docker | ||
| if [[ $(which docker) && $(docker --version) ]]; then | ||
| echo -e "\e[1;36mDockerce is present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;36mInstall docker from devtool\e[0m" | ||
| fi | ||
| # Adding docker group | ||
| #sudo usermod -aG docker $USER && newgrp docker | ||
| #installing minikube | ||
| sudo ufw allow 8001 | ||
| sudo ufw allow 8001/tcp | ||
| if [[ $(which minikube) && $(minikube version) ]]; then | ||
| echo "minikube is present in the system" | ||
| else | ||
| echo -e "\e[1;32mInstalling minikube..... \e[0m" | ||
| curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | ||
| sudo install minikube-linux-amd64 /usr/local/bin/minikube | ||
| echo -e "\e[1;32mInstalling kubectl..... \e[0m" | ||
| curl -LO https://dl.k8s.io/release/v1.24.0/bin/linux/amd64/kubectl | ||
| sudo chmod +x ./kubectl | ||
| sudo mv ./kubectl /usr/local/bin/kubectl | ||
| echo -e "\e[1;32mInstallation of minikube and kubectl completed\e[0m" | ||
| fi | ||
| export NO_PROXY=$no_proxy,$(minikube ip) | ||
| #starting minikube along kubernetes dashboard | ||
| minikube start --driver=docker | ||
| export NO_PROXY=$no_proxy,$(minikube ip) | ||
| echo -e "\e[1;32mminikube started\e[0m" | ||
| #installing tekon-pipelines | ||
| if [ $(kubectl get pods --namespace tekton-pipeline) ]; then | ||
| echo -e "\e[1;36mtekton-pipeline is installed and running.......\e[0m" | ||
| else | ||
| echo -e "\e[1;36mInstalling tekton-pipeline..............\e[0m" | ||
| kubectl apply --filename \ | ||
| https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml | ||
| echo -e "\e[1;32mInstalled tekton-pipelines successfully\e[0m" | ||
| echo -e "\e[1;32m*****************************************************************\e[0m" | ||
| echo -e "\e[1;33mkindly refer below link for reference on building tekton-pipeline:\e[0m" | ||
| echo -e "\e[1;33mhttps://tekton.dev/\e[0m" | ||
| fi | ||
| #!/bin/bash | ||
| # Copyright (C) 2018-2021 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| #minikube stop | ||
| minikube delete --all | ||
| sudo rm -rf minikube-linux-amd64 | ||
| sudo rm -rf /usr/local/bin/kubectl | ||
| sudo rm -rf /usr/local/bin/minikube | ||
| echo -e "\e[1;32m********************************************************* \e[0m" | ||
| echo -e "\e[1;32mminikube,kubectl and tekton-pipeline is removed completely \e[0m" | ||
| echo "Work in Progress" |
| echo "Work in Progress" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the pulumi is present in the system | ||
| if [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| echo -e "\e[1;36mPulumi is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling pulumi.....This will take few mins...\e[0m" | ||
| sudo apt update -y | ||
| curl -fsSL https://get.pulumi.com | sh | ||
| export PATH="$PATH:$PWD/.pulumi/bin" | ||
| #Checking if the pulumi is installed successfully | ||
| if [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| pulumi_version=$(pulumi version) | ||
| echo -e "\e[1;32mSucessfully installed Pulumi : $pulumi_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the pulumi is installed in the system | ||
| if ! [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| echo -e "\e[1;36mPulumi is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling Pulumi | ||
| echo -e "\e[1;33mUninstalling Pulumi....Please wait....\e[0m" | ||
| sudo rm -rf /home/intel/.pulumi/ | ||
| if ! [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| echo -e "\e[1;32mPulumi uninstalled successfully\e[0m" | ||
| fi | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the terraform is present in the system | ||
| if [[ $(which terraform) && $(terraform --version) ]]; then | ||
| echo -e "\e[1;36mTerraform is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling terraform.....This will take few mins...\e[0m" | ||
| sudo apt update -y | ||
| wget https://releases.hashicorp.com/terraform/1.2.8/terraform_1.2.8_linux_amd64.zip | ||
| unzip terraform_1.2.8_linux_amd64.zip | ||
| sudo mv terraform /usr/local/bin | ||
| rm terraform_1.2.8_linux_amd64.zip | ||
| #Checking if the terraform is installed successfully | ||
| if [[ $(which terraform) && $(terraform --version) ]]; then | ||
| terraform_version=$(terraform --version) | ||
| echo -e "\e[1;32mSucessfully installed Terraform : $terraform_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the terraform is installed in the system | ||
| if ! [[ $(which terraform) && $(terraform --version) ]]; then | ||
| echo -e "\e[1;36mTerraform is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling Terraform | ||
| echo -e "\e[1;33mUninstalling Terraform....Please wait....\e[0m" | ||
| sudo apt remove terraform -y | ||
| sudo rm -rf /usr/bin/terraform | ||
| sudo rm -rf /usr/local/bin/terraform | ||
| if ! [[ $(which terraform) && $(terraform --version) ]]; then | ||
| echo -e "\e[1;32mTerraform uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| Metadata-Version: 2.1 | ||
| Name: devcloudcli | ||
| Version: 1.4.1 | ||
| Version: 1.4.2 | ||
| Summary: AN Interactive CLI for Intel DevCloud Bench | ||
@@ -5,0 +5,0 @@ Home-page: UNKNOWN |
@@ -83,36 +83,2 @@ LICENSE.txt | ||
| dc_cli/src/scripts/app-services/system-telemetry/configs/influxdb/types.db | ||
| dc_cli/src/scripts/cloud-native-tools/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/ansible/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/ansible/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/ansible/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/chef/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/chef/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/chef/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/puppet/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/puppet/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/automation-tools/puppet/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/cd-tools/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/cd-tools/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/cd-tools/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/ci-tools/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/ci-tools/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/ci-tools/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/cross-plane/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/cross-plane/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/cross-plane/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/pulumi/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/pulumi/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/pulumi/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/terraform/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/terraform/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/iac-tools/terraform/uninstall.sh | ||
| dc_cli/src/scripts/cloud-native-tools/observability-tools/__init__.py | ||
| dc_cli/src/scripts/cloud-native-tools/observability-tools/install.sh | ||
| dc_cli/src/scripts/cloud-native-tools/observability-tools/uninstall.sh | ||
| dc_cli/src/scripts/data-sources/__init__.py | ||
@@ -135,35 +101,71 @@ dc_cli/src/scripts/data-sources/videos/__init__.py | ||
| dc_cli/src/scripts/dataset-services/synthetic/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/atom/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/atom/install.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/atom/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-lab/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-lab/install.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-lab/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-notebook/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-notebook/install.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-notebook/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/notepad++/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/notepad++/install.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/notepad++/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/sublime-text/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/sublime-text/install.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/sublime-text/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/vscode/__init__.py | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/vscode/install.sh | ||
| dc_cli/src/scripts/dev-tools/code-editor-tools/vscode/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/__init__.py | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/containerd/__init__.py | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/containerd/install.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/containerd/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/cri-o/__init__.py | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/cri-o/install.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/cri-o/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/docker/__init__.py | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/docker/install.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/docker/uninstall.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/docker-compose/__init__.py | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/docker-compose/install.sh | ||
| dc_cli/src/scripts/dev-tools/container-runtimes/docker-compose/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/__init__.py | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/__init__.py | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/ansible/__init__.py | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/ansible/install.sh | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/ansible/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/chef/__init__.py | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/chef/install.sh | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/chef/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/puppet/__init__.py | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/puppet/install.sh | ||
| dc_cli/src/scripts/developer-tools/automation-and-configuration/puppet/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/__init__.py | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/atom/__init__.py | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/atom/install.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/atom/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-lab/__init__.py | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-lab/install.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-lab/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-notebook/__init__.py | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-notebook/install.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-notebook/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/notepad++/__init__.py | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/notepad++/install.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/notepad++/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/sublime-text/__init__.py | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/sublime-text/install.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/sublime-text/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/vscode/__init__.py | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/vscode/install.sh | ||
| dc_cli/src/scripts/developer-tools/code-editor-tools/vscode/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/__init__.py | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/containerd/__init__.py | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/containerd/install.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/containerd/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/cri-o/__init__.py | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/cri-o/install.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/cri-o/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/docker/__init__.py | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/docker/install.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/docker/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/docker-compose/__init__.py | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/docker-compose/install.sh | ||
| dc_cli/src/scripts/developer-tools/container-runtimes/docker-compose/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/continous-deployment/__init__.py | ||
| dc_cli/src/scripts/developer-tools/continous-deployment/argocd/__init__.py | ||
| dc_cli/src/scripts/developer-tools/continous-deployment/argocd/install.sh | ||
| dc_cli/src/scripts/developer-tools/continous-deployment/argocd/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/continous-deployment/jenkins-X/__init__.py | ||
| dc_cli/src/scripts/developer-tools/continous-deployment/jenkins-X/install.sh | ||
| dc_cli/src/scripts/developer-tools/continous-deployment/jenkins-X/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/continous-integration/__init__.py | ||
| dc_cli/src/scripts/developer-tools/continous-integration/github-actions/__init__.py | ||
| dc_cli/src/scripts/developer-tools/continous-integration/github-actions/install.sh | ||
| dc_cli/src/scripts/developer-tools/continous-integration/jenkins/__init__.py | ||
| dc_cli/src/scripts/developer-tools/continous-integration/jenkins/install.sh | ||
| dc_cli/src/scripts/developer-tools/continous-integration/jenkins/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/continous-integration/tekton/__init__.py | ||
| dc_cli/src/scripts/developer-tools/continous-integration/tekton/install.sh | ||
| dc_cli/src/scripts/developer-tools/continous-integration/tekton/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/__init__.py | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/cross-plane/__init__.py | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/cross-plane/install.sh | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/cross-plane/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/pulumi/__init__.py | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/pulumi/install.sh | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/pulumi/uninstall.sh | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/terraform/__init__.py | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/terraform/install.sh | ||
| dc_cli/src/scripts/developer-tools/infrastructure-as-code/terraform/uninstall.sh | ||
| dc_cli/src/scripts/dl-model-services/__init__.py | ||
@@ -170,0 +172,0 @@ dc_cli/src/scripts/dl-model-services/dl-model-tools/__init__.py |
+10
-9
@@ -26,6 +26,6 @@ # Copyright (C) 2018-2021 Intel Corporation | ||
| DC_TOOLS = [ 'system-tools', 'dev-tools', 'app-services','dataset-services','dl-model-services','dl-model-training-services', | ||
| DC_TOOLS = [ 'system-tools','app-services','dataset-services','dl-model-services','dl-model-training-services', | ||
| 'dlstreamer-pipeline-services','edge-deployment-services','edge-inference-app-services', | ||
| 'edge-to-cloud-app-services','k8s-services','intel-dev-tools','oneapi-toolkits','one-edge-building-blocks', | ||
| 'cloud-native-tools'] | ||
| 'developer-tools'] | ||
| DC_COMMANDS = ['install', 'uninstall'] | ||
@@ -37,6 +37,6 @@ DC_COMMANDS_WE = ['install', 'uninstall', 'enable', 'disable'] | ||
| "system-tools":['sftp', 'ssh', 'vnc', 'no-machine','vim'], | ||
| "dev-tools":['code-editor-tools','container-runtimes'], | ||
| "developer-tools":['code-editor-tools','container-runtimes','automation-and-configuration','infrastructure-as-code','continous-integration','continous-deployment'], | ||
| "app-services":['system-telemetry','cluster-telemetry','docker-telemetry','log-analytics'], | ||
| "dataset-services":['intel','partner','public','synthetic'], | ||
| "dl-model-services":['dl-model-tools', 'inference-runtimes','featured-dl-models'], | ||
| "dl-model-services":['dl-model-tools', 'inference-runtimes','featured-dl-models','openvino-samples-and-demos'], | ||
| "dl-model-training-services":['data-engineering-tools', 'datasets', 'model-zoo', 'training-frameworks','ai-reference-kits'], | ||
@@ -47,7 +47,6 @@ "dlstreamer-pipeline-services":['audio-pipelines','dlstreamer-tools','multi-sensory-pipelines','video-pipelines'], | ||
| "edge-to-cloud-app-services":['seo-samples','seo-reference-implementations','seo-3rd-party-applications'], | ||
| "k8s-services":['aether','kind','kubespray','microk8s','kubeadm','minikube','openshift','rancher-k3s','rancher-rke2','smart-edge-open','starlingx','tanzu'], | ||
| "k8s-services":['aether','kind','microk8s','kubeadm','minikube','rancher-k3s','rancher-rke2'], | ||
| "intel-dev-tools":['intel-auto-deploy','intel-auto-test','intel-code-scans','mgt-console'], | ||
| "oneapi-toolkits":['ai-analytics-toolkit','base-toolkit','intel-vtune','iot-toolkit','scikit-learn','xgboost'], | ||
| "one-edge-building-blocks":['csp-services','inference-services','observability-services'], | ||
| "cloud-native-tools" :['automation-tools','cd-tools','ci-tools','iac-tools','observability-tools'] | ||
| "one-edge-building-blocks":['csp-services','inference-services','observability-services'] | ||
| } | ||
@@ -86,4 +85,6 @@ | ||
| "observability-services":['system-telemetry','cluster-telemetry','docker-telemetry','log-analytics'], | ||
| "automation-tools":['ansible','chef','puppet'], | ||
| "iac-tools":['terraform','pulumi','cross-plane'] | ||
| "automation-and-configuration":['ansible','chef','puppet'], | ||
| "infrastructure-as-code":['terraform','pulumi','cross-plane'], | ||
| "continous-integration":['github-actions','tekton','jenkins'], | ||
| "continous-deployment":['jenkins-X','argocd'] | ||
@@ -90,0 +91,0 @@ } |
@@ -11,2 +11,3 @@ #!/bin/bash | ||
| sudo apt-get install curl | ||
| fi | ||
@@ -29,2 +30,3 @@ #installation of Aiab | ||
| make roc-5g-models | ||
| helm -n aether-roc upgrade aether-roc-umbrella aether/aether-roc-umbrella | ||
| echo -e "\e[1;33mAether-In-a-Box is successfully installed and dashboard can be accessed from http://"$HOST_IP":31194\e[0m" |
@@ -16,3 +16,3 @@ #!/bin/bash | ||
| echo | ||
| sudo curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL=v1.20 sudo sh - | ||
| curl -sfL https://get.rke2.io | sudo INSTALL_RKE2_VERSION=v1.23.4+rke2r1 sh - | ||
| sudo cp /etc/environment /etc/default/rke2-server | ||
@@ -19,0 +19,0 @@ sudo cp /etc/environment /etc/default/rke2-agent |
+22
-25
@@ -16,8 +16,3 @@ include dc_cli/src/scripts/system-tools/vim/*.sh | ||
| include dc_cli/src/scripts/k8s-services/rancher-k3s/*.yml | ||
| include dc_cli/src/scripts/k8s-services/kubespray/*.sh | ||
| include dc_cli/src/scripts/k8s-services/rancher-rke2/*.sh | ||
| include dc_cli/src/scripts/k8s-services/openshift/*.sh | ||
| include dc_cli/src/scripts/k8s-services/smart-edge-open/*.sh | ||
| include dc_cli/src/scripts/k8s-services/starlingx/*. | ||
| include dc_cli/src/scripts/k8s-services/tanzu/*.sh | ||
| include dc_cli/src/scripts/k8s-services/kubeadm/*.sh | ||
@@ -150,27 +145,29 @@ include dc_cli/src/scripts/k8s-services/aether/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/cd-tools/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/ci-tools/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/iac-tools/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/observability-tools/*.sh | ||
| include dc_cli/src/scripts/developer-tools/continous-deployment/jenkins-X/*.sh | ||
| include dc_cli/src/scripts/developer-tools/continous-deployment/argocd/*.sh | ||
| include dc_cli/src/scripts/dev-tools/container-runtimes/docker/*.sh | ||
| include dc_cli/src/scripts/dev-tools/container-runtimes/docker-compose/*.sh | ||
| include dc_cli/src/scripts/dev-tools/container-runtimes/containerd/*.sh | ||
| include dc_cli/src/scripts/dev-tools/container-runtimes/cri-o/*.sh | ||
| include dc_cli/src/scripts/developer-tools/container-runtimes/docker/*.sh | ||
| include dc_cli/src/scripts/developer-tools/container-runtimes/docker-compose/*.sh | ||
| include dc_cli/src/scripts/developer-tools/container-runtimes/containerd/*.sh | ||
| include dc_cli/src/scripts/developer-tools/container-runtimes/cri-o/*.sh | ||
| include dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-lab/*.sh | ||
| include dc_cli/src/scripts/dev-tools/code-editor-tools/jupyter-notebook/*.sh | ||
| include dc_cli/src/scripts/dev-tools/code-editor-tools/notepad++/*.sh | ||
| include dc_cli/src/scripts/dev-tools/code-editor-tools/atom/*.sh | ||
| include dc_cli/src/scripts/dev-tools/code-editor-tools/sublime-text/*.sh | ||
| include dc_cli/src/scripts/dev-tools/code-editor-tools/vscode/*.sh | ||
| include dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-lab/*.sh | ||
| include dc_cli/src/scripts/developer-tools/code-editor-tools/jupyter-notebook/*.sh | ||
| include dc_cli/src/scripts/developer-tools/code-editor-tools/notepad++/*.sh | ||
| include dc_cli/src/scripts/developer-tools/code-editor-tools/atom/*.sh | ||
| include dc_cli/src/scripts/developer-tools/code-editor-tools/sublime-text/*.sh | ||
| include dc_cli/src/scripts/developer-tools/code-editor-tools/vscode/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/automation-tools/ansible/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/automation-tools/chef/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/automation-tools/puppet/*.sh | ||
| include dc_cli/src/scripts/developer-tools/automation-and-configuration/ansible/*.sh | ||
| include dc_cli/src/scripts/developer-tools/automation-and-configuration/chef/*.sh | ||
| include dc_cli/src/scripts/developer-tools/automation-and-configuration/puppet/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/iac-tools/terraform/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/iac-tools/pulumi/*.sh | ||
| include dc_cli/src/scripts/cloud-native-tools/iac-tools/cross-plane/*.sh | ||
| include dc_cli/src/scripts/developer-tools/infrastructure-as-code/terraform/*.sh | ||
| include dc_cli/src/scripts/developer-tools/infrastructure-as-code/pulumi/*.sh | ||
| include dc_cli/src/scripts/developer-tools/infrastructure-as-code/cross-plane/*.sh | ||
| include dc_cli/src/scripts/developer-tools/continous-integration/github-actions/*.sh | ||
| include dc_cli/src/scripts/developer-tools/continous-integration/tekton/*.sh | ||
| include dc_cli/src/scripts/developer-tools/continous-integration/jenkins/*.sh | ||
| include dc_cli/src/scripts/dlstreamer-pipeline-services/dlstreamer-tools/dlstreamer-pipeline-framework/*.sh | ||
@@ -177,0 +174,0 @@ include dc_cli/src/scripts/dlstreamer-pipeline-services/dlstreamer-tools/dlstreamer-pipeline-server/*.sh |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: devcloudcli | ||
| Version: 1.4.1 | ||
| Version: 1.4.2 | ||
| Summary: AN Interactive CLI for Intel DevCloud Bench | ||
@@ -5,0 +5,0 @@ Home-page: UNKNOWN |
+1
-1
@@ -16,3 +16,3 @@ from setuptools import setup,find_packages | ||
| name='devcloudcli', | ||
| version='1.4.1', | ||
| version='1.4.2', | ||
| description='AN Interactive CLI for Intel DevCloud Bench', | ||
@@ -19,0 +19,0 @@ license='Proprietary - Intel', |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the ansible is present in the system | ||
| if [[ $(which ansible) && $(ansible --version) ]]; then | ||
| echo -e "\e[1;36mansible is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling ansible.....This will take few mins...\e[0m" | ||
| sudo apt-get update -y | ||
| sudo apt-get install software-properties-common -y | ||
| sudo add-apt-repository --yes --update ppa:ansible/ansible -y | ||
| sudo apt install ansible -y | ||
| #Checking if the ansible is installed successfully | ||
| if [[ $(which ansible) && $(ansible --version) ]]; then | ||
| ansible_version=$(ansible --version | grep ansible | awk '{print $3}') | ||
| echo -e "\e[1;32mSuceessfully installed Ansible : $ansible_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the ansible is installed in the system | ||
| if ! [[ $(which ansible) && $(ansible --version) ]]; then | ||
| echo -e "\e[1;36mansible is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling ansible | ||
| echo -e "\e[1;33mUninstalling ansible....Please wait....\e[0m" | ||
| sudo apt-get purge ansible -y | ||
| sudo apt autoremove ansible -y | ||
| if ! [[ $(which ansible) && $(ansible --version) ]]; then | ||
| echo -e "\e[1;32mansible uninstalled successfully\e[0m" | ||
| fi | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the chef is present in the system | ||
| if [[ $(which chef) && $(chef --version) ]]; then | ||
| echo -e "\e[1;36mchef is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling chef.....This will take few mins...\e[0m" | ||
| sudo apt update -y | ||
| wget https://packages.chef.io/files/stable/chef-workstation/21.10.640/ubuntu/20.04/chef-workstation_21.10.640-1_amd64.deb | ||
| sudo dpkg -i chef-workstation_21.10.640-1_amd64.deb | ||
| #Checking if the chef is installed successfully | ||
| if [[ $(which chef) && $(chef --version) ]]; then | ||
| chef_version=$(chef --v) | ||
| echo -e "\e[1;32mSucessfully installed Chef : $chef_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the chef is installed in the system | ||
| if ! [[ $(which chef) && $(chef --version) ]]; then | ||
| echo -e "\e[1;36mchef is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling chef | ||
| echo -e "\e[1;33mUninstalling chef....Please wait....\e[0m" | ||
| sudo dpkg -P chef-workstation | ||
| sudo rm -rf chef-workstation_21.10.640-1_amd64.deb | ||
| if ! [[ $(which chef) && $(chef --version) ]]; then | ||
| echo -e "\e[1;32mchef uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| echo "Work in Progress" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the puppet is present in the system | ||
| if [[ $(which puppet) && $(puppet --version) ]]; then | ||
| echo -e "\e[1;36mpuppet is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling puppet.....This will take few mins...\e[0m" | ||
| echo -e "\e[1;32mBefore starting installation update /etc/hosts file with puppetmaster ip and puppet client ip's..\e[0m" | ||
| sudo apt-get update -y | ||
| sudo curl -O https://apt.puppetlabs.com/puppet7-release-bionic.deb | ||
| sudo dpkg -i puppet7-release-bionic.deb | ||
| sudo apt-get update -y | ||
| sudo apt-get install puppetserver -y | ||
| sudo systemctl enable puppetserver.service | ||
| sudo systemctl start puppetserver.service | ||
| sudo apt policy puppetserver | ||
| sudo cp /opt/puppetlabs/bin/puppet /usr/bin/ -v | ||
| sudo cp /opt/puppetlabs/puppet/bin/gem /usr/bin/ -v | ||
| #Checking if the puppet is installed successfully | ||
| if [[ $(which puppet) && $(puppet --version) ]]; then | ||
| puppet_version=$(puppet --version) | ||
| echo -e "\e[1;32mSuceessfully installed Puppet : $puppet_version \e[0m" | ||
| echo -e "\e[1;33mAfter puppetserver installed successfully then run these commands on puppetclient servers\e[0m" | ||
| echo -e "\e[1;36msudo curl -O https://apt.puppetlabs.com/puppet7-release-bionic.deb\e[0m" | ||
| echo -e "\e[1;32msudo dpkg -i puppet7-release-bionic.deb\e[0m" | ||
| echo -e "\e[1;33msudo apt-get update -y\e[0m" | ||
| echo -e "\e[1;36msudo apt-get install puppet-agent -y\e[0m" | ||
| echo -e "\e[1;32mAdd the following lines to the end of the Puppet configuration file to define the Puppet master information--->"sudo nano /etc/puppetlabs/puppet/puppet.conf"\e[0m" | ||
| echo "[main] | ||
| certname = puppetclient | ||
| server = puppetmaster" | ||
| echo -e "\e[1;36msudo systemctl start puppet\e[0m" | ||
| echo -e "\e[1;33msudo systemctl enable puppet\e[0m" | ||
| echo -e "\e[1;32msudo /opt/puppetlabs/bin/puppetserver ca list --all\e[0m" | ||
| echo -e "\e[1;36msudo /opt/puppetlabs/bin/puppetserver ca sign --all\e[0m" | ||
| echo -e "\e[1;33msudo /opt/puppetlabs/bin/puppet agent --test\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the puppet is installed in the system | ||
| if ! [[ $(which puppet) && $(puppet --version) ]]; then | ||
| echo -e "\e[1;36mpuppet is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling puppet | ||
| echo -e "\e[1;33mUninstalling puppet....Please wait....\e[0m" | ||
| sudo apt-get remove puppetserver -y | ||
| sudo apt-get remove --auto-remove puppetserver -y | ||
| sudo apt-get purge puppetserver -y | ||
| sudo apt-get purge --auto-remove puppetserver -y | ||
| sudo rm -rf /usr/bin/puppet | ||
| sudo rm -rf puppet7-release-bionic.deb | ||
| if ! [[ $(which puppet) && $(puppet --version) ]]; then | ||
| echo -e "\e[1;32mpuppet uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| echo "Work in Progress" |
| echo "Work in Progress" |
| echo "Work in Progress" |
| echo "Work in Progress" |
| echo "Work in Progress" |
| echo "Work in Progress" |
| echo "Work in Progress" |
| echo "Work in Progress" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the pulumi is present in the system | ||
| if [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| echo -e "\e[1;36mPulumi is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling pulumi.....This will take few mins...\e[0m" | ||
| sudo apt update -y | ||
| curl -fsSL https://get.pulumi.com | sh | ||
| export PATH="$PATH:$PWD/.pulumi/bin" | ||
| #Checking if the pulumi is installed successfully | ||
| if [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| pulumi_version=$(pulumi version) | ||
| echo -e "\e[1;32mSucessfully installed Pulumi : $pulumi_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the pulumi is installed in the system | ||
| if ! [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| echo -e "\e[1;36mPulumi is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling Pulumi | ||
| echo -e "\e[1;33mUninstalling Pulumi....Please wait....\e[0m" | ||
| sudo rm -rf /home/intel/.pulumi/ | ||
| if ! [[ $(which pulumi) && $(pulumi version) ]]; then | ||
| echo -e "\e[1;32mPulumi uninstalled successfully\e[0m" | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the terraform is present in the system | ||
| if [[ $(which terraform) && $(terraform --version) ]]; then | ||
| echo -e "\e[1;36mTerraform is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling terraform.....This will take few mins...\e[0m" | ||
| sudo apt update -y | ||
| wget https://releases.hashicorp.com/terraform/1.2.8/terraform_1.2.8_linux_amd64.zip | ||
| unzip terraform_1.2.8_linux_amd64.zip | ||
| sudo mv terraform /usr/local/bin | ||
| rm terraform_1.2.8_linux_amd64.zip | ||
| #Checking if the terraform is installed successfully | ||
| if [[ $(which terraform) && $(terraform --version) ]]; then | ||
| terraform_version=$(terraform --version) | ||
| echo -e "\e[1;32mSucessfully installed Terraform : $terraform_version \e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the terraform is installed in the system | ||
| if ! [[ $(which terraform) && $(terraform --version) ]]; then | ||
| echo -e "\e[1;36mTerraform is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling Terraform | ||
| echo -e "\e[1;33mUninstalling Terraform....Please wait....\e[0m" | ||
| sudo apt remove terraform -y | ||
| sudo rm -rf /usr/bin/terraform | ||
| sudo rm -rf /usr/local/bin/terraform | ||
| if ! [[ $(which terraform) && $(terraform --version) ]]; then | ||
| echo -e "\e[1;32mTerraform uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| echo "Work in Progress" |
| echo "Work in Progress" |
| echo "Work in Progress" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the atom is present in the system | ||
| if [[ $(which atom) && $(atom --version) ]]; then | ||
| echo -e "\e[1;36matom is already installed in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling atom.....This will take few mins...\e[0m" | ||
| echo 'intel123' | sudo apt update | ||
| sudo apt install software-properties-common apt-transport-https wget | ||
| wget -q https://packagecloud.io/AtomEditor/atom/gpgkey -O- | sudo apt-key add - | ||
| sudo add-apt-repository "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" | ||
| sudo apt install atom | ||
| #Checking if the atom is installed successfully | ||
| if [[ $(which atom) && $(atom --version) ]]; then | ||
| atom_version=$(atom --version | grep Atom | awk '{print $3}') | ||
| echo -e "\e[1;32mSuceessfully installed Atom : $atom_version \e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://www.codecademy.com/article/f1-text-editors\e[0m" | ||
| fi | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the atom is installed in the system | ||
| if ! [[ $(which atom) && $(atom --version) ]]; then | ||
| echo -e "\e[1;36matom is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling atom | ||
| echo -e "\e[1;33mUninstalling atom....Please wait....\e[0m" | ||
| echo 'intel123' | sudo apt purge atom -y | ||
| sudo apt remove atom | ||
| sudo rm /usr/local/bin/atom | ||
| sudo rm /usr/local/bin/apm | ||
| rm -rf ~/atom | ||
| rm -rf ~/.atom | ||
| rm -rf ~/.config/Atom-Shell | ||
| sudo rm -rf /usr/local/share/atom/ | ||
| if ! [[ $(which atom) && $(atom --version) ]]; then | ||
| echo -e "\e[1;32matom uninstalled successfully\e[0m" | ||
| fi | ||
| fi | ||
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if jupyter notebook is installed in the system | ||
| if [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| notebook_version=$(jupyter-notebook --version) | ||
| echo -e "\e[1;36mjupyter notebook : $notebook_version is already installed in the system\e[0m" | ||
| else | ||
| #Installing jupyter notebook | ||
| echo -e "\e[1;33mInstalling jupyter notebook....This might take few mins\e[0m" | ||
| echo 'intel123' | sudo -S apt-get update | ||
| sudo apt-get install jupyter-notebook -y | ||
| #Checking if jupyter notebook is installed | ||
| if [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| notebook_version=$(jupyter-notebook --version) | ||
| echo -e "\e[1;32mjupyter notebook : $notebook_version is successfully installed\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if jupyter notebook is present in the system | ||
| if ! [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| echo -e "\e[1;36mjupyter notebook is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling jupyter notebook | ||
| echo -e "\e[1;33mUninstalling jupyter notebook...Please wait...\e[0m" | ||
| echo 'intel123' | sudo -S apt remove jupyter-notebook -y | ||
| sudo apt autoclean && sudo apt autoremove -y | ||
| #Checking if jupyter notebook uninstalled | ||
| if ! [[ $(which jupyter-notebook) && $(jupyter-notebook --version) ]]; then | ||
| echo -e "\e[1;32mUninstalled jupyter notebook\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if notepad++ is installed in the system | ||
| if [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| notepad_version=$(snap list | awk '/notepad-plus-plus/ {print $2}') | ||
| echo -e "\e[1;36mnotepad++ : $notepad_version is already installed in the system\e[0m" | ||
| else | ||
| #Installing notepad++ | ||
| echo -e "\e[1;33mInstalling notepad++....This might take few mins....\e[0m" | ||
| echo 'intel123' | sudo -S apt-get install snapd snapd-xdg-open | ||
| sudo snap install notepad-plus-plus | ||
| #Checking if the notepad++ is installed | ||
| if [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| notepad_version=$(snap list | awk '/notepad-plus-plus/ {print $2}') | ||
| echo -e "\e[1;32mSuccessfully installed notepad-plus-plus : $notepad_version\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://npp-user-manual.org/docs/getting-started/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the notepad-plus-plus is installed in the system | ||
| if ! [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| echo -e "\e[1;36mnotepad++ is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling notepad++ | ||
| echo -e "\e[1;33mUninstalling notepad++....Please wait....\e[0m" | ||
| echo 'intel123' | sudo -S snap disable notepad-plus-plus | ||
| sudo snap remove notepad-plus-plus | ||
| #Checking if notepad++ uninstalled | ||
| if ! [[ $(which notepad-plus-plus) && $(snap list | awk '/notepad-plus-plus/ {print $2}') ]]; then | ||
| echo -e "\e[1;32mnotepad++ uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the Sublime-Text is present in the system | ||
| if [[ $(which subl) && $(subl --version) ]]; then | ||
| subl_version=$(subl --version) | ||
| echo -e "\e[1;36m$subl_version is already installed in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling Sublime-Text.....This might take few mins...\e[0m" | ||
| echo "intel123" | sudo apt update | ||
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | ||
| curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | ||
| sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/" | ||
| sudo apt update | ||
| sudo apt install sublime-text | ||
| #Checking if the Sublime-Text is installed successfully | ||
| if [[ $(which subl) && $(subl --version) ]]; then | ||
| subl_version=$(subl --version) | ||
| echo -e "\e[1;32mSucessfully installed $subl_version \e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://www.loginradius.com/blog/engineering/beginners-guide-for-sublime-text/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the Sublime-Text is installed in the system | ||
| if ! [[ $(which subl) && $(subl --version) ]]; then | ||
| echo -e "\e[1;36mSublime-Text is not installed in the system\e[0m" | ||
| else | ||
| #uninstalling Sublime-Text | ||
| echo -e "\e[1;33mUninstalling Sublime-Text....Please wait....\e[0m" | ||
| echo 'intel123' | sudo -S apt-get purge sublime-text -y | ||
| sudo apt-get remove sublime-text | ||
| if ! [[ $(which subl) && $(subl --version) ]]; then | ||
| echo -e "\e[1;32mSublime-Text uninstalled successfully\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the vscode is already present in the system | ||
| if [[ $(which code) && $(code --version) ]]; then | ||
| code_version=$(code --version | head -n 1) | ||
| echo -e "\e[1;36mvscode : $code_version is already present in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling Vscode....This might take few mins....\e[0m" | ||
| echo 'intel123' | sudo apt-get update | ||
| wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | ||
| sudo chmod +x packages.microsoft.gpg | ||
| sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | ||
| sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | ||
| sudo rm -f packages.microsoft.gpg | ||
| sudo apt-get install apt-transport-https | ||
| sudo apt-get update | ||
| sudo apt-get install code | ||
| #Checking if the vscode installed suceessfully or not | ||
| if [[ $(which code) && $(code --version) ]]; then | ||
| code_version=$(code --version | head -n 1) | ||
| echo -e "\e[1;32mSuccessfully installed vscode : $code_version \e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://code.visualstudio.com/docs/introvideos/basics\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the vscode is installed in the system | ||
| if ! [[ $(which code) && $(code --version) ]]; then | ||
| echo -e "\e[1;36mvscode is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling vscode | ||
| code_version=$(code --version | head -n 1) | ||
| echo -e "\e[1;33mUninstalling vscode $code_version\e[0m" | ||
| echo 'intel123' | sudo apt-get remove code -y | ||
| sudo rm -rf $HOME/.config/Code | ||
| sudo rm -rf ~/.vscode | ||
| #Checking if the vscode is uninstalled | ||
| if ! [[ $(which code) && $(code --version) ]]; then | ||
| echo -e "\e[1;32mvscode : $code_version is uninstalled\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the containerd is installed | ||
| #Installing Containerd | ||
| echo -e "\e[1;33mInstalling Conatinerd... This might take few mins...\e[0m" | ||
| wget https://github.com/containerd/containerd/releases/download/v1.6.4/containerd-1.6.4-linux-amd64.tar.gz | ||
| echo "intel123" | sudo -S tar Czxvf /usr/local containerd-1.6.4-linux-amd64.tar.gz | ||
| #Downloading the systemd service file and setting it up so that the service can be managed via systemd | ||
| wget https://raw.githubusercontent.com/containerd/containerd/main/containerd.service | ||
| sudo mv containerd.service /usr/lib/systemd/system/ | ||
| #Strating the containerd service | ||
| echo -e "\e[1;35mStrating the containerd service...\e[0m" | ||
| sudo systemctl daemon-reload | ||
| sudo systemctl enable --now containerd | ||
| #Installing runc | ||
| echo -e "\e[1;33mInstalling runc...\e[0m" | ||
| wget https://github.com/opencontainers/runc/releases/download/v1.1.1/runc.amd64 | ||
| sudo install -m 755 runc.amd64 /usr/local/sbin/runc | ||
| #Containerd configuration for Kubernetes | ||
| echo -e "\e[1;35mContainerd configuration for Kubernetes...\e[0m" | ||
| sudo mkdir -p /etc/containerd/ | ||
| containerd config default | sudo tee /etc/containerd/config.toml | ||
| sudo sed -i 's/SystemdCgroup \= false/SystemdCgroup \= true/g' /etc/containerd/config.toml | ||
| #Restarting the containerd service | ||
| sudo systemctl restart containerd | ||
| #Installing CNI Plugins For Containerd | ||
| echo -e "\e[1;33mInstalling CNI Plugins For Containerd...\e[0m" | ||
| sudo mkdir -p /opt/cni/bin/ | ||
| sudo wget https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-amd64-v1.1.1.tgz | ||
| sudo tar Cxzvf /opt/cni/bin cni-plugins-linux-amd64-v1.1.1.tgz | ||
| #Restarting the containerd service | ||
| sudo systemctl restart containerd | ||
| echo -e "\e[1;32mContainerd service is up and running...\e[0m" | ||
| if [[ $(containerd --version) ]]; then | ||
| containerd_version=$(containerd --version | awk '{print $3}') | ||
| echo -e "\e[1;32mContainerd : $containerd_version is installed\e[0m" | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mInstalling CRI-O...This might take few mins....\e[0m" | ||
| echo -e "\e[1;35mSetting up CRI-O Repository...\e[0m" | ||
| sudo apt update | ||
| sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | ||
| echo -e "\e[1;36mChecking OS_VERSION...\e[0m" | ||
| OS_VERSION=$( . /etc/os-release ; echo $VERSION_ID) | ||
| echo -e "\e[1;36mSystem OS : $OS_VERSION\e[0m" | ||
| if [[ $OS_VERSION == "18.04" ]]; then | ||
| export OS_VERSION=xUbuntu_18.04 | ||
| else | ||
| export OS_VERSION=xUbuntu_20.04 | ||
| fi | ||
| export CRIO_VERSION=1.23 | ||
| curl -fsSL https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS_VERSION/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpg | ||
| curl -fsSL https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$CRIO_VERSION/$OS_VERSION/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/libcontainers-crio-archive-keyring.gpg | ||
| echo "deb [signed-by=/usr/share/keyrings/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS_VERSION/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list | ||
| echo "deb [signed-by=/usr/share/keyrings/libcontainers-crio-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$CRIO_VERSION/$OS_VERSION/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$CRIO_VERSION.list | ||
| echo -e "\e[1;35mInstalling CRI-O components...\e[0m" | ||
| sudo apt update | ||
| sudo apt install -y cri-o cri-o-runc | ||
| echo -e "\e[1;35mStarting and enabling CRI-O Service...\e[0m" | ||
| sudo systemctl daemon-reload | ||
| sudo systemctl enable crio | ||
| sudo systemctl start crio | ||
| echo "\e[1;35mInstalling CNI Plugins For CRI-O...\e[0m" | ||
| sudo apt install -y containernetworking-plugins | ||
| sudo systemctl restart crio | ||
| echo -e "\e[1;35mVerifying CRI-O Installation...\e[0m" | ||
| sudo apt install -y cri-tools | ||
| version_info=$(sudo crictl --runtime-endpoint unix:///var/run/crio/crio.sock version) | ||
| echo -e "\e[1;32mCRIO-O is installed\e[0m" | ||
| echo -e "\e[1;32m$version_info\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| echo -e "\e[1;33mWork In Progress\e[0m" |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker-compose is present in the system | ||
| if [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| compose_version=$(docker-compose --version | awk {'print $3'}) | ||
| echo -e "\e[1;36mdocker-compose : $compose_version is already installed in the system\e[0m" | ||
| else | ||
| echo -e "\e[1;33mInstalling docker-compose....This might take few mins....\e[0m" | ||
| echo 'intel123' | sudo apt-get update | ||
| sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
| sudo chmod +x /usr/local/bin/docker-compose | ||
| #Checking if the docker-compose installed in the system | ||
| if [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| compose_version=$(docker-compose --version | awk {'print $3'}) | ||
| echo -e "\e[1;32mSuccessfully installed docker-compose : $compose_version\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://docs.docker.com/compose/gettingstarted/\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker-compose is installed in the system | ||
| if ! [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| echo -e "\e[1;36mDocker Compose is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling docker-compose | ||
| echo -e "\e[1;33mUninstalling docker-compose...Please wait...\e[0m" | ||
| echo 'intel123' | sudo rm /usr/local/bin/docker-compose | ||
| sudo apt remove docker-compose | ||
| sudo apt autoremove | ||
| #Checking if the docker-compose is uninstalled | ||
| if ! [[ $(which docker-compose) && $(docker-compose --version) ]]; then | ||
| echo -e "\e[1;32mUninstalled docker-compose\e[0m" | ||
| fi | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker is already installed in the system | ||
| if [[ $(which docker) && $(docker --version) ]]; then | ||
| docker_version=$(docker --version | awk {'print $3'}) | ||
| echo -e "\e[1;32mDocker : $docker_version is already installed in the system\e[0m" | ||
| else | ||
| #Installing docker | ||
| echo -e "\e[1;33mInstalling docker... This might take few mins...\e[0m" | ||
| echo "intel123" | sudo -S apt-get update | ||
| sudo apt-get install -y ca-certificates curl gnupg lsb-release | ||
| sudo mkdir -p /etc/apt/keyrings | ||
| if [[ -f /etc/apt/keyrings/docker.gpg ]]; then | ||
| sudo rm /etc/apt/keyrings/docker.gpg | ||
| fi | ||
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
| echo \ | ||
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | ||
| $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
| sudo apt-get update | ||
| sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
| #Checking if the docker is installed | ||
| if [[ $(which docker) && $(docker --version) ]]; then | ||
| docker_version=$(docker --version | awk {'print $3'}) | ||
| echo -e "\e[1;32mDocker : $docker_version is installed\e[0m" | ||
| fi | ||
| fi | ||
| #configuring the proxy | ||
| if [[ (-f /etc/systemd/system/docker.service.d/proxy.conf) || ((-f /etc/systemd/system/docker.service.d/http-proxy.conf) && (-f /etc/systemd/system/docker.service.d/https-proxy.conf)) ]]; then | ||
| echo -e "\e[1;32mProxy already configured in the system\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://docs.docker.com/get-started/\e[0m" | ||
| else | ||
| echo -e "\e[1;33mConfiguring the proxy\e[0m" | ||
| export DKR_PROXY='"HTTP_PROXY=http://proxy-chain.intel.com:911/" "HTTPS_PROXY=http://proxy-chain.intel.com:911/" "NO_PROXY=127.0.0.1,127.0.1.1,localhost,.intel.com"' | ||
| sudo mkdir -p /etc/systemd/system/docker.service.d | ||
| sudo chmod 755 /etc/systemd/system/docker.service.d | ||
| sudo touch /etc/systemd/system/docker.service.d/proxy.conf | ||
| sudo chmod 777 /etc/systemd/system/docker.service.d/proxy.conf | ||
| echo -e "[Service]\nEnvironment=$DKR_PROXY" > /etc/systemd/system/docker.service.d/proxy.conf | ||
| if [[ (-f /etc/systemd/system/docker.service.d/proxy.conf) ]]; then | ||
| env | grep -i proxy | ||
| echo -e "\e[1;32mproxy configured successfully in the system\e[0m" | ||
| echo -e "\e[1;32mGetting Started Guide : https://docs.docker.com/get-started/\e[0m" | ||
| fi | ||
| echo "intel123" | sudo systemctl daemon-reload | ||
| sudo systemctl restart docker | ||
| fi |
| #!/bin/bash | ||
| #Copyright (C) 2018-2021 Intel Corporation | ||
| #SPDX-License-Identifier: Apache-2.0 | ||
| #Checking if the docker is installed | ||
| if ! [[ $(which docker) && $(docker --version) ]]; then | ||
| echo -e "\e[1;36mDocker is not installed in the system\e[0m" | ||
| else | ||
| #Uninstalling the docker | ||
| echo -e "\e[1;33mUninstalling docker... This might take few mins...\e[0m" | ||
| echo "intel123" | sudo -S systemctl stop docker.socket | ||
| sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli | ||
| sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce | ||
| #sudo rm /etc/apt/keyrings/docker.gpg | ||
| sudo rm -rf /var/lib/docker /etc/docker | ||
| if [[ -f /etc/apparmor.d/docker ]]; then | ||
| sudo rm /etc/apparmor.d/docker | ||
| fi | ||
| sudo groupdel docker | ||
| sudo rm -rf /var/run/docker.sock | ||
| #Checking if the docker is uninstalled | ||
| if ! [[ $(which docker) && $(docker --version) ]]; then | ||
| echo -e "\e[1;32mDocker uninstalled Successfully\e[0m" | ||
| fi | ||
| fi |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
956512
0.49%737
0.27%9856
0.01%