FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-lambda-layer/build-php-remi.sh at master · stackery/php-lambda-layer · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
stackery
/
php-lambda-layer
Public archive
Notifications
You must be signed in to change notification settings
Fork
67
Star
322
Code
Issues
16
Pull requests
7
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
php-lambda-layer
/
build-php-remi.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
45 lines (31 loc) · 1.19 KB
Breadcrumbs
php-lambda-layer
/
build-php-remi.sh
Copy path
File metadata and controls
executable file
·
45 lines (31 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!
/bin/bash -e
PHP_MINOR_VERSION=
$1
echo
"
Building layer for PHP 7.
$PHP_MINOR_VERSION
- using Remi repository
"
yum install -y wget
yum install -y yum-utils
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget https://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh epel-release-latest-6.noarch.rpm
rpm -Uvh remi-release-6.rpm
yum-config-manager --enable remi-php7
${PHP_MINOR_VERSION}
yum install -y httpd
yum install -y postgresql-devel
yum install -y libargon2-devel
yum install -y --disablerepo=
"
*
"
--enablerepo=
"
remi,remi-php7
${PHP_MINOR_VERSION}
"
php php-mbstring php-pdo php-mysql php-pgsql php-xml php-process
mkdir /tmp/layer
cd
/tmp/layer
cp /opt/layer/bootstrap bootstrap
sed
"
s/PHP_MINOR_VERSION/
${PHP_MINOR_VERSION}
/g
"
/opt/layer/php.ini
>
php.ini
mkdir bin
cp /usr/bin/php bin/
mkdir lib
for
lib
in
libncurses.so.5 libtinfo.so.5 libpcre.so.0
;
do
cp
"
/lib64/
${lib}
"
lib/
done
cp /usr/lib64/libedit.so.0 lib/
cp /usr/lib64/libargon2.so.0 lib/
cp /usr/lib64/libpq.so.5 lib/
cp /usr/lib64/libonig.so.5 lib/
mkdir -p lib/php/7.
${PHP_MINOR_VERSION}
cp -a /usr/lib64/php/modules lib/php/7.
${PHP_MINOR_VERSION}
/
zip -r /opt/layer/php7
${PHP_MINOR_VERSION}
.zip
.
Back
|
FazBrowse Home
|
New Git URL