diff --git a/Dockerfile.alpine b/Dockerfile.alpine deleted file mode 100644 index 6ebb3255ae..0000000000 --- a/Dockerfile.alpine +++ /dev/null @@ -1,42 +0,0 @@ -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build -ARG TARGETARCH -WORKDIR /src - -# Copy csproj and restore as distinct layers -COPY libs/client/*.csproj libs/client/ -COPY libs/cluster/*.csproj libs/cluster/ -COPY libs/common/*.csproj libs/common/ -COPY libs/host/*.csproj libs/host/ -COPY libs/server/*.csproj libs/server/ -COPY libs/storage/Tsavorite/cs/src/core/*.csproj libs/storage/Tsavorite/cs/src/core/ -COPY libs/storage/Tsavorite/cs/src/devices/AzureStorageDevice/*.csproj libs/storage/Tsavorite/cs/src/devices/AzureStorageDevice/ -COPY main/GarnetServer/*.csproj main/GarnetServer/ -COPY metrics/HdrHistogram/*.csproj metrics/HdrHistogram/ -COPY Directory.Build.props Directory.Build.props -COPY Directory.Packages.props Directory.Packages.props - -RUN dotnet restore main/GarnetServer/GarnetServer.csproj -a $TARGETARCH - -# Copy everthing else and publish app -COPY Garnet.snk Garnet.snk -COPY libs/ libs/ -COPY main/ main/ -COPY metrics/ metrics/ -COPY test/testcerts test/testcerts - -WORKDIR /src/main/GarnetServer -RUN dotnet publish -a $TARGETARCH -c Release -o /app --no-restore --self-contained false -f net8.0 - -# Final stage/image -FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine AS runtime -WORKDIR /app -COPY --from=build /app . - -# Run container as a non-root user -USER $APP_UID - -# For inter-container communication. -EXPOSE 6379 - -# Run GarnetServer with an index size of 128MB -ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"] diff --git a/Dockerfile.cbl-mariner b/Dockerfile.cbl-mariner deleted file mode 100644 index eb995919df..0000000000 --- a/Dockerfile.cbl-mariner +++ /dev/null @@ -1,42 +0,0 @@ -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build -ARG TARGETARCH -WORKDIR /src - -# Copy csproj and restore as distinct layers -COPY libs/client/*.csproj libs/client/ -COPY libs/cluster/*.csproj libs/cluster/ -COPY libs/common/*.csproj libs/common/ -COPY libs/host/*.csproj libs/host/ -COPY libs/server/*.csproj libs/server/ -COPY libs/storage/Tsavorite/cs/src/core/*.csproj libs/storage/Tsavorite/cs/src/core/ -COPY libs/storage/Tsavorite/cs/src/devices/AzureStorageDevice/*.csproj libs/storage/Tsavorite/cs/src/devices/AzureStorageDevice/ -COPY main/GarnetServer/*.csproj main/GarnetServer/ -COPY metrics/HdrHistogram/*.csproj metrics/HdrHistogram/ -COPY Directory.Build.props Directory.Build.props -COPY Directory.Packages.props Directory.Packages.props - -RUN dotnet restore main/GarnetServer/GarnetServer.csproj -a $TARGETARCH - -# Copy everthing else and publish app -COPY Garnet.snk Garnet.snk -COPY libs/ libs/ -COPY main/ main/ -COPY metrics/ metrics/ -COPY test/testcerts test/testcerts - -WORKDIR /src/main/GarnetServer -RUN dotnet publish -a $TARGETARCH -c Release -o /app --no-restore --self-contained false -f net8.0 - -# Final stage/image -FROM mcr.microsoft.com/dotnet/runtime:8.0-cbl-mariner2.0 AS runtime -WORKDIR /app -COPY --from=build /app . - -# Run container as a non-root user -USER $APP_UID - -# For inter-container communication. -EXPOSE 6379 - -# Run GarnetServer with an index size of 128MB -ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"] diff --git a/Dockerfile.nanoserver b/Dockerfile.nanoserver deleted file mode 100644 index a28cc81794..0000000000 --- a/Dockerfile.nanoserver +++ /dev/null @@ -1,25 +0,0 @@ -ARG TAG=ltsc2022 -FROM mcr.microsoft.com/dotnet/sdk:8.0-nanoserver-$TAG AS build - -WORKDIR /source - -# Copy files -COPY . . -WORKDIR /source/main/GarnetServer - -RUN dotnet restore -RUN dotnet build -c Release - -# Copy and publish app and libraries -RUN dotnet publish -c Release -o /app -r win-x64 --self-contained false -f net8.0 - -# Final stage/image -FROM mcr.microsoft.com/dotnet/runtime:8.0-nanoserver-$TAG AS runtime -WORKDIR /app -COPY --from=build /app . - -# For inter-container communication. -EXPOSE 6379 - -# Run GarnetServer with an index size of 128MB -ENTRYPOINT ["/app/GarnetServer.exe", "-i", "128m", "--port", "6379"] diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu deleted file mode 100644 index ac37b0b3b3..0000000000 --- a/Dockerfile.ubuntu +++ /dev/null @@ -1,42 +0,0 @@ -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build -ARG TARGETARCH -WORKDIR /src - -# Copy csproj and restore as distinct layers -COPY libs/client/*.csproj libs/client/ -COPY libs/cluster/*.csproj libs/cluster/ -COPY libs/common/*.csproj libs/common/ -COPY libs/host/*.csproj libs/host/ -COPY libs/server/*.csproj libs/server/ -COPY libs/storage/Tsavorite/cs/src/core/*.csproj libs/storage/Tsavorite/cs/src/core/ -COPY libs/storage/Tsavorite/cs/src/devices/AzureStorageDevice/*.csproj libs/storage/Tsavorite/cs/src/devices/AzureStorageDevice/ -COPY main/GarnetServer/*.csproj main/GarnetServer/ -COPY metrics/HdrHistogram/*.csproj metrics/HdrHistogram/ -COPY Directory.Build.props Directory.Build.props -COPY Directory.Packages.props Directory.Packages.props - -RUN dotnet restore main/GarnetServer/GarnetServer.csproj -a $TARGETARCH - -# Copy everthing else and publish app -COPY Garnet.snk Garnet.snk -COPY libs/ libs/ -COPY main/ main/ -COPY metrics/ metrics/ -COPY test/testcerts test/testcerts - -WORKDIR /src/main/GarnetServer -RUN dotnet publish -a $TARGETARCH -c Release -o /app --no-restore --self-contained false -f net8.0 - -# Final stage/image -FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy AS runtime -WORKDIR /app -COPY --from=build /app . - -# Run container as a non-root user -USER $APP_UID - -# For inter-container communication. -EXPOSE 6379 - -# Run GarnetServer with an index size of 128MB -ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"] diff --git a/README.md b/README.md index b7e3929367..9c0bf5a25e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +# PayEx fork of Garnet: +This might be useful... + # Garnet [![.NET CI](https://github.com/microsoft/garnet/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/microsoft/garnet/actions/workflows/ci.yml) [![Discord Shield](https://discordapp.com/api/guilds/1213937452272582676/widget.png?style=shield)](https://aka.ms/garnet-discord) diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index fdaaed0158..0000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,14 +0,0 @@ -services: - garnet: - image: 'ghcr.io/microsoft/garnet' - ulimits: - memlock: -1 - ports: - - "6379:6379" - # To avoid docker NAT, consider `host` mode. - # https://docs.docker.com/compose/compose-file/compose-file-v3/#network_mode - # network_mode: "host" - volumes: - - garnetdata:/data -volumes: - garnetdata: