Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 2.03 KB

File metadata and controls

51 lines (43 loc) · 2.03 KB

On-Prem Development Configuration

If you followed the directions in the main API README, you already have an On-Prem Development configuration file in your ~/.codestream/config/ directory.

  1. Make sure you have the onprem-development codestream configuration file. If this command doesn't indicate any files, try running dt-dev-update-secrets.

    $ ls ~/.codestream/config/onprem-development_local_*_.json
    
  2. Complete this step only if you want to customize your configuration. If you want to edit the configuration, you need to choose a name and copy the most recent onprem-development config to a file with the same format. For example, onprem-custom-config_local_N_.json. Then edit that file to taste. You'll also want to add the file to the update hook so it gets maintained automatically as new config file versions are downloaded.

    $ echo onprem-development:onprem-custom-config >> ~/.codestream/config/codestream-cfg-update-hook
    
  3. Select this configuration as the default for local development (if you made a custom config file, use its name in lieu of onprem-development).

    $ echo onprem-development > ~/.codestream/config/codestream-cfg-default.local
    
  4. The broadcaster service replaces PubNub. Install a broadcaster sandbox.

  5. Load all of your sandboxes into the same shell and create an on-prem playground file for yourself.

    $ dt-load mongo
    $ dt-load api
    $ dt-load mailin
    $ dt-load mailout
    $ dt-load bc
    $ dt-sb-create-playground -t $CS_API_TOP/sandbox/playgrounds/onprem.template
    

    From now on, simply load the onprem playground with dt-load-playground onprem

  6. RabbitMQ replaces AWS SQS. You can install RabbitMQ natively on your system (notes here) or you can use our pre-configured docker image.

    With Docker installed and running on your development host:

    $ docker run -d -p 5672:5672 -p 15672:15672 --name csrabbitmq teamcodestream/rabbitmq-onprem:0.0.0