Skip to content

Instantly share code, notes, and snippets.

@wh13371
Last active July 9, 2020 11:21
Show Gist options
  • Save wh13371/fb758ae88b0e79dae8bdfcace4da813a to your computer and use it in GitHub Desktop.
Save wh13371/fb758ae88b0e79dae8bdfcace4da813a to your computer and use it in GitHub Desktop.
#!/bin/bash
###############################################################################
# basics
###############################################################################
yum -y install wget /
net-tools / # netstat etc etc
sqlite-devel # fixes sqlite/python integration issue
yum -y groupinstall "Development tools"
###############################################################################
# python 3.8.0
###############################################################################
yum -y install gcc openssl-devel bzip2-devel libffi-devel
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar xzf Python-3.8.0.tgz
cd Python-3.8.0
./configure --enable-optimizations
make altinstall
###############################################################################
# docker
###############################################################################
dnf install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.10-3.2.el7.x86_64.rpm
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf install -y docker-ce
systemctl start docker
systemctl enable docker
usermod -aG docker fizz
docker version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment