Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

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

Open
treii28 opened this issue Jul 29, 2019 · 1 comment
Open

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

treii28 opened this issue Jul 29, 2019 · 1 comment

Comments

@treii28
Copy link

treii28 commented Jul 29, 2019

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
Copy link
Author

treii28 commented Jul 29, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant