Skip to content

AAROC/CODE-RADE-container: CODE-RADE Build Container - Static Host Keys

Compare
Choose a tag to compare
@brucellino brucellino released this 09 Feb 12:36
· 21 commits to master since this release

This is an Ansible role for expressing build environments for the CODE-RADE project. This role can be used to build Docker containers for the supported operating systems, as well as Virtual Machines, in an OpenStack environment. Major changes from the previous release are made to they way ssh host keys are generated. These are now pre-generated and statically managed. Private keys are encrypted with Ansible Vault prior to being committed to the repo.

CODE-RADE Build Container

A somewhat OS-independent role to build CODE-RADE slaves for use in a continuous integration environment, using Ansible-Container.

Adds a CODE-RADE build container service to your Ansible Container project. To be used in conjunction with CODE-RADE Build Containers. For galaxy info, see meta/main.yml

Run the following commands
to install the service:

# Set the working directory to your Ansible Container project root
$ cd myproject

# Install the service
$ ansible-container install AAROC.code-rade-build-containers

Requirements

  • Ansible Container
  • An existing Ansible Container project. To create a project, simply run the following:
    # Create an empty project directory
    $ mkdir myproject
    
    # Set the working directory to the new directory
    $ cd myproject
    
    # Initialize the project
    $ ansible-contiainer init
    

Role Variables

Variables are all in vars/main.yml :

  • modules_path - The OS-dependent path where environment-modules keeps its base configuration by default.
  • modules - CODE-RADE specific modulefiles ci and deploy which set up the build, test and deploy shells. These contain OS-specific variables, using anisble_os_family
  • module_domains - The domain-specific modulefile paths to which CODE-RADE can write application modulefiles. Contain :
    • astronomy
    • bioinformatics
    • compilers
    • languages
    • libraries
    • physical_sciences
    • hep
    • chemistry
  • prerequisites: OS-specific dependencies that need to be in the build environment in order to execute compilation and tests. Intentionally kept small.

Dependencies

None

License

Apache-2.0

Author Information

Bruce Becker
Africa-Arabia Regional Operations Centre

Citing

If you use this role in an academic or research context, please cite :
Bruce Becker. (2017). AAROC/CODE-RADE-container: DevOps for CODE-RADE - Build Container role [Data set]. Zenodo. http://doi.org/10.5281/zenodo.572278