forked from arquillian/ike-prow-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.sh
More file actions
executable file
·19 lines (17 loc) · 792 Bytes
/
local.sh
File metadata and controls
executable file
·19 lines (17 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# tag::local_docker_registry[]
eval $(minishift docker-env)
docker login -u $(oc whoami) -p $(oc whoami -t) $(minishift openshift registry)
export REGISTRY=$(minishift openshift registry)
export DOCKER_REPO=$(oc project -q)
# end::local_docker_registry[]
# tag::seeding_secrets[]
echo "${GH_WEBHOOK_SECRET}" > config/hmac.token # <1>
echo "${GH_TOKEN}" > config/oauth.token # <2>
echo "${SENTRY_DSN}" > config/sentry.dsn # <3>
# end::seeding_secrets[]
# tag::handy_aliases[]
alias oc-console='xdg-open https://$(minishift ip):8443/console &>/dev/null'
alias uh="ultrahook github http://$(oc get route/hook --no-headers=true -o=custom-columns=HOST:spec.host)/hook"
alias gdoc="./.asciidoctor/generate.sh && xdg-open gh-pages/index.html &>/dev/null"
# end::handy_aliases[]