Created
October 2, 2015 13:11
-
-
Save east301/c74b2f9d6f152fb6e98b to your computer and use it in GitHub Desktop.
Construct my own OpenShift V3 environment
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
origin: | |
image: openshift/origin | |
command: start --master=openshift.192.168.99.101.xip.io | |
privileged: true | |
net: host | |
volumes: | |
- /:/rootfs:ro | |
- /var/run:/var/run:rw | |
- /sys:/sys:ro | |
- /var/lib/docker:/var/lib/docker:rw | |
- /var/lib/openshift/openshift.local.volumes:/var/lib/openshift/openshift.local.volumes:rw |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "bento/centos-7.1" | |
config.vm.hostname = "openshift.192.168.99.101.xip.io" | |
config.vm.network "private_network", ip: "192.168.99.101" | |
config.vm.provider "virtualbox" do |vb| | |
vb.cpus = 2 | |
vb.memory = 1024 * 2 | |
end | |
config.vm.provision "shell", inline: <<-EOS | |
sudo yum install -y docker | |
sudo sed -i "s/# INSECURE_REGISTRY='--insecure-registry'/INSECURE_REGISTRY='--insecure-registry 0.0.0.0\/0'/g" /etc/sysconfig/docker | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
sudo yum install -y epel-release | |
sudo yum install -y python-pip | |
sudo pip install docker-compose | |
EOS | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment