Details
-
Admin & Maintenance Task
-
Status: Open
-
Medium
-
Resolution: Unresolved
-
None
-
None
-
None
-
Yes
-
Yes
Description
It's a common practice to a have a one click copy and past command to install software. This helps a lot in driving software adoption.
We should add this command on top of installing pages (to see it at first glance):
- https://docs.percona.com/percona-server/8.0/installation.html
- https://docs.percona.com/percona-server/8.0/installation/apt_repo.html
- https://docs.percona.com/percona-server/8.0/installation/yum-repo.html
Script is currently located at my gist, and should be transferred to percona.com website.
Adding analytics to this will also be good to know how many users have installed our software by using this.
Usage:
curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash
Example:
docker run --rm --name centos centos:7 sh -c '
curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash
echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N
'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1262 100 1262 0 0 3962 0 --:--:-- --:--:-- --:--:-- 3968
Loaded plugins: fastestmirror, ovl
Examining /var/tmp/yum-root-gJ34Jh/percona-release-latest.noarch.rpm: percona-release-1.0-27.noarch
Marking /var/tmp/yum-root-gJ34Jh/percona-release-latest.noarch.rpm to be installed
Determining fastest mirrors
* base: mirrors.eze.sysarmy.com
* extras: mirrors.eze.sysarmy.com
* updates: mirrors.eze.sysarmy.com
Resolving Dependencies
--> Running transaction check
---> Package percona-release.noarch 0:1.0-27 will be installed
---> Package which.x86_64 0:2.20-7.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
. . .
Complete!
Percona Server Installed!
To connect to your server, type:
mysql -u root
Percona Server is Great. Community Hack Day is great
Tested with
# Centos 7 docker run --rm --name centos7 centos:7 sh -c ' curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N ' # Centos 8 docker run --rm --name centos8 centos:8 sh -c ' sed -i "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* sed -i "s/mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-* curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N ' # Ubuntu Bionic docker run --rm --name bionic ubuntu:bionic sh -c ' apt update apt install -y curl curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N ' # Ubuntu Focal docker run --rm --name focal ubuntu:focal sh -c ' apt update apt install -y curl curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N ' # Ubuntu Jammy docker run --rm --name jammy ubuntu:jammy sh -c ' apt update apt install -y curl curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N ' # Debian Buster docker run --rm --name buster debian:10 sh -c ' apt update apt install -y curl curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N ' # Debian Bullseye docker run --rm --name bullseye debian:11 sh -c ' apt update apt install -y curl curl https://gist.githubusercontent.com/altmannmarcelo/59b92c25f428222b9e5fa5a6e96136bd/raw/b18bf27502c24ef71e244f620068211db298b4ce/install_ps| bash echo "SELECT \"Percona Server is Great. Community Hack Day is great\""| mysql -u root -N '