Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi,
I’m trying to setup an automated script that should basically be able to automatically clone a project from my Github and install its dependencies via Composer.
Here is a simple version of the user_data that I’m sending through the API (supposing that all needed packages have correctly been installed):
#!/bin/bash
[...]
git clone git@github.com[...]
/usr/bin/php -d memory_limit=-1 composer.phar install
The problem is that the composer install command does nothing.
Everything else from my script works. I redirect all my stdin and stderr to a log file while my script is running, but when it comes to this command, nothing appears in this file, just like if it didn’t run.
The weird thing is that when I perform this command manually through ssh, it works as expected and install my dependencies correctly.
Please note that I already tried many alternatives, like installing composer via apt or via the official installer with that kind of script, without success:
#!/bin/bash
[...]
git clone git@github.com[...]
apt-get -y install composer
composer install
Does anyone have any idea to solve this issue?
Greetings,
41809fc37fa549b98a34934d238850
Código de referido Binance
yolanda smith
b1cfd497da4348d08019b0315db7a0
Deeraj EA
1ddffddc31ea402a842dcb134f6134
bec1cd09097d477da725b161a4066f
Anjanesh Lekshminarayanan
Anjanesh Lekshminarayanan
Md. Habibur Rahman Talukder Shamim
CCST
petarsubotic