Technical requirements
This chapter doesn't have strict environmental restrictions; any OpenShift installations and development environment is supported—MiniShift, oc cluster up
, standard Ansible-based production-ready deployment. It is up to you which version you use. However, this chapter is based on the oc cluster up
method. The following Vagrantfile can be used to deploy development environment:
Vagrant.configure(2) do |config| config.vm.define "openshift" do |conf| conf.vm.box = "centos/7" conf.vm.network "private_network", ip: "172.24.0.11" conf.vm.hostname = 'openshift.example.com' conf.vm.network "forwarded_port", guest: 80, host: 980 conf.vm.network "forwarded_port", guest: 443, host: 9443 conf.vm.network "forwarded_port", guest: 8080, host: 8080 conf.vm.network "forwarded_port", guest: 8443, host: 8443 conf.vm.provider "virtualbox" do |v| v.memory = 4096 v.cpus = 2 end conf.vm.provision "shell", inline: $lab_main end...