bash <(curl -s http://agent.ops.yourdomain.com/static/goci/install.sh)
goci <Project Name> <App Name> <Author>
Specify your project's, application's and author's name explicitly.
goci <Project Name> <App Name>
Author defaults to the logined account's name, whoami
goci <App Name>
Set project's name to app's name.
e.g.
goci demo HelloWorld yourname
That will create a folder ./HelloWorld
contains a new go project named HelloWorld
and expected to be pushed into hub.yourdomain.com/demo/HelloWorld
,
Naturally the image's creator is yourname
.
Furthermore, this project will generate a rancher catalog template named demo
,
Before this, you should have an empty repository existed for your project.
Use below command to push this project to your gitlab repository:
make git
The repository's address defaults to [email protected]:<Author>/<App Name>.git
.
So in the above case, your project will be pushed to [email protected]:yourname/Helloworld.git
.
Add this command:
make ci
in the Excute shell
input text of your project settings.
Once a push event happening in the gitlab repository, Jenkins will trigger a build to the project.
Once you launch a stack via this project's catalog template, the stack's name is demo
(Project Name), and the service's name is HelloWorld
(App Name).
Including:
- godep
- test
- review
- build
- pack
- rancherize
- golang
- golang dep
- gometalinter
- docker
- git [optional]
- Use golang dep to manage dependencies
- SemVer
Todo