Skip to content
Snippets Groups Projects
Select Git revision
  • b24d924586a8c72667ff40695c14c28c81979256
  • master default protected
  • 7771-harden-postgres-backup
  • pgsql-dump-with-snapshots
  • update-colors
  • update-docs-css
  • usb-repair-stick
  • desktop-notification
  • 7000-corrections
  • db-detector
10 results

pgsql.sh

Blame
  • 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

    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

    Set up software rollout

    Create a profile