-
Notifications
You must be signed in to change notification settings - Fork 1
Home
里丰 edited this page Aug 11, 2018
·
2 revisions
This is a demo CI project, which would no longer maintain
You can follow Todo List to create the project
Git + Travis-CI + hub.docker
- a. Set up a project
- b. Build a war for source code
- c. Build a zip for static files
- d. Add the .travis.yml for Travis-CI
- e. Add a dockerfile for building docker
- f. Use docker-compose to build, run and push images
- g. Update workflow with asciiflow http://asciiflow.com/
- a. Add a CI job
- b. Add environment variables for hub.docker login
- c. Add a job about multi stages
- d. Add a authorize key for non-login
- a. Add a docker image in hub.docker
- i. Add a demo_ci image for main service
- ii. Add a demo_ci_static_server images for static server
- b.
Add a webhook for Rancher
- a.
Setup the rancher server- i.
https://rancher.com/docs/rancher/v1.6/en/quick-start-guide/ - ii.
Url: http://123.206.23.165:8080 User: demo, Pass: demo
- i.
- b.
Setup the rancher agent - c.
Add a hook from hub.docker- i.
Access key:BFE436E152D4XXXXSecret key:35QummvmoTLExQGijiRkKWsrgdzygR38XXXXX
- i.
- a. Add a local ubuntu
- b. Add a new user named travis, which has docker group
- c. Install a local docker client
- d. Update openssh in wsl
- e. Add frp client
- a. Use hosts file to deploy multi servers
- b. Use ansible docker container
- c. Meet serval problem
- i. Failed to import docker-py for docker_container module
- ii. Failed to get information on remote file
- iii. In YAML, how do I break a string over multiple lines?