Skip to content

Instantly share code, notes, and snippets.

@srameshr
Created September 7, 2020 15:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srameshr/05bd93cef8d7f08760bf1bcf8c08f113 to your computer and use it in GitHub Desktop.
Save srameshr/05bd93cef8d7f08760bf1bcf8c08f113 to your computer and use it in GitHub Desktop.
Create a folder at the root of your app or project called ```.ebextensions```
Inside the folder ```.ebextensions``` create a file called ```01_ffmpeg.config```
Inside this file paste in the below contents:
```
commands:
command1:
command: ls
command2:
command: "cd /usr/local/bin"
command3:
command: "mkdir ffmpeg"
cwd: /usr/local/bin
ignoreErrors: true
command4:
command: "cd /usr/local/bin/ffmpeg"
command5:
command: "wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz"
cwd: /usr/local/bin/ffmpeg
ignoreErrors: true
command6:
command: "tar -xf ffmpeg-release-amd64-static.tar.xz"
cwd: /usr/local/bin/ffmpeg
ignoreErrors: true
command7:
command: "ln -sfn /usr/local/bin/ffmpeg/ffmpeg-*-amd64-static/ffmpeg /usr/bin/ffmpeg"
cwd: /usr/local/bin/ffmpeg
ignoreErrors: true
command8:
command: "ln -sfn /usr/local/bin/ffmpeg/ffmpeg-*-amd64-static/ffprobe /usr/bin/ffprobe"
cwd: /usr/local/bin/ffmpeg
ignoreErrors: true
```
4. add the folder and file you just created to your source versioning system via ```git add .ebextensions/```
5. Commit via ```git commit -m "install ffmpeg on AWS"```
6. Deploy to beanstalk via ```eb deploy```
NOTES: Tutorial on syntax for the file - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment