Skip to content

Instantly share code, notes, and snippets.

@vilaca
Last active Jul 14, 2019
Embed
What would you like to do?
docker ce and docker-compose install in centos7-64b
yum -y update
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install yum-utils device-mapper-persistent-data lvm2 docker-ce
systemctl start docker
systemctl enable docker
yum -y install epel-release
yum -y install python-pip
pip install docker-compose
# pip install --upgrade pip
yum -y install wget unzip git
wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/12.0.1+12/69cfe15208a647278a19ef0990eea691/jdk-12.0.1_linux-x64_bin.rpm"
rpm -Uvh jdk-12.0.1_linux-x64_bin.rpm
wget https://services.gradle.org/distributions/gradle-5.2.1-bin.zip
unzip -d /opt/gradle gradle-5.2.1-bin.zip
echo 'export GRADLE_HOME=/opt/gradle/gradle-5.2.1' > /etc/profile.d/gradle.sh
echo 'export PATH=${GRADLE_HOME}/bin:${PATH}' >> /etc/profile.d/gradle.sh
echo >> /etc/profile.d/gradle.sh
source /etc/profile.d/gradle.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment