bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.93k stars 242 forks source link

Amazon Linux 2023 (EC2) #202

Closed ddouglas closed 3 months ago

ddouglas commented 6 months ago

Same vain as https://github.com/bbc/audiowaveform/issues/201

Can we get a build that can be installed on AL2023? I'm fixing to put together a script that will build it from source like what the OP of the above thread did for their docker container. I'll post back for other to see if it works.

chrisn commented 6 months ago

I already provide debian packages for Amazon Linux 2 (see releases), I'd welcome a PR to add Dockerfile and build script for Amazon Linux 2023 - see https://github.com/bbc/audiowaveform/tree/master/rpm. Does this need to be a statically linked build?

ddouglas commented 6 months ago

So I opted to just try and build the container in Github Actions and extract the binary from the container and upload it to S3 so I can pull it down onto my EC2 instances when needed. That works and we've even gone a step further and just built a custom AMI with this binary embedded.

As far as the instructions for AL2, 9/10, they won't work, and this case they didn't, with Al2023 due to AWS removed EPEL

It was the following command that was failing for me.

sudo yum install -y epel-release

I'll spin up a new instance and get you better output. Just now seeing this and I was reporting back like I stated.

ddouglas commented 3 months ago

We're using the docker image that this gent put together and then just extracting the binary with docker cp

https://github.com/bbc/audiowaveform/issues/202