Select Git revision
zz_template_check_xyz
readme.md 9.18 KiB
IML deployment client :: proof of concept :: WIP
This client is a set of bash scripts to deploy a package that was built on th IML CI server.
This project is related to
- CI deployment web gui https://git-repo.iml.unibe.ch/iml-open-source/imldeployment
- CI package server https://git-repo.iml.unibe.ch/iml-open-source/ci-pkg
License
GNU GPL 3.0
Source
URL: https://git-repo.iml.unibe.ch/iml-open-source/imldeployment-client/
Installation
On a server the client must be deployed i.e. in /opt/deployment-client/
Use git clone if you feel familiar with git. Otherwise download the archive and extract it.
Execution plan
If fully configured the deployment script executes the following steps in that fixed sequence:
- loop over profiles ... and per profile ...
- set profile data by sourcing [profile]/config.js
- download Software archive
- detect if download is newer than the last one
- jump into installation dir of your application
- optional: execute pre installation tasks
- optional: run cleanup
- extract software archive
- create config files
- optional: execute post installation tasks
Set up access to package server
This setting is for all projects on the server. It has to be done once.
- in ./bin directory copy getfile.sh.cfg.dist to getfile.sh.cfg
- edit getfile.sh.cfg and define software endpoint and set the phase:
IMLCI_URL=https://software.example.com
IMLCI_PKG_SECRET=put-secret-here
IMLCI_PHASE=preview