SHARE
TWEET

Integra & Docker CLI commands

a guest Jun 30th, 2015 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # CentOS 6.6
  2. yum -y update
  3.  
  4. # Download and install kernel v3.10
  5. rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  6. rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
  7. yum --enablerepo=elrepo-kernel install kernel-lt
  8.  
  9. # Configure GRUB -- set default=0
  10. vi /etc/grub.conf
  11. reboot
  12.  
  13. # Verify kernel version
  14. uname -r
  15.  
  16. # Enable IP forwarding
  17. /sbin/sysctl -w net.ipv4.ip_forward=1
  18.  
  19.  
  20. # Docker 1.7
  21. yum -y update
  22. curl -O -sSL https://get.docker.com/rpm/1.7.0/centos-6/RPMS/x86_64/docker-engine-1.7.0-1.el6.x86_64.rpm
  23. yum localinstall --nogpgcheck docker-engine-1.7.0-1.el6.x86_64.rpm
  24. service docker start
  25. chkconfig docker on
  26.  
  27.  
  28. # Ready for Integra
  29. docker ps
  30.  
  31. docker pull integra/reactor
  32. docker --iptables=true --icc=true run -i -d -t -p 8443:8443 integra/reactor
  33. docker ps
  34.  
  35. # Remember to replace berserk_rosalind with your own container name
  36. docker inspect berserk_rosalind | grep IPAddress
  37. curl --insecure -H "Accept: application/json" -u admin:integra https://172.17.0.1:8443/rest
  38.  
  39. docker pull integra/ssh-provider
  40. docker --icc=true run -i -d -t integra/ssh-provider
  41. docker ps
  42.  
  43.  
  44. # Integra vCenter Plugin
  45. yum -y install java-1.7.0-openjdk.x86_64 git wget unzip perl-TermReadKey.x86_64
  46. bash <(curl -s http://integra.install.emitrom.com)
  47.  
  48. # Remember to replace insane_shockley with your own container name
  49. docker inspect insane_shockley | grep IPAddress
RAW Paste Data
Want to get better at Bash?
Learn to code Bash in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top