This file contains hidden or 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
    
  
  
    
  | # from:https://quicktechnotes.wordpress.com/2017/01/02/how-to-install-mongodb-elasticsearch-and-graylog-on-centos-7/ | |
| # Install EPEL | |
| sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| sudo yum -y install pwgen | |
| sudo yum -y update | |
| # Add mongodb repo. | |
| sudo vi /etc/yum.repos.d/mongodb-org-3.2.repo | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # from https://www.digitalocean.com/community/tutorials/how-to-install-java-on-centos-and-fedora | |
| # JDK 7 | |
| #------ | |
| # Change to your home directory and download the Oracle Java 7 JDK RPM with these commands: | |
| cd ~ | |
| wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm" | |
| # Then install the RPM with this yum command (if you downloaded a different release, substitute the filename here): | |
| sudo yum localinstall jdk-7u79-linux-x64.rpm | 
  
    
      This file contains hidden or 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
    
  
  
    
  | export INTERNAL_DOCKER_HOST="tcp://$(docker run --rm busybox ip route show | grep ^default | cut -f3 -d ' '):2375" | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # provide an alias to the host local loopback | |
| sudo ifconfig lo0 alias 172.20.123.1 | |
| # check alias | |
| ifconfig|more | |
| # ping alias from within docker | |
| docker run -it --rm busybox ping 172.20.123.1 | |
| # check that the host services are accessible from the aliased IP | 
  
    
      This file contains hidden or 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
    
  
  
    
  | How I can see the used space / free space on a compute node with local storage? | |
| vgdisplay cinder-volumes | |
| or | |
| pvdisplay | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # To disable firewalld, run the following command as root: | |
| systemctl disable firewalld | |
| # To stop firewalld, run the following command as root: | |
| systemctl stop firewalld | |
| # start firewalld | |
| systemctl start firewalld | |
| # status | 
  
    
      This file contains hidden or 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
    
  
  
    
  | rsync -avz --exclude ./docker-volumes . <user>@<ip-address>:/user/<remote-folder>/ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | docker-compose up --force-recreate | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # install epel-release on centos | |
| yum -y install epel-release | |
| yum -y update | |
| # install python-pip from epel | |
| yum -y install python-pip | |
| # Verify using: | |
| pip -V | 
  
    
      This file contains hidden or 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 update | |
| https://docs.docker.com/engine/installation/linux/centos/ | |
| yum install -y yum-utils | |
| yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
| yum makecache fast | |
| yum install docker-ce | |
| docker |