2015-12-26 14:01:50 -08:00
|
|
|
# docker-nexus
|
|
|
|
|
|
|
|
**A nginx/cgi/sshd server for prototyping services or data hubs.**
|
|
|
|
|
|
|
|
## Quick start
|
|
|
|
|
|
|
|
* Clone: `git clone ssh://git@gitlab.xmopx.net:222/dave/docker-nexus.git`
|
|
|
|
* Build: `cd docker-nexus ; docker build -t nexus .`
|
|
|
|
* Run: `docker run nexus`
|
|
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Nexus offers a couple services:
|
|
|
|
|
|
|
|
### SSHD
|
|
|
|
|
2015-12-26 21:13:13 -08:00
|
|
|
For shell related activities, an sshd daemon runs on the standard port. Username and password, by default, is `nexus`.
|
2015-12-26 14:01:50 -08:00
|
|
|
|
|
|
|
### Nginx
|
|
|
|
|
|
|
|
For accessing data or calling CGI scripts, nginx runs on the standard port. The document root is `/nexus/`.
|
|
|
|
|
|
|
|
### CGI
|
|
|
|
|
|
|
|
Standard CGI scripts can be placed in `/nexus/cgi-bin/`. Some sample scripts exist in `./examples/cgi-scripts/`.
|
|
|
|
|
|
|
|
### Cron
|
|
|
|
|
|
|
|
Cron is present in the container.
|
|
|
|
|
2015-12-26 21:13:13 -08:00
|
|
|
## Protips
|
|
|
|
|
|
|
|
* Drop executable scripts into `/startup.d/` for effortless startup tasks
|
|
|
|
* Persistance? You want to mount these files/dirs outside the container:
|
|
|
|
* `/nexus/` - webroot and recommended data store
|
|
|
|
* `/etc/ssh/keys/` - sshd key file directory
|
|
|
|
|
2015-12-26 14:01:50 -08:00
|
|
|
## TODO
|
|
|
|
|
|
|
|
* Allow ssh password to be set by passing an env var
|
|
|
|
* More sample CGI scripts
|