/openshift-go-cart

Go cartridge for OpenShift Origin

Primary LanguageShellOtherNOASSERTION

OpenShift Go 1.6 Cartridge
==========================

What is ...

	https://developers.openshift.com/en/overview-what-is-openshift.html
	https://github.com/smarterclayton/openshift-go-cart

Ubuntu: 
	sudo gem install rhc

.ssh/config
Host *.rhcloud.com
        IdentityFile ~/.ssh/rsa_openshift
        KexAlgorithms diffie-hellman-group-exchange-sha256

	rhc setup


Install the app cartridge on openshift.redhat.com (turn on autoscaling):

	rhc create-app <app> \
	https://raw.github.com/capnm/openshift-go-cart/master/metadata/manifest.yml -s


Checkout: 
	rhc git-clone <app>

Checkin:
	git push

remote: Syncing git content to other proxy gears
remote: Building git ref 'master', commit xxxxxx
remote: 
remote: -----> Using Go 1.6
remote: -----> Running: go get -tags openshift ./...
remote: Preparing build for deployment
remote: Deployment id is xxxxxxx
remote: Distributing deployment to child gears
remote: Activating deployment
remote: HAProxy already running
remote: CLIENT_RESULT: HAProxy instance is started
remote: 
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Distribution status: success
remote: Activation status: success
remote: Deployment completed with status: success


Login:
	rhc ssh <app>
	tail_all

==> go/logs/go.log <==
date: Starting application <app> from bin/goserv...