Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section describes how to use the existing github repository with the Stratos 2.0 Environment.

...

  1. Login to Stratos 2.0 using CLI.  

    Code Block
    $./stratos.sh admin@telecom.org password

     

  2. Subscribe to the PHP Cartridge.

    Code Block
    stratos>subscribe php myphpapp --repoURL <git-repo-url> --username <username> --password <password>

     
    Code Command Argument Description

    SyntaxDescription
    php
    PHP Cartridge
    myphpapp
    Alias name for the PHP application.
    repoURL

    URL of the GIT repository containing the myphpapp.
    Example:  https://github.com/lakwarus/myphpapp.git

    username
    Username for provided GIT account.
    password
    Password for provided GIT account.

    The myphpapp application is now ready to use. You can now add your own domain URL to access your application. For more information see Custom domain mapping.

...

Now inform Stratos2 about your applications. For more information see Setting a service hook at Github.

...

  1. Go to the the GitHub website.
    https://github.com/lakwarus/myphpapp.git
  2. Select repository.
  3. Click Goto Settings.
  4. Click Service Hooks.
    The list of available service hooks will appear. 
  5. Click the WebHook URLs option.
  6. Add ADC Notification Service in the URL textbox.
    Example:   https://stratos-controller-host:9445/repo_notification
  7. Click Update Settings.