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
- Host: GitHub
- URL: https://github.com/macropin/docker-strider
- Owner: macropin
- License: mit
- Created: 2015-06-02T09:11:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T02:33:25.000Z (over 7 years ago)
- Last Synced: 2023-03-12T02:32:46.676Z (almost 3 years ago)
- Topics: ci-cd, docker-image, strider
- Language: Shell
- Homepage: https://hub.docker.com/r/macropin/strider/
- Size: 28.3 KB
- Stars: 13
- Watchers: 1
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Strider-CD Docker
[](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.