changtimwu / changtimwu.github.com

Tim's testing/practice notes
7 stars 2 forks source link

gitlab and CI #43

Open changtimwu opened 8 years ago

changtimwu commented 8 years ago

gitlab

fallocate -l 4G /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile   none    swap    sw    0   0" >> /etc/fstab
free -m
changtimwu commented 8 years ago

cache between jobs from docker executor https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/configuration/advanced-configuration.md#the-runnersdocker-section

changtimwu commented 8 years ago

http://doc.gitlab.com/ce/ci/yaml/README.html Notice: read through the artifacts and catche sections

Artificacts: The artifacts will be send after a successful build success to GitLab, and will be accessible in the GitLab UI to download. Where?

changtimwu commented 8 years ago

survey CD(continue deploy)

changtimwu commented 8 years ago

https://www.reddit.com/r/node/comments/38bnzi/what_is_the_best_way_to_deploy_nodejs/ People really like dokku and lots of deployment & hosting options.

changtimwu commented 8 years ago

dokku has documents on thow to setup on linode. http://dokku.viewdocs.io/dokku/getting-started/install/linode/

how-to-run-a-shiny-app-in-the-cloud-using-tutum-digital-ocean-and-docker-containers/

tutum shows the streamline of deployment. github->circle ci-> docker hub-> tutum. I would be great if there is a similar for gitlab ci. http://blog.tutum.co/2015/06/10/node-js-and-continuous-deployment-with-circleci-docker-hub-and-tutum/

yes i got one for gitlab-ci. https://www.andrewmunsell.com/blog/ci-cd-with-docker-containers/

tutum's way manages HAproxy is quite fantastic. nginx can do so via the VIRTUAL_HOST env. That idea is great. Generating nginx config file with a templating tool(docker-gen) written in go from all containers' envs.