Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build-docker-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
12 changes: 6 additions & 6 deletions docs/AlpineLinuxSupport.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
```
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions examples/k8s/initcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion examples/k8s/initcontainer/Dockerfile-db
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gratedevs/grate:latest as base
FROM erikbra/grate:latest as base
WORKDIR /app
COPY sql/ /db
RUN mkdir /output
Expand Down
4 changes: 2 additions & 2 deletions examples/k8s/initcontainer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ 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"
- name: VERSION
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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>$(TargetFramework)</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions examples/k8s/multitenancy/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
Expand Down
3 changes: 1 addition & 2 deletions examples/k8s/multitenancy/Dockerfile-db
Original file line number Diff line number Diff line change
@@ -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"]
4 changes: 2 additions & 2 deletions examples/k8s/multitenancy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions examples/k8s/multitenancy/sample-service/Program.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>$(TargetFramework)</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\src\grate.sqlserver\grate.sqlserver.csproj" /> <!-- will use nuget package when publish-->
<PackageReference Include="grate.sqlserver" Version="2.0.0" />
</ItemGroup>

</Project>
Loading