Continuous Delivery Pipelines
Publish date: Aug 9, 2019
Last updated: Apr 22, 2020
Last updated: Apr 22, 2020
IMAGE GALLERY (3)
Continuous Methodologies
- Continuous Integration - CI
- is the practice of merging all developers’ working copies to a shared mainline several times a day
- Automate a build
- Code Quality Reports
- Self-testing build and code at every commit
- Browser Performance Testing
- Everyone can see the results
- Continuous Delivery- CD manually
- Practise of ensuring automatedly that s/w can be relased reliably any time.
- Continuous Deployment CD automatically
- similar to CD
Gitlab runner
- Gitlab Runner
- runs jobs and sends results back to Gitlab
- opensource project written in
go
, single binary file - Install and register Gitlab Runner
- Gitolab runner commands
Installing runner
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
Runner operating instructions
There are several available EXECUTORS
- SSH
- Shell
- VirtualBox
- Docker
- Kubernetes
image: ruby:2.3
pages:
script:
- bundle install
- bundle exec jekyll build -d public
artifacts:
paths:
- public
only:
- master
- Tells gitlab-runner to use
docker
executor with mentioned image - Name of the job
- Actual commands to run for the job
- Collect artifacts after running the script
gitlab-runner register \
--non-interactive \
--url "https://gitlab.com/" \
--registration-token "PROJECT_REGISTRATION_TOKEN" \
--description "python-3.5" \
--executor "docker" \
--docker-image python:3.5 \
--docker-postgres latest
- Docker container linking
- trap
- perform an action when the shell receives a signal
- HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS
trap cleanup EXIT
trap cleanup SIGINT SIGTERM SIGQUIT
- id
- print real and effective user and group IDs
- uid=1000(avi) gid=1000(avi) groups=1000(avi),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),127(docker),130(libvirt)
- getent
- get entries from Name Service Switch libraries
getent group
getent passwd
- ufw
- program for managing a netfilter firewall
- tr
- translate or delete characters
tr -d ' '
echo "avi m" | tr --delete 'av'
i m- tput
- initialize a terminal or query terminfo database
tput init
- timesyncd.conf, timesyncd.conf.d
- Network Time Synchronization configuration files