stackery / php-lambda-layer

PHP Runtime Layer for AWS Lambda
Other
321 stars 71 forks source link

\"/opt/layer/build-php-remi.sh\": permission denied" #48

Open treii28 opened 5 years ago

treii28 commented 5 years ago

Downloading the git and running make works fine to build php71.zip but running make php73.zip I get the following error:

$ sudo make php73.zip docker run --rm -e http_proxy= -v /home/scottw/src/php-lambda-layer:/opt/layer lambci/lambda:build-nodejs8.10 /opt/layer/build-php-remi.sh 3 docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/opt/layer/build-php-remi.sh\": permission denied": unknown. Makefile:10: recipe for target 'php73.zip' failed make: *** [php73.zip] Error 126

treii28 commented 5 years ago

FYI, I was able to bash in and add +x to the .sh files in /opt/layer but the raw git pulled them without execute set.

EDIT: But it failed to build php or any of the modules. I see an error with no key for remi-release and epel-release but it looks like it tried to install them anyway, then there's an error trying to pull libargon2-devel:

No package libargon2-devel available. Error: Nothing to do Loaded plugins: ovl, priorities There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos with yum-config-manager --enable cp: cannot stat ‘/usr/bin/php’: No such file or directory cp: cannot stat ‘/usr/lib64/libargon2.so.0’: No such file or directory cp: cannot stat ‘/usr/lib64/php/modules’: No such file or directory