amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
540 stars 40 forks source link

[Package Request] - Varnish #406

Open BernardRobbins opened 1 year ago

BernardRobbins commented 1 year ago

What package is missing from Amazon Linux 2023? Please describe and include package name. varnish https://varnish-cache.org varnish repo

Is this an update to existing package or new package request? new package request

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. Yes. EPEL.

Any additional information you'd like to include. (use-cases, etc)

stewartsmith commented 1 year ago

Is it this https://varnish-cache.org/intro/index.html#intro ?

BernardRobbins commented 1 year ago

Yes

jocel1 commented 1 year ago

you should be able to install varnish on AL2023 using os el and dist 9: https://packagecloud.io/install/repositories/varnishcache/varnish73/config_file.repo?os=el&dist=9&source=script

os=aws&dist=2023 should also work but it seems to be broken (I already opened a ticket for this: https://github.com/varnishcache/pkg-varnish-cache/issues/163 )

NeilJed commented 1 year ago

We require Varnish 7 as well - however we also need the varnish-devel so that we can compile custom modules.

Currently this won't install as it complains that nothing provides /usr/libexec/platform-python

dieguitoqueiroz commented 1 year ago

We also need Varnish 7.1. How to install in AWS Linux 2023?

BernardRobbins commented 1 year ago

@dieguitoqueiroz

ref: https://github.com/varnishcache/varnish-cache/blob/master/INSTALL

git clone https://github.com/varnishcache/varnish-cache cd varnish-cache git checkout varnish-7.3.0 sudo dnf install -y diffutils python3-sphinx libedit-devel autoconf automake libtool pcre2-devel sh autogen.sh sh configure make && make check #takes a long time sudo make install

dieguitoqueiroz commented 1 year ago

@BernardRobbins

I made all steps , now How can i start varnish in AWS Linux 2023, (like sudo systemctl start opensearch)? How can i check if is running, (like sudo systemctl status opensearch)? How can i make this auto-start when reboot the instance?

jocel1 commented 1 year ago

why not installing from the repository I mentioned above?

https://packagecloud.io/install/repositories/varnishcache/varnish73/config_file.repo?os=el&dist=9&source=script

dieguitoqueiroz commented 1 year ago

@jocel1 can you guide me how to install? I do not have all knowledge to do this.

driskell commented 1 year ago

why not installing from the repository I mentioned above?

https://packagecloud.io/install/repositories/varnishcache/varnish73/config_file.repo?os=el&dist=9&source=script

It could lead to issues. Varnish themselves won't support any issues with the package on Amazon Linux 2023. Neither will Amazon themselves.

https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html#epel

However, AL2023 doesn't support EPEL or EPEL-like repositories.

If a dependency ever got updated in AL2023 to a version not compatible with EPEL9 it would then stop installing and break - and I think the packaging source being compatible to EPEL9 would not be able to fix it, so you'd lose Varnish suddenly.