From 31b9c38d36ac4be8b82bf1549e7278a48f7af514 Mon Sep 17 00:00:00 2001 From: Thanh Tran Date: Sat, 21 Feb 2026 11:26:52 +0700 Subject: [PATCH] chore(docker): revert the docker org to erikbra instead of grate-devs or gratedevs --- build-docker-local.sh | 10 +++++----- docs/AlpineLinuxSupport.md | 12 ++++++------ examples/docker/docker-compose.yml | 2 +- examples/k8s/initcontainer/Dockerfile | 4 ++-- examples/k8s/initcontainer/Dockerfile-db | 2 +- examples/k8s/initcontainer/deployment.yaml | 4 ++-- .../sample-service/sample-service.csproj | 2 +- examples/k8s/multitenancy/Dockerfile | 4 ++-- examples/k8s/multitenancy/Dockerfile-db | 3 +-- examples/k8s/multitenancy/deployment.yaml | 4 ++-- examples/k8s/multitenancy/sample-service/Program.cs | 8 ++++---- .../sample-service/sample-service.csproj | 4 ++-- 12 files changed, 29 insertions(+), 30 deletions(-) diff --git a/build-docker-local.sh b/build-docker-local.sh index b396419c..cffc95fd 100755 --- a/build-docker-local.sh +++ b/build-docker-local.sh @@ -70,8 +70,8 @@ BUILD_ARGS=( --file ./installers/docker/Dockerfile --platform "$PLATFORM" --build-arg VERSION="$VERSION" - --tag grate-devs/grate:$VERSION - --tag grate-devs/grate:latest + --tag erikbra/grate:$VERSION + --tag erikbra/grate:latest ) # Add --load if single platform or explicitly requested @@ -88,8 +88,8 @@ docker buildx build "${BUILD_ARGS[@]}" . echo "" echo "Build completed successfully!" echo "Image tags:" -echo " - grate-devs/grate:$VERSION" -echo " - grate-devs/grate:latest" +echo " - erikbra/grate:$VERSION" +echo " - erikbra/grate:latest" echo "" echo "To test the image:" -echo " docker run --rm --platform $PLATFORM grate-devs/grate:latest --help" +echo " docker run --rm --platform $PLATFORM erikbra/grate:latest --help" diff --git a/docs/AlpineLinuxSupport.md b/docs/AlpineLinuxSupport.md index c9eef90c..4c97b728 100644 --- a/docs/AlpineLinuxSupport.md +++ b/docs/AlpineLinuxSupport.md @@ -17,7 +17,7 @@ Alpine Linux users can use grate through multiple distribution methods without n The official grate Docker image is built on Alpine Linux and is the recommended approach for Alpine users: ```sh -docker pull grate-devs/grate:latest +docker pull erikbra/grate:latest ``` The Docker image: @@ -30,7 +30,7 @@ See the [Getting Grate](/getting-grate/) documentation for Docker usage examples ### 2. Standalone linux-musl Binaries -Pre-built binaries for linux-musl (Alpine's libc implementation) are available for download from the [releases page](https://github.com/erikbra/grate/releases/latest): +Pre-built binaries for linux-musl (Alpine's libc implementation) are available for download from the [releases page](https://github.com/grate-devs/grate/releases/latest): - `grate-linux-musl-x64-self-contained-{version}.zip` - For x86_64/amd64 systems - `grate-linux-musl-arm64-self-contained-{version}.zip` - For ARM64 systems @@ -41,10 +41,10 @@ These self-contained binaries work on Alpine Linux without requiring .NET runtim ```sh # Download the appropriate binary (replace {version} with actual version like 2.0.5) -wget https://github.com/erikbra/grate/releases/download/{version}/grate-linux-musl-x64-self-contained-{version}.zip +wget https://github.com/grate-devs/grate/releases/download/{version}/grate-linux-musl-x64-self-contained-{version}.zip # Or use latest release -wget https://github.com/erikbra/grate/releases/latest/download/grate-linux-musl-x64-self-contained-{version}.zip +wget https://github.com/grate-devs/grate/releases/latest/download/grate-linux-musl-x64-self-contained-{version}.zip # Extract to a directory unzip grate-linux-musl-x64-self-contained-{version}.zip -d grate-bin @@ -63,7 +63,7 @@ For Alpine users who prefer to build from source: apk add dotnet-sdk icu-libs # Clone and build -git clone https://github.com/erikbra/grate.git +git clone https://github.com/grate-devs/grate.git cd grate dotnet build -c Release ``` @@ -91,7 +91,7 @@ If there is significant demand for a native Alpine package, community contributi - Be maintained in sync with grate releases - Potentially be submitted to the Alpine package repository -Please open a discussion on the [GitHub repository](https://github.com/erikbra/grate) if you're interested in contributing this. +Please open a discussion on the [GitHub repository](https://github.com/grate-devs/grate) if you're interested in contributing this. ## Summary diff --git a/examples/docker/docker-compose.yml b/examples/docker/docker-compose.yml index 268cfee7..822ec09d 100644 --- a/examples/docker/docker-compose.yml +++ b/examples/docker/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.7" services: db-migration: #build: . - image: gratedevs/grate:latest + image: erikbra/grate:latest environment: # don't configure passwords here for real. This is just a sample! APP_CONNSTRING: "Server=db;Database=grate_test;User Id=sa;Password=gs8j4AS7h87jHg;TrustServerCertificate=True" diff --git a/examples/k8s/initcontainer/Dockerfile b/examples/k8s/initcontainer/Dockerfile index 5d1b9be1..98271aca 100644 --- a/examples/k8s/initcontainer/Dockerfile +++ b/examples/k8s/initcontainer/Dockerfile @@ -1,10 +1,10 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build WORKDIR . COPY sample-service/ ./sample-service/ RUN dotnet publish ./sample-service/*.csproj -c release -o ./publish/app -FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as runtime +FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS runtime WORKDIR /app COPY --from=build /publish/app . diff --git a/examples/k8s/initcontainer/Dockerfile-db b/examples/k8s/initcontainer/Dockerfile-db index fd813ff6..e05069fb 100644 --- a/examples/k8s/initcontainer/Dockerfile-db +++ b/examples/k8s/initcontainer/Dockerfile-db @@ -1,4 +1,4 @@ -FROM gratedevs/grate:latest as base +FROM erikbra/grate:latest as base WORKDIR /app COPY sql/ /db RUN mkdir /output diff --git a/examples/k8s/initcontainer/deployment.yaml b/examples/k8s/initcontainer/deployment.yaml index 6959de14..96c86828 100644 --- a/examples/k8s/initcontainer/deployment.yaml +++ b/examples/k8s/initcontainer/deployment.yaml @@ -39,7 +39,7 @@ spec: spec: initContainers: - name: db-migration - image: gratedevs/grate-sample-service:migration-latest + image: erikbra/grate-sample-service:migration-latest # please change to your docker migration image env: - name: APP_CONNSTRING value: "Server=db;Database=grate_test;User Id=sa;Password=gs8j4AS7h87jHg;TrustServerCertificate=True" @@ -47,7 +47,7 @@ spec: value: "1.0.0" containers: - name: sample-service - image: gratedevs/grate-sample-service:latest + image: erikbra/grate-sample-service:latest # please change to your docker image env: - name: ConnectionStrings__DefaultConnection value: "Server=db;Database=grate_test;User Id=sa;Password=gs8j4AS7h87jHg;TrustServerCertificate=True" diff --git a/examples/k8s/initcontainer/sample-service/sample-service.csproj b/examples/k8s/initcontainer/sample-service/sample-service.csproj index 3a1d56a8..ccca68a8 100644 --- a/examples/k8s/initcontainer/sample-service/sample-service.csproj +++ b/examples/k8s/initcontainer/sample-service/sample-service.csproj @@ -1,7 +1,7 @@ - $(TargetFramework) + net10.0 enable diff --git a/examples/k8s/multitenancy/Dockerfile b/examples/k8s/multitenancy/Dockerfile index 70ca6708..9594a339 100644 --- a/examples/k8s/multitenancy/Dockerfile +++ b/examples/k8s/multitenancy/Dockerfile @@ -1,10 +1,10 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build WORKDIR . COPY sample-service/ ./sample-service/ RUN dotnet publish ./sample-service/*.csproj -c release -o ./publish/app -FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as runtime +FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS runtime WORKDIR /app COPY --from=build /publish/app . diff --git a/examples/k8s/multitenancy/Dockerfile-db b/examples/k8s/multitenancy/Dockerfile-db index 2f7b4558..0d8cfaf7 100644 --- a/examples/k8s/multitenancy/Dockerfile-db +++ b/examples/k8s/multitenancy/Dockerfile-db @@ -1,7 +1,6 @@ -FROM gratedevs/grate:latest as base +FROM erikbra/grate:latest AS base WORKDIR /app COPY sql/ /db COPY script/ ./ RUN chmod +x ./migrate.sh -RUN mkdir /output ENTRYPOINT ["./migrate.sh"] \ No newline at end of file diff --git a/examples/k8s/multitenancy/deployment.yaml b/examples/k8s/multitenancy/deployment.yaml index 2171d72b..33ae0445 100644 --- a/examples/k8s/multitenancy/deployment.yaml +++ b/examples/k8s/multitenancy/deployment.yaml @@ -39,7 +39,7 @@ spec: spec: initContainers: - name: db-migration - image: gratedevs/grate-sample-service:migration-latest + image: erikbra/grate-sample-service:migration-latest # please change to your docker migration image env: - name: ADMIN_CONNSTRING value: "Server=db;Database=master;User Id=sa;Password=gs8j4AS7h87jHg;TrustServerCertificate=True" @@ -53,7 +53,7 @@ spec: value: "sqlserver" # mariadb | oracle | postgresql | sqlite | sqlserver containers: - name: sample-service - image: gratedevs/grate-sample-service:latest + image: erikbra/grate-sample-service:latest # please change to your docker image env: - name: ConnectionStrings__DefaultConnection value: "Server=db;Database=example;User Id=sa;Password=gs8j4AS7h87jHg;TrustServerCertificate=True" diff --git a/examples/k8s/multitenancy/sample-service/Program.cs b/examples/k8s/multitenancy/sample-service/Program.cs index ef7e0fc6..2b97de6b 100644 --- a/examples/k8s/multitenancy/sample-service/Program.cs +++ b/examples/k8s/multitenancy/sample-service/Program.cs @@ -1,6 +1,7 @@ -using grate; -using grate.SqlServer; +using grate.DependencyInjection; +using grate.sqlserver.DependencyInjection; using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; var builder = WebApplication.CreateBuilder(args); var configuration = builder.Configuration; @@ -10,8 +11,7 @@ grateBuilder.WithAdminConnectionString(configuration.GetConnectionString("AdminConnection")!); grateBuilder.WithConnectionString(configuration.GetConnectionString("DefaultConnection")!); grateBuilder.WithSqlFilesDirectory("/db"); - grateBuilder.UseSqlServer(); -}); +}).UseSqlServer(); var app = builder.Build(); app.UseRouting(); app.MapControllers(); diff --git a/examples/k8s/multitenancy/sample-service/sample-service.csproj b/examples/k8s/multitenancy/sample-service/sample-service.csproj index ab8c63c4..67ffccce 100644 --- a/examples/k8s/multitenancy/sample-service/sample-service.csproj +++ b/examples/k8s/multitenancy/sample-service/sample-service.csproj @@ -1,12 +1,12 @@ - $(TargetFramework) + net10.0 enable - +