Skip to content

Instantly share code, notes, and snippets.

@vilaca
Last active July 14, 2019 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vilaca/68279ed30448545250d42ffad2c6f1ca to your computer and use it in GitHub Desktop.
Save vilaca/68279ed30448545250d42ffad2c6f1ca to your computer and use it in GitHub Desktop.
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