Skip to content

Instantly share code, notes, and snippets.

@dustymabe
Last active June 27, 2016 00:45
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 dustymabe/5a5377733a44871a85fa19914c21d9d4 to your computer and use it in GitHub Desktop.
Save dustymabe/5a5377733a44871a85fa19914c21d9d4 to your computer and use it in GitHub Desktop.
vi /etc/yum.repos.d/rh-dotnetcore10.repo
gpgcheck=0
#For Che
#installs docker 1.10
sudo yum install docker --enablerepo=rhel-7-server-extras-rpms
# installs java 1.8
sudo yum install --disablerepo=* --enablerepo=rhel-7-server-rpms java-1.8.0-openjdk*
sudo systemctl enable docker
sudo systemctl start docker
sudo docker pull eivantsov/node_dotnet
sudo docker pull codenvy/mysql
sudo chmod 666 /var/run/docker.sock
sudo groupadd docker
sudo usermod -aG docker redhat
sudo firewall-cmd --add-port 8080/tcp
sudo firewall-cmd --add-port 8080/udp
sudo firewall-cmd --permanent --add-port 8080/tcp
sudo firewall-cmd --permanent --add-port 8080/udp
# add to .bashrc
export JAVA_HOME=/usr/
# grab che
mkdir ~/che
pushd ~/che
wget https://www.dropbox.com/s/41hx8wrco4f1dih/eclipse-che-4.4.0-RC1-SNAPSHOT.zip?dl=0
mv 'eclipse-che-4.4.0-RC1-SNAPSHOT.zip?dl=0' eclipse-che-4.4.0-RC1-SNAPSHOT.zip
unzip eclipse-che-4.4.0-RC1-SNAPSHOT.zip
rm eclipse-che-4.4.0-RC1-SNAPSHOT.zip
mv eclipse-che-4.4.0-RC1-SNAPSHOT/* ./
rmdir eclipse-che-4.4.0-RC1-SNAPSHOT
# edit /home/redhat/che/conf/che.properties
machine.ws_agent.max_start_time_ms=600000
workspace.runtime.auto_snapshot=false
workspace.runtime.auto_restore=false
popd
sudo yum-config-manager --add-repo=http://mirror.centos.org/centos-7/7/sclo/x86_64/sclo/
sudo su -c "echo gpgcheck=0 >> /etc/yum.repos.d/mirror.centos.org_centos-7_7_sclo_x86_64_sclo_.repo"
sudo yum install \
--disablerepo=* \
--enablerepo=rhel-7-server-rpms \
--enablerepo=rhel-server-rhscl-7-rpms \
--enablerepo=rhel-7-server-optional-rpms \
--enablerepo=mirror.centos.org_centos-7_7_sclo_x86_64_sclo_ \
sclo-vagrant1 sclo-vagrant1-vagrant-libvirt sclo-vagrant1-vagrant-libvirt-doc
sudo cp /opt/rh/sclo-vagrant1/root/usr/share/vagrant/gems/doc/vagrant-libvirt-*/polkit/10-vagrant-libvirt.rules /etc/polkit-1/rules.d
sudo systemctl restart polkit
sudo systemctl enable libvirtd
sudo systemctl start libvirtd
sudo mkdir /home/libvirtimages
sudo virsh pool-create-as --target /home/libvirtimages/ --name default --type dir
sudo yum install --disablerepo=* \
--enablerepo=rhel-7-server-rpms \
--enablerepo=rhel-server-rhscl-7-rpms \
rh-ruby22-ruby-devel gcc gcc-c++ zlib-devel patch libvirt-devel
scl enable sclo-vagrant1 bash
vagrant plugin install vagrant-registration --plugin-version 1.2.1
vagrant plugin install vagrant-sshfs --plugin-version 1.1.0
vagrant plugin install vagrant-service-manager --plugin-version 1.0.1
vagrant box add --name cdkv2 /run/media/redhat/d527555a-376b-4ec0-ae2c-7f30c87f89f9/summit-2016-container-lab/misc/createLabMachineVM/filestoshare/vagrant/rhel-cdk-kubernetes-7.2-23.x86_64.vagrant-libvirt.box
#git clone https://github.com/dustymabe/ticketmonster
git clone https://github.com/eivantsov/ticketmonster
cd /home/redhat/ticketmonster/misc/vagrant/openshift/
vagrant up
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install htop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment