Information for: DEVELOPERS   PARTNERS

Resources in Cloud IDE

Cloud IDE provides containers with useful resources and tools, which you can use to develop your application.

Note

Container resources

Cloud IDE provides an Ubuntu 16.04 container with the following resource limits:

  • 4 GB of memory
  • 2 CPUs
  • 60 GB of disk space

Tools

Containers in Cloud IDE include both standard Linux tooling and the following development tools:

Resource Version
Acquia CLI 1.12.1
Composer 2 2.1.5
Composer 1 1.10.22
GitHub CLI 1.13.1
Git 2.33.0
MariaDB (MySQL) Version 14.14 Distribution 5.7.31
Apache2 2.4.18
PHP 7.3.29, 7.4.21
Xdebug 2.7.0beta1
Drush 8.4.6
Theia 1.13.0
Node Version Manager (NVM) 0.37.0
Node.js 12.22.1
npm 6.14.12
Google Chrome 93.0.4577.63
Ruby Version Manager (RVM) 1.29.12
Ruby 2.7.4, 3.0.2
Imagemagick 6.8.9–9
ChromeDriver 93.0.4577.15

Plugins

Cloud IDE includes configurable plugins such as phpcs which provides several configuration options found in ~/.theia/settings.json:

  • phpcs.enable: Enables and disables the phpcs extension. The default value is true.
  • phpcs.standard: Stores the phpcs coding standard. The default value is Drupal. Other available options:

Managing your services

Users of Cloud IDE can manage services in the container using the following commands:

Command Description
supervisorctl start $SERVICE Starts the service, if it wasn’t running before.
supervisorctl stop $SERVICE Stops the service, if it was running before.
supervisorctl restart $SERVICE Restarts the service.
supervisorctl status $SERVICE Prints all the service’s status information.

Note

Cloud IDE users don’t have access to sudo or root user.

Database resources

The provided version of MySQL runs on port 3306 in Cloud IDE, and has a database with the following details:

  • Database name: drupal
  • User: drupal
  • Password: drupal

You can review MySQL log files in the /var/log/mysql directory.

Altering database configuration

You can change options and variables in MySQL by creating custom MySQL configuration files in the /home/ide/configs/mysql/ directory. After creating or modifying the MySQL configuration file, restart the database service with the command supervisorctl restart mysql.

Apache web server resources

Apache and PHP are enabled in your container. Your container serves files from the /home/ide/project/docroot directory, and your Apache log files are available in the /var/log/apache2/ directory.

Although users can install packages, change system settings, and restart services, these changes aren’t guaranteed to persist.

Altering Apache configuration

To change default options in Apache or create new virtual hosts, you can create and change files in the /home/ide/configs/apache2/ directory. After creating or modifying any Apache configuration file, you must restart the apache2 service by running the following command:

supervisorctl restart apache2