An open API service indexing awesome lists of open source software.

https://github.com/macropin/docker-strider

Strider-CD Docker Image
https://github.com/macropin/docker-strider

ci-cd docker-image strider

Last synced: 7 months ago
JSON representation

Strider-CD Docker Image

Awesome Lists containing this project

README

          

# Strider-CD Docker

[![Build Status](https://travis-ci.org/macropin/docker-strider.svg?branch=master)](https://travis-ci.org/macropin/docker-strider)

Possibly the best `Dockerfile` for [Strider-CD](https://github.com/Strider-CD/strider).

## Features

- Uses [node](https://registry.hub.docker.com/_/node/) base image
- Doesn't run as root
- Thin and Optimised Container. Uses linked [MongoDB](https://registry.hub.docker.com/_/mongo/) and [SMTP](https://registry.hub.docker.com/u/panubo/postfix/) 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 --name strider -p 3000:3000 --link mongo --link smtp docker.io/macropin/strider:latest
```

Then go point your browser at `http://localhost:3000`.

## 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.