This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop Docker if exist | |
sudo systemctl stop docker | |
# Remove Docker Packages | |
sudo yum remove docker-ce docker-ce-cli containerd.io | |
# Remove Docker Data (Optional) | |
sudo rm -rf /var/lib/docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove the previous Docker installation (for Ubuntu) | |
sudo apt-get remove docker docker-engine docker.io containerd runc -y | |
# Set up the repository | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to install Python 3.9 on CentOS 7 | |
# Please run it as a root | |
# Install development tools and libraries | |
yum groupinstall -y "Development Tools" | |
yum install -y openssl-devel bzip2-devel libffi-devel | |
# Download Python 3.9 source code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove previous version if there is anything installed | |
which terraform | |
sudo rm /usr/local/bin/terraform | |
terraform --version | |
wget https://releases.hashicorp.com/terraform/0.13.0/terraform_0.13.0_linux_amd64.zip | |
unzip terraform_0.13.0_linux_amd64.zip | |
sudo mv terraform /usr/local/bin/ | |
terraform --version # Verify the installation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the current working directory | |
current_dir=$(pwd) | |
echo "Starting deployment..." | |
echo $current_dir | |
# Define the Docker image and container details | |
image_name="op-mediadl-os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo zypper refresh | |
# setup developer tools first if you dont have them already | |
sudo zypper install gcc zlib-devel bzip2 libbz2-devel libffi-devel libopenssl-devel readline-devel sqlite3 sqlite3-devel xz xz-devel | |
# Download and install OpenSSL | |
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz | |
tar xvf openssl-1.1.1l.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install the required Perl module | |
sudo cpan ExtUtils::MakeMaker | |
# Remove the old Git | |
sudo yum remove git | |
# Download the latest Git sources | |
wget https://github.com/git/git/archive/refs/tags/v2.35.1.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this file might behave differently on different OS | |
# it is tested on centos 8 | |
# edit the following file /lib/systemd/system/docker.service | |
sudo vi /lib/systemd/system/docker.service | |
# add the following line to the file -H tcp://0.0.0.0:2375 | |
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375 --containerd=/run/containerd/containerd.sock | |
# reload the daemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Default values | |
# default_directory="environments/" | |
default_directory="." # Use current directory as default | |
# default_directory="infrastructure/cert-manager/" | |
default_extension="*" # Supports all file types | |
default_output_file="content_code_files.txt" | |
# Function to list files with the given extension |