Public | Automated Build

Last pushed: 4 days ago
Short Description
Possibly the best `Dockerfile` for Strider-CD
Full Description

Strider-CD Docker


Possibly the best Dockerfile for Strider-CD.

Features

  • Uses node base image
  • Doesn't run as root
  • Thin and Optimised Container. Uses linked MongoDB and SMTP containers for those services
  • Installs latest Strider-CD cleanly from Git source
  • Supports installing and upgrading plugins from the web UI.

Usage

The most straight forward usage is via Docker links:

docker run -d --name mongo mongo
docker run -d --name smtp -e MAILNAME=test panubo/postfix
docker run -d --link mongo --link smtp macropin/strider

Environment variables

These are the base Strider variables. Docker links can be use in place of configuring the SMTP and MongoDB services:

  • SERVER_NAME - Required; Address at which server will be accessible on the Internet. E.g. https://strider.example.com (note: no trailing slash)
  • HOST - Host where strider listens, optional (defaults to 0.0.0.0).
  • PORT - Port that strider runs on, optional (defaults to 3000).
  • DB_URI - MongoDB DB URI (or use --link MONGO), alternatively define both MONGO_HOST and MONGO_PORT
  • 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_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)

Initial config variables. If these are defined then they will be used to create an admin account:

  • STRIDER_ADMIN_EMAIL
  • STRIDER_ADMIN_PASSWORD

Status

Stable.

Docker Pull Command
Owner
macropin
Source Repository

Comments (2)
macropin
2 years ago

This is not the right place to report issues. Please use GitHub. Thanks.

totox777
2 years ago

i got an error said:
error: Could not connect to DB: Error: failed to connect to [ds033113.mongolab.com:33113]

when trying to connect using MongoLab