I'm looking for a way for a user to be able to execute a limited set of commands on the host, while only accessing it from containers/browser. The goal is to prevent the need for SSH'ing to the host just to run commands occasionally like make start
, make stop
, etc. These make
commands just execute a series of docker-compose
commands and are needed sometimes in dev.
The two possible ways in I can think of are:
- Via cloud9 terminal inside browser (we'll already be using it). By default this terminal only accesses the container itself of course.
- Via a custom mini webapp (e.g. node.js/express) with buttons that map to commands. This would be easy to do if running on the host itself, but I want to keep all code like this as containers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…