From 4cc4809b7fa4d00da436fee1ea3a55c5e4b48687 Mon Sep 17 00:00:00 2001 From: Jenna Zwick Date: Fri, 9 Jun 2023 21:02:34 -0700 Subject: [PATCH] cleaning up depricated packages --- .gitignore | 4 ++- docker-install.sh | 32 ------------------- jamanative-setup/.gitignore | 1 - partitionVHDonJamaAppServer.sh | 28 ----------------- ubuntu-setup/docker-inst.sh | 57 ---------------------------------- 5 files changed, 3 insertions(+), 119 deletions(-) delete mode 100644 docker-install.sh delete mode 100644 jamanative-setup/.gitignore delete mode 100644 partitionVHDonJamaAppServer.sh delete mode 100755 ubuntu-setup/docker-inst.sh diff --git a/.gitignore b/.gitignore index 49fa098..3d1383e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -/ubuntu-setup/master_inst.sh \ No newline at end of file +/ubuntu-setup/master_inst.sh +.releases +depricated* \ No newline at end of file diff --git a/docker-install.sh b/docker-install.sh deleted file mode 100644 index 5db9241..0000000 --- a/docker-install.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -## Update the apt package index and install packages to allow apt to use a repository over HTTPS: - -sudo apt-get update -sudo apt-get install \ - ca-certificates \ - curl \ - gnupg - -## Add Docker’s official GPG key: - -sudo install -m 0755 -d /etc/apt/keyrings -curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg -sudo chmod a+r /etc/apt/keyrings/docker.gpg - -## Use the following command to set up the repository: - -echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | - sudo tee /etc/apt/sources.list.d/docker.list >/dev/null - -#Install Docker Engine -#Update the apt package index: - -sudo apt-get update - -# Install Docker Engine, containerd, and Docker Compose. -# To install - -sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin diff --git a/jamanative-setup/.gitignore b/jamanative-setup/.gitignore deleted file mode 100644 index 1ce5501..0000000 --- a/jamanative-setup/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.releases \ No newline at end of file diff --git a/partitionVHDonJamaAppServer.sh b/partitionVHDonJamaAppServer.sh deleted file mode 100644 index fcf5415..0000000 --- a/partitionVHDonJamaAppServer.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# Set up dedicated volumes for the data your application is going to write. Use this example to partition the logical volumes on your application server, starting with a 100 GB disk. -# Create a mountpoint: - -mkdir /data /logs /var/lib/docker /var/lib/replicated - -# Create a physical volume: - -pvcreate /dev/sdb - -# Create a volume group: - -vgcreate vg_jama /dev/sdb - -# Create logical volumes: - -lvcreate -L 30G -n lv_docker vg_jama -lvcreate -L 20G -n lv_replicated vg_jama -lvcreate -L 10G -n lv_logs vg_jama -lvcreate -l 100%FREE -n lv_data vg_jama - -# Write file systems: - -mkfs.xfs -L docker -n ftype=1 /dev/vg_jama/lv_docker -mkfs.ext4 -L replicated /dev/vg_jama/lv_replicated -mkfs.ext4 -L data /dev/vg_jama/lv_data -mkfs.ext4 -L logs /dev/vg_jama/lv_logs \ No newline at end of file diff --git a/ubuntu-setup/docker-inst.sh b/ubuntu-setup/docker-inst.sh deleted file mode 100755 index 4c409c5..0000000 --- a/ubuntu-setup/docker-inst.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# Docker 20.10.7 Rollback Script (v1.0) -# By: Jenna Zwick -# Technical Support Engineer (TSE) at Jama Software - -# To run this script, make it executable with: 'sudo chmod 777 ./docker_rollback.sh && sudo ./docker_rollback.sh' - -echo "outputs Docker version so you can verify the backed up sandbox still needs to be rolled back. Please cancel if it returns v20.10.7." - -dock_ver=(docker -v) - -read -p "Currently installed Docker runtime is $dock_ver. You should still proceed to roll back to 20.10.7 if you have a newer version installed. " response -sudo read -p "Uninstall current version of Docker and roll back to 20.10.7? Press any key to continue, Ctrl-C to cancel." - -# updates repositories -sudo apt-get update - -# attempts to uninstall all historic components of docker; many companies don't use docker-engine any more though. -# If the below command on the left fails because you don't have it either it will fail. If it does, bash will -# attempt to run the one on the right, which should complete successfully. -sudo apt-get remove docker docker-engine docker.io containerd runc -y || sudo apt-get remove docker docker.io containerd runc -y - -# Downloads Docker 20.10.7 from their website with wget, and extracts the archive to the current working directory. -wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.7.tgz -tar xzvf ./docker-20.10.7.tgz - -# Copies docker files to the /usr/bin directory; will force the operation if it fails because a text file in the directory is busy. -sudo cp docker/* /usr/bin/ || sudo cp docker/* /usr/bin/ -f - -# Suggests an optional setup step that makes Docker easier to use -echo "Check if 'docker' user group exists; If not, creating one is optional, but if you add current user $USER to it will help you avoid" -echo "having to use sudo to run Docker commands. If you don't want to add this group the next prompt will let you skip to the last step " -echo "and restart the Docker Daemon." -read -p "Press any key to continue..." - -# Check if 'docker' user group exists. If yes, skip. If no, asks the user if they want to create one and add the current user to it. -if getent group docker >/dev/null; then - echo "User group 'docker' already exists." -else - # Prompt user to create 'docker' user group - read -p "User group 'docker' does not exist. Do you want to create it and add your current user? (yes/no): " response - - if [ "$response" = "yes" ]; then - # Create 'docker' user group and add current user - sudo groupadd docker - sudo usermod -aG docker "$(whoami)" - echo "User group 'docker' created. Current user added to the group." - else - echo "Skipping creating 'docker' user group; restarting docker daemon." - sudo dockerd & - exit - fi -fi - -# Restart Docker daemon -sudo dockerd &