Skip to content

ComputeStacks/cs-docker-bastion

Repository files navigation

Bastion host for ComputeStack Projects

Build Image

This provides a bastion environment for projects running within ComputeStacks.

The will:

  1. Install any ssh keys linked to the project and/or users.
  2. Mount volumes for other services within the project
  3. Provide ssh, sftp, and mosh access
  4. Provide developer tools such as: git, rsync, wp-cli, compose, yarn, npm, mysql-cli, postgres-cli.

PHP versions

Built on Debian Trixie using Ondřej Surý's PHP packaging — the same packaging family as the ComputeStacks php/wordpress images, so wp and composer behave the same here as in the customer app.

PHP 8.2, 8.3, 8.4, and 8.5 are installed side-by-side. Each is callable explicitly as php8.2php8.5. The bare php (and therefore wp/composer, which call /usr/bin/php) defaults to 8.3 but is auto-selected at boot to match the project's PHP version from the metadata service (WordPress services take priority; versions outside 8.2–8.5 fall back to/clamp into that range). An admin can re-run select_php_version or use update-alternatives --set php /usr/bin/php8.X to change the default.

Note: This makes use of the metadata service provided by ComputeStacks. Not all features may work in your environment.

Based on source code and ideas from: atmoz/sftp

Submitting Issues

If you encounter a technical issue, you may open an issue. However, for questions or how-to's, please post on our forum.

Contributing

Contributions are welcome! Before you submit a pull request, feel free to post on our forum your idea and we can have a discussion.

About

ComputeStacks SSH Bastion Container

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors