This image is focused on console tools necessary to develop LAMP stack (and other web) applications.
aeonis/capsule-cli:7.2aeonis/capsule-cli:7.3aeonis/capsule-cli:7.4This image uses the official php-fpm images from Docker Hub as the base.
This means that PHP and all modules are installed from source. Extra modules have to be installed in the same
manner (installing them with apt-get won't work).
sqlite3, pdo_sqlitemysqli, mysqlnd, pdo_mysqlpgsql, pdo_pgsqlsqlsrv and pdo_sqlsrvXdebug is disabled by default.
To enable it, run the image with XDEBUG_ENABLED=1:
cli
...
environment:
...
- XDEBUG_ENABLED=1
...
See docs on using Xdebug for web and cli PHP debugging.
NodeJS is installed via nvm in the docker user's profile inside the image (/home/docker/.nvm).
This image comes with NodeJS v12.x by default .
If you need a different version of node, use nvm to install it, e.g, nvm install 12.0.0.
Then, use nvm use 12.0.0 to use it in the current session or nvm alias default 12.0.0 to use it by default.
Also, see the Secrets section below for more information on managing and using your hosting provider keys.
To run a custom startup script anytime the cli container has started, create a startup.sh file within the
.capsule/services/cli directory. Additionally, make sure that the file is executable as well so that the container
does not run into issues when attempting to execute the file.
Cron can be configured by making sure there is a crontab file located within .capsule/services/cli. The file should
follow the standard crontab format.
cli can read secrets from environment variables and configure the respective integrations automatically at start.
The recommended place store secrets in Docksal is the global $HOME/.capsule/capsule.env file on the host. From there,
secrets are injected into the cli container's environment.
Below is the list of secrets currently supported.
SECRET_SSH_PRIVATE_KEY
Use to pass a private SSH key. The key will be stored in /home/docker/.ssh/id_rsa inside cli and will be considered
by the SSH client in addition to the keys loaded in capsule-ssh-agent when establishing a SSH connection
from within cli.
This is useful when you need a project stack to inherit a private SSH key that is not shared with other project stacks on the same host (e.g. in shared CI environments).
The value must be base64 encoded, i.e:
cat /path/to/some_key_rsa | base64
SECRET_TERMINUS_TOKEN
Credentials used to authenticate Terminus with Pantheon.
Stored in /home/docker/.terminus/ inside cli.
Terminus is installed and available globally in cli.
SECRET_PLATFORMSH_CLI_TOKEN
Credentials used to authenticate with the Platform.sh CLI tool.
Stored in /home/docker/.platform inside cli.
Platform CLI is installed and available globally in cli.
WEB_KEEPALIVE
Sets the delay in seconds between pings of the web container during execution fin exec. Setting this variable to non zero value prevents the project from stopping in cases of long fin exec and web container inactivity. Disabled by default (set to 0).
When working with git from within the image, it will ask for the user.email and user.name set before you can commit.
These can be passed as environment variables and will be applied at the container startup.
GIT_USER_EMAIL="[email protected]"
GIT_USER_NAME="git"
Content type
Image
Digest
sha256:3a2e46f98…
Size
683.9 MB
Last updated
9 months ago
docker pull aeonis/capsule-cli:8.5