radial / imagebase-spoke

Base Dockerfile for Spoke containers. Supervisor and SSH built-in for your apps.
https://index.docker.io/u/radial/spoke-base
2 stars 1 forks source link

Split image into dev and production flavors #3

Open brianclements opened 10 years ago

brianclements commented 10 years ago

Lean and mean for production, no ssh.

ssh and perhaps some other things for dev/testing.

brianclements commented 9 years ago

At the moment, I'm doing a sort of "in-between". I'm leaving SSHD installed on the image which adds about 35mb, but it's not enabled by default. The daemon is only started when specifying the $GH_USER variable at run time. When the entrypoint.sh script in the radial/spoke-base container detects that it's set, it will download those keys and run ssh. I'm open to comments on this, but this seems to allow both easy testing/entry/debugging and then switchover to production without changing the image or rebuilding; just restarting without that env var.