-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcnsp.txt
36 lines (24 loc) · 1.11 KB
/
cnsp.txt
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
docker pull alpine
docker run -ti --name sample_cont alpine
docker exec -it sample_cont /bin/sh
apk update && apk upgrade
apk add php
docker run -ti --name sample_cont ubuntu
docker exec -it sample_cont /bin/sh
apt-get update -y && apt-get upgrade -y
apt-get autoremove
[ -f /var/run/reboot-required ] && reboot -f
# cat /etc/os-release
apt-get update
apt-get install -y lsb-release gnupg2 ca-certificates apt-transport-https software-properties-common
add-apt-repository ppa:ondrej/php -y
apt-get update -y
apt-get install php8.2 -y
apt-get install --no-install-recommends php8.2 -y
apt-get install php8.2-{bcmath,fpm,xml,mysql,zip,common,intl,ldap,gd,cli,bz2,curl,mbstring,pgsql,opcache,soap,cgi} -y
apt-get install curl -y
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
HASH=`curl -sS https://composer.github.io/installer.sig`
echo $HASH
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer