I plan to deploy the master branch onto the AWS EC2 instance by using ssh and git pull to retrieve the resource merged in the master branch and update the resources on EC2.
so the script goes as :
E: Unable to locate package ssh
./devops/build-for-production.sh: line 4: ssh: command not found
Hello @Jeffrey Jacobo ,
Welcome to Atlassian Community.
This error usually happens when the package list of your system, in this case the container with php:7.4-fpm image, is not updated or does not have this package (ssh) available to be installed.
In order to re-synchronize the package index files from their remote sources, you should first execute :
apt-get update
This will download the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies.
After it, you can then install the package by running
apt-get install -y ssh
You can try changing your script to include the commands above and let us know how it goes.
Thank you, @Jeffrey Jacobo .
Kind regards,
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.