garnet icon indicating copy to clipboard operation
garnet copied to clipboard

Precompiled binaries

Open dceravigupta opened this issue 1 year ago • 19 comments

Are there any plans to release precompiled and signed binaries to simplify the process of hosting a standalone Garnet based cache?

dceravigupta avatar Mar 19 '24 07:03 dceravigupta

I'll add that I can't find any official docker files for use on docker hub ☹

talw-nym avatar Mar 19 '24 15:03 talw-nym

The Dockerfile variants are in the root folder of the repo here: https://github.com/microsoft/garnet. We are not yet hosting containers ourselves, but for now anyone in the community can host it. More details: https://microsoft.github.io/garnet/docs/welcome/releases#docker

badrishc avatar Mar 19 '24 17:03 badrishc

@talw-nym I've built and tested a signed Linux amd/arm image here: ghcr.io/pl4nty/garnet@sha256:07247278d5bd716063687feaf340f5271dbc41875835dc53fb552031311944b9

I'll work on Windows tonight, since WCOW BuildKit support recently released

pl4nty avatar Mar 20 '24 01:03 pl4nty

Wonderful, thanks!

badrishc avatar Mar 20 '24 21:03 badrishc

I built an image and pushed it to docker hub, which can be used directly. @talw-nym :v:

https://hub.docker.com/r/yzy613/garnet

y1jiong avatar Mar 21 '24 12:03 y1jiong

Here is a docker-free console application: lc6464/GarnetServer 😊 I compiled binaries for win-x64 win-arm64 linux-x64 linux-arm64 osx-arm64 and osx-x64 ❤️

lc6464 avatar Mar 21 '24 12:03 lc6464

@badrishc I hit a known issue with nested folders so couldn't compile natively on Windows, but I was able to cross-compile with some refactoring. It can be much faster in some build topologies like local builds, and allows exotic architectures like s390x (IBM z). This image has Linux amd/arm and Windows Nano Server: ghcr.io/pl4nty/garnet@sha256:3f48d012023ca4eb28f5cd14867d747e49f4e9037e279de696726c7cc133b3eb

I'm happy to send a PR, but I used prerelease Dockerfile syntax so it might not be ready to merge yet.

pl4nty avatar Mar 21 '24 13:03 pl4nty

Here is a docker-free console application: lc6464/GarnetServer 😊 I compiled binaries for win-x64 win-arm64 linux-x64 linux-arm64 osx-arm64 and osx-x64 ❤️

Just a question - how does your wrapper differ from the console application we have here: https://github.com/microsoft/garnet/tree/main/main/GarnetServer

badrishc avatar Mar 21 '24 15:03 badrishc

Just a question - how does your wrapper differ from the console application we have here: https://github.com/microsoft/garnet/tree/main/main/GarnetServer

Obviously, no difference. I only published some binaries. 🥰

lc6464 avatar Mar 21 '24 15:03 lc6464

An official dockerhub image would be very desirable for this. Almost every place where I can think of using this would require deployment via docker. And a few of those places would consider it a supply chain vulnerability to use an image provided by an unverified 3rd party.

Makes adoption much easier.

douglasg14b avatar Mar 21 '24 23:03 douglasg14b

https://github.com/pomazanbohdan/garnet-docker-compose

pomazanbohdan avatar Mar 22 '24 13:03 pomazanbohdan

Hi, I want to try out the Garnet but I am stuck by not getting precompiled RPM file for Enterprise Linux 9? Please make them available soon!

skrlance avatar Mar 23 '24 06:03 skrlance

Added a PR to add official multi-arch docker images: https://github.com/microsoft/garnet/pull/107

Niek avatar Mar 23 '24 10:03 Niek

I don't use docker, I just need direct installation rpm file

skrlance avatar Mar 23 '24 13:03 skrlance

I don't use docker, I just need direct installation rpm file

You can use latest release of my repo https://github.com/lc6464/GarnetServer

lc6464 avatar Mar 23 '24 13:03 lc6464

I don't use docker, I just need direct installation rpm file

You can use latest release of my repo https://github.com/lc6464/GarnetServer

There is no "rpm" file to install in your repo? I am not a programmer to compile or build! Kindly

skrlance avatar Mar 23 '24 13:03 skrlance

There is no "rpm" file to install in your repo? I am not a programmer to compile or build! Kindly

No, you can use wget to download linux-x64-based.tar.xz .

lc6464 avatar Mar 23 '24 13:03 lc6464

Download and where to put these three files to run Garner Server?

  1. libnative_device.so
  2. GarnetServer.pdb
  3. GarnetServer

skrlance avatar Mar 23 '24 13:03 skrlance

Download and where to put these three files to run Garner Server?

  1. libnative_device.so
  2. GarnetServer.pdb
  3. GarnetServer

You can put anywhere you want, and execute ./GarnetServer in that directory. But you should ensure dotnet has been installed.

lc6464 avatar Mar 23 '24 14:03 lc6464

We now have container packages here: https://github.com/microsoft/garnet/pkgs/container/garnet Any future containers will be put in this place too but what we put here is TBD. As for putting out containers in Docker Hub or Microsoft Artifact Registry is also TBD.

darrenge avatar Mar 28 '24 17:03 darrenge