strider
Brilliant continuous deployment platform
Last updated 5 years ago by knownasilya .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install strider 
SYNC missed versions from official npm registry.

Strider

NPM Code Climate Dependency Status Build Status

General Requirements

<summary>Other possible requirements</summary>

Note: Installing on OS X might require XCode to be installed.

  • The package krb5-devel/libkrb5-dev might have to be installed to resolve Kerberos related build issues on some systems.

Running on Infrastructure

Make sure you have MongoDB installed on your system. You can get the latest version at mongodb.org.

Next you will need Node.JS. You can get binary packages for most platforms at nodejs.org.

Once you have Node.JS on your system, you can fetch & install all the dependencies for your Strider clone by executing the following command in the project root:

npm install

Note: Sometimes there are issues with permissions and installing global modules, in those cases run npm config set prefix ~/npm to set your global modules directory to '~/npm'. You will also have to add ~/npm/bin to your PATH environment variable.

Configuring

Strider configuration comes from environment variables. Most of the default values should work fine for running on localhost, however for an Internet-accessible deployment the following variables will need to be exported:

  • SERVER_NAME - Required; Address at which server will be accessible on the Internet. E.g. https://strider.example.com (note: no trailing slash, and included protocol)
  • DB_URI - MongoDB DB URI (with port number if local, e.g. localhost:27017) if not localhost (you can also use MongoDB Atlas)

You might need to follow these instructions if you use any of these, please do so before filing issues.

See additional configuration for all options.

Adding Initial Admin User

Strider isn't much use without an account to login with. Once you create an administrative user, you can invite as many other people as you like to your instance. There is a simple CLI subcommand to help you create the initial user:

node bin/strider addUser

Example run:

$ node bin/strider addUser
Enter email []: strider@example.com
Is admin? (y/n) [n]: y
Enter password []: *******

Email:    strider@example.com
Password: ****
isAdmin:  true
OK? (y/n) [y]:
22 Oct 21:21:01 - info: Connecting to MongoDB URL: mongodb://localhost:27017/strider-foss
22 Oct 21:21:01 - info: User added successfully! Enjoy.

See the cli readme for more details.

Starting Strider

Once Strider has been installed and configured, it can be started with:

NODE_ENV=production npm start

Resources

  • Strider Tutorial Series - Extensive guides about Strider covering platform setup, 3rd party integrations (GitHub, GitLab, etc), continuous deployments (Heroku, SSH), notifications (email, Slack, HipChat), how to create your own Strider plugin and many more.
  • Strider on DigitalOcean - Covers setting up an Ubuntu machine with Strider using upstart.
  • Strider plugin template - Simple setup for getting started with your own plugin.
  • Panamax Strider template - Strider template for use with Panamax.

Advanced Topics

Advanced topics are located in the Wiki, here's a small subset of what's covered:

LDAP

If you want to connect to your ldap server to authorization
you can also add the ldap.json config file to project root
the config like so:

 {
    "url": ldap://host:port,
    "baseDN": dnString,
    "username": username,
    "password": password,
    // If you want to set a admin group
    "adminDN": dnString
 }

Remove // comments from the config to use it

Additional Configurations

  • HOST - Host where strider listens, optional (defaults to 0.0.0.0).
  • PORT - Port that strider runs on, optional (defaults to 3000).
  • CONCURRENT_JOBS - How many jobs to run concurrently (defaults to 1). Concurrency only works across different project and branch combinations. So if two jobs come in for the same project and branch, concurrency will always be 1.
  • STRIDER_CLONE_DEST - Where the repositories are cloned to (defaults to ~/.strider)
  • HTTP_PROXY - Proxy support, optional (defaults to null)
  • If you want email notifications, configure an SMTP server (we recommend Mailgun for SMTP if you need a server - free account gives 200 emails / day):
    • SMTP_HOST - SMTP server hostname e.g. smtp.example.com
    • SMTP_PORT - SMTP server port e.g. 587 (default)
    • SMTP_SECURE - SMTP server TLS or SSL ("true" or "false")
    • SMTP_USER - SMTP auth username e.g. "myuser"
    • SMTP_PASS - SMTP auth password e.g. "supersecret"
    • SMTP_FROM - Default FROM address e.g. "Strider noreply@stridercd.com" (default)
  • BODY_PARSER_LIMIT - Increase the maximum payload size that our body parser will attempt to parse. Useful for github web hooks.
  • DEBUG - Set this to strider* to enable all debug output. This is very helpful when troubleshooting issues or finding the cause of bugs in Strider. For more information see https://www.npmjs.com/package/debug
  • JOBS_QUANTITY_ON_PAGE_ENABLED - Whether users can set quantity in Account Management
  • JOBS_QUANTITY_ON_PAGE_DEFAULT - Number of jobs to display when not enabled
  • JOBS_QUANTITY_ON_PAGE_MIN - Minimal value
  • JOBS_QUANTITY_ON_PAGE_MAX - Maximum value

API Documentation

An effort has been started to document the existing REST API, and to have versioned documentation going forward. We use apiDoc for the documentation.

To build the documentation run npm run docs and the documentation will be accessable from apidocs/index.html.

View Strider API Docs

Support & Help

We are responsive to Github Issues - please don't hesitate submitting your issues here!

For live help check out Strider's Gitter.

Current Tags

  • 2.0.5-alpha.4                                ...           alpha (5 months ago)
  • 2.4.20                                ...           latest (a month ago)

92 Versions

  • 2.4.20                                ...           a month ago
  • 2.4.19                                ...           2 months ago
  • 2.4.18                                ...           2 months ago
  • 2.4.17                                ...           2 months ago
  • 2.4.16                                ...           2 months ago
  • 2.4.15                                ...           2 months ago
  • 2.4.14                                ...           2 months ago
  • 2.4.13                                ...           2 months ago
  • 2.4.12                                ...           2 months ago
  • 2.4.11                                ...           3 months ago
  • 2.4.10                                ...           3 months ago
  • 2.4.9                                ...           3 months ago
  • 2.4.8                                ...           3 months ago
  • 2.4.7                                ...           3 months ago
  • 2.4.6                                ...           4 months ago
  • 2.4.5                                ...           4 months ago
  • 2.4.4                                ...           4 months ago
  • 2.4.3                                ...           4 months ago
  • 2.4.2                                ...           5 months ago
  • 2.4.1                                ...           5 months ago
  • 2.4.0                                ...           5 months ago
  • 2.3.0                                ...           5 months ago
  • 2.2.0                                ...           5 months ago
  • 2.1.0                                ...           5 months ago
  • 2.0.5-alpha.4                                ...           5 months ago
  • 2.0.5-alpha.3                                ...           5 months ago
  • 2.0.5-alpha.0                                ...           5 months ago
  • 2.0.4                                ...           7 months ago
  • 2.0.3                                ...           7 months ago
  • 2.0.2                                ...           8 months ago
  • 2.0.1                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 1.11.0                                ...           2 years ago
  • 1.10.1                                ...           2 years ago
  • 1.10.0                                ...           3 years ago
  • 1.9.6                                ...           4 years ago
  • 1.9.5                                ...           4 years ago
  • 1.9.4                                ...           4 years ago
  • 1.9.2                                ...           4 years ago
  • 1.9.0                                ...           4 years ago
  • 1.9.1                                ...           4 years ago
  • 1.8.0                                ...           4 years ago
  • 1.7.7                                ...           5 years ago
  • 1.7.6                                ...           5 years ago
  • 1.7.5                                ...           5 years ago
  • 1.7.4                                ...           5 years ago
  • 1.7.3                                ...           5 years ago
  • 1.7.2                                ...           5 years ago
  • 1.7.1                                ...           5 years ago
  • 1.7.0                                ...           5 years ago
  • 1.6.6                                ...           5 years ago
  • 1.6.5                                ...           5 years ago
  • 1.6.4                                ...           6 years ago
  • 1.6.3                                ...           6 years ago
  • 1.6.2                                ...           6 years ago
  • 1.6.1                                ...           6 years ago
  • 1.6.0                                ...           6 years ago
  • 1.5.0                                ...           6 years ago
  • 1.4.5                                ...           6 years ago
  • 1.4.4                                ...           7 years ago
  • 1.4.3                                ...           7 years ago
  • 1.4.2                                ...           7 years ago
  • 1.4.1                                ...           7 years ago
  • 1.4.0                                ...           7 years ago
  • 1.3.5                                ...           7 years ago
  • 1.3.4                                ...           7 years ago
  • 1.3.3                                ...           7 years ago
  • 1.3.2                                ...           7 years ago
  • 1.3.1                                ...           7 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.16                                ...           7 years ago
  • 1.2.15                                ...           7 years ago
  • 1.2.14                                ...           7 years ago
  • 1.2.13                                ...           7 years ago
  • 1.2.12                                ...           7 years ago
  • 1.2.11                                ...           7 years ago
  • 1.2.10                                ...           7 years ago
  • 1.2.9                                ...           7 years ago
  • 1.2.8                                ...           7 years ago
  • 1.2.7                                ...           7 years ago
  • 1.2.6                                ...           7 years ago
  • 1.2.5                                ...           7 years ago
  • 1.2.4                                ...           7 years ago
  • 1.2.3                                ...           7 years ago
  • 1.2.2                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 118
Dependencies (69)
Dev Dependencies (23)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |