From e072a3d034954ba115ca7a19d3d5f8c95f77de44 Mon Sep 17 00:00:00 2001 From: jeongchanmin Date: Tue, 9 Jul 2024 22:13:41 +0900 Subject: [PATCH 1/2] =?UTF-8?q?:recycle:=20[Refactor]=20pecl=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ebextensions-dev/02-ffmpeg-package.config | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.ebextensions-dev/02-ffmpeg-package.config b/.ebextensions-dev/02-ffmpeg-package.config index d0db573..7127df6 100644 --- a/.ebextensions-dev/02-ffmpeg-package.config +++ b/.ebextensions-dev/02-ffmpeg-package.config @@ -2,19 +2,16 @@ packages: yum: ImageMagick: [] ImageMagick-devel: [] - php-pear: [] - php-devel: [] - commands: 01-wget: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" 02-mkdir: command: "if [ ! -d /opt/ffmpeg ] ; then mkdir -p /opt/ffmpeg; fi" 03-tar: - command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg" - 04-ln: - command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-4.2.2-amd64-static/ffmpeg /usr/bin/ffmpeg; fi" - 05-ln: - command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffmpeg-4.2.2-amd64-static/ffprobe /usr/bin/ffprobe; fi" - 06-pecl-install: - command: "if ! pecl list | grep imagick; then pecl install -f imagick; fi" + command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip-components=1" + 04-ln-ffmpeg: + command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg /usr/bin/ffmpeg; fi" + 05-ln-ffprobe: + command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffprobe /usr/bin/ffprobe; fi" + 06-pecl: + command: "if ! pecl list | grep -q imagick ; then pecl install -f imagick; fi" \ No newline at end of file From 0f83996c2862a9f05608a0b86d6977928328a97c Mon Sep 17 00:00:00 2001 From: jeongchanmin Date: Tue, 9 Jul 2024 22:21:43 +0900 Subject: [PATCH 2/2] =?UTF-8?q?:recycle:=20[Refactor]=20pecl=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ebextensions-dev/02-ffmpeg-package.config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ebextensions-dev/02-ffmpeg-package.config b/.ebextensions-dev/02-ffmpeg-package.config index 7127df6..348a9e8 100644 --- a/.ebextensions-dev/02-ffmpeg-package.config +++ b/.ebextensions-dev/02-ffmpeg-package.config @@ -2,6 +2,9 @@ packages: yum: ImageMagick: [] ImageMagick-devel: [] + php-pear: [] + php-cli: [] + commands: 01-wget: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz"