This commit is contained in:
Ot Matas 2024-06-07 09:33:39 +01:00
parent 72ee61a521
commit e09caf908c
2 changed files with 35 additions and 0 deletions

20
Oracle-Linux/README.md Normal file
View File

@ -0,0 +1,20 @@
# Install Script
Script
```bash
#! /bin/bash
sudo rm /root/.ssh/authorized_keys
sudo cp /home/opc/.ssh/authorized_keys /root/.ssh/authorized_keys
sudo yum update -y
sudo yum upgrade -y
sudo yum install -y yum-utils
sudo systemctl start firewalld
sudo firewall-cmd --zone=public --add-port=0-65535/tcp --permanent
sudo firewall-cmd --zone=public --add-port=0-65535/udp --permanent
sudo firewall-cmd --reload
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker
sudo systemctl enable docker
```

15
Oracle-Linux/install.sh Normal file
View File

@ -0,0 +1,15 @@
#! /bin/bash
sudo yum update -y
sudo yum upgrade -y
sudo yum install -y yum-utils
sudo rm /root/.ssh/authorized_keys
sudo cp /home/opc/.ssh/authorized_keys /root/.ssh/authorized_keys
sudo systemctl start firewalld
sudo firewall-cmd --zone=public --add-port=0-65535/tcp --permanent
sudo firewall-cmd --zone=public --add-port=0-65535/udp --permanent
sudo firewall-cmd --reload
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker
sudo systemctl enable docker