Last active
July 14, 2019 18:00
-
-
Save vilaca/68279ed30448545250d42ffad2c6f1ca to your computer and use it in GitHub Desktop.
docker ce and docker-compose install in centos7-64b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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