Export some vars:
MY_USER=admin
MY_PASS=redhat@123
OCP_MASTER_URL=https://ocp-master.example.com:8443
If you are cluster-admin,
| oc create -f https://github.com/sclorg/s2i-nodejs-container/blob/master/imagestreams/nodejs-rhel7.json -n openshift | |
| oc new-project app-nodejs | |
| oc new-build nodejs:8~https://github.com/hodrigohamalho/sal-frontend --name=sal-frontend-s2i | |
| oc new-build --name=sal-frontend-nginx \ | |
| --docker-image=registry.access.redhat.com/rhscl/nginx-112-rhel7 \ | |
| --source-image=sal-frontend-s2i \ | |
| --source-image-path=/opt/app-root/src/dist/:. \ |
| // | |
| // named.conf | |
| // | |
| // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS | |
| // server as a caching only nameserver (as a localhost DNS resolver only). | |
| // | |
| // See /usr/share/doc/bind*/sample/ for example named configuration files. | |
| // | |
| // See the BIND Administrator's Reference Manual (ARM) for details about the | |
| // configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html |
| $TTL 1D | |
| $ORIGIN example.com. | |
| @ IN SOA example.com. root.cloudapps.example.com. ( | |
| 10 ; serial | |
| 1D ; refresh | |
| 1H ; retry | |
| 1W ; expire | |
| 3H ) ; minimum | |
| IN NS ns1.example.com. | |
| ns1 IN A 127.0.0.1 |
In the previous version, when you didn't install the driver plugin, Minishift would fail with an issue.
$ minishift start
These instructions assume you are using Minishift 1.0.1 or newer as your OpenShift installation.
You'll also need a wsk binary in your $PATH to interact with
OpenWhisk after it's deployed. Download the latest version for your OS
| /* A bare-bones GithubClient, just used for commits */ | |
| function GithubClient(owner, repo, username, passwordOrToken) { | |
| this.owner = owner; | |
| this.repo = repo; | |
| this.username = username; | |
| this.passwordOrToken = passwordOrToken; | |
| } | |
| /* |
$ brew install dnsmasq
...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
/usr/local/etc/dnsmasq.confaddress=/local/127.0.0.1
ssh [email protected]
ssh infranode00-dcff
ssh master00-dcff
ssh node00-dcff
requires
jqCLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'