Closed jludvice closed 7 years ago
#!/bin/env bash
MY_IP=`ip route get 8.8.8.8 | head -1 | cut -d' ' -f8`
echo "my ip is ${MY_IP} - using it for oc cluster up"
oc delete project ipaas-single-tenant || true
oc new-project ipaas-single-tenant
# oauth
oc create -f https://raw.githubusercontent.com/redhat-ipaas/openshift-templates/master/serviceaccount-as-oauthclient-single-tenant.yml
# import template
oc create -f https://raw.githubusercontent.com/redhat-ipaas/openshift-templates/master/redhat-ipaas-dev-single-tenant.yml
oc new-app redhat-ipaas-dev-single-tenant \
-p ROUTE_HOSTNAME="ipaas-dev.${MY_IP}.nip.io" \
-p OPENSHIFT_MASTER=$(oc whoami --show-server) \
-p OPENSHIFT_OAUTH_CLIENT_ID=system:serviceaccount:$(oc project -q):ipaas-oauth-client \
-p OPENSHIFT_OAUTH_CLIENT_SECRET=$(oc sa get-token ipaas-oauth-client) \
-p OPENSHIFT_OAUTH_DEFAULT_SCOPES="user:info user:check-access role:edit:$(oc project -q):! role:system:build-strategy-source:$(oc project -q)" \
-p GITHUB_OAUTH_CLIENT_ID="asdfas" \
-p GITHUB_OAUTH_CLIENT_SECRET="asfd"
@dsimansk I just opened PR #21
Hello @chirino, what do you think about PR #21 ?
Added with #35
Starting ipaas from
redhat-ipaas-dev-single-tenant.yml
template, there is issue with ssl certificate. Log of github-proxy container shows following error when connecting to keycloak: