-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/70' into merge/70/into/main
- Loading branch information
Showing
62 changed files
with
1,086 additions
and
668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Use the SDK image to build the app | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy AS build-env | ||
WORKDIR /app | ||
ARG COMMIT | ||
|
||
# Copy csproj and restore as distinct layers | ||
COPY ./Lib9c/Lib9c/Lib9c.csproj ./Lib9c/ | ||
COPY ./NineChronicles.Headless/NineChronicles.Headless.csproj ./NineChronicles.Headless/ | ||
COPY ./NineChronicles.Headless.AccessControlCenter/NineChronicles.Headless.AccessControlCenter.csproj ./NineChronicles.Headless.AccessControlCenter/ | ||
RUN dotnet restore Lib9c | ||
RUN dotnet restore NineChronicles.Headless | ||
RUN dotnet restore NineChronicles.Headless.AccessControlCenter | ||
|
||
# Copy everything else and build | ||
COPY . ./ | ||
RUN dotnet publish NineChronicles.Headless.AccessControlCenter/NineChronicles.Headless.AccessControlCenter.csproj \ | ||
-c Release \ | ||
-r linux-x64 \ | ||
-o out \ | ||
--self-contained \ | ||
--version-suffix $COMMIT | ||
|
||
# Build runtime image | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 | ||
WORKDIR /app | ||
RUN apt-get update && apt-get install -y libc6-dev | ||
COPY --from=build-env /app/out . | ||
|
||
# Install native deps & utilities for production | ||
RUN apt-get update \ | ||
&& apt-get install -y --allow-unauthenticated \ | ||
libc6-dev jq curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
VOLUME /data | ||
|
||
ENTRYPOINT ["dotnet", "NineChronicles.Headless.AccessControlCenter.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Use the SDK image to build the app | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy AS build-env | ||
WORKDIR /app | ||
ARG COMMIT | ||
|
||
# Copy csproj and restore as distinct layers | ||
COPY ./Lib9c/Lib9c/Lib9c.csproj ./Lib9c/ | ||
COPY ./NineChronicles.Headless/NineChronicles.Headless.csproj ./NineChronicles.Headless/ | ||
COPY ./NineChronicles.Headless.AccessControlCenter/NineChronicles.Headless.AccessControlCenter.csproj ./NineChronicles.Headless.AccessControlCenter/ | ||
RUN dotnet restore Lib9c | ||
RUN dotnet restore NineChronicles.Headless | ||
RUN dotnet restore NineChronicles.Headless.AccessControlCenter | ||
|
||
# Copy everything else and build | ||
COPY . ./ | ||
RUN dotnet publish NineChronicles.Headless.AccessControlCenter/NineChronicles.Headless.AccessControlCenter.csproj \ | ||
-c Release \ | ||
-r linux-x64 \ | ||
-o out \ | ||
--self-contained \ | ||
--version-suffix $COMMIT | ||
|
||
# Build runtime image | ||
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim | ||
WORKDIR /app | ||
RUN apt-get update && apt-get install -y libc6-dev | ||
COPY --from=build-env /app/out . | ||
|
||
# Install native deps & utilities for production | ||
RUN apt-get update \ | ||
&& apt-get install -y --allow-unauthenticated \ | ||
libc6-dev jq curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
VOLUME /data | ||
|
||
ENTRYPOINT ["dotnet", "NineChronicles.Headless.AccessControlCenter.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Use the SDK image to build the app | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy AS build-env | ||
WORKDIR /app | ||
ARG COMMIT | ||
|
||
# Copy csproj and restore as distinct layers | ||
COPY ./Lib9c/Lib9c/Lib9c.csproj ./Lib9c/ | ||
COPY ./NineChronicles.Headless/NineChronicles.Headless.csproj ./NineChronicles.Headless/ | ||
COPY ./NineChronicles.Headless.AccessControlCenter/NineChronicles.Headless.AccessControlCenter.csproj ./NineChronicles.Headless.AccessControlCenter/ | ||
RUN dotnet restore Lib9c | ||
RUN dotnet restore NineChronicles.Headless | ||
RUN dotnet restore NineChronicles.Headless.AccessControlCenter | ||
|
||
# Copy everything else and build | ||
COPY . ./ | ||
RUN dotnet publish NineChronicles.Headless.AccessControlCenter/NineChronicles.Headless.AccessControlCenter.csproj \ | ||
-c Release \ | ||
-r linux-arm64 \ | ||
-o out \ | ||
--self-contained \ | ||
--version-suffix $COMMIT | ||
|
||
# Build runtime image | ||
FROM --platform=linux/arm64 mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-arm64v8 | ||
WORKDIR /app | ||
RUN apt-get update && apt-get install -y libc6-dev | ||
COPY --from=build-env /app/out . | ||
|
||
# Install native deps & utilities for production | ||
RUN apt-get update \ | ||
&& apt-get install -y --allow-unauthenticated \ | ||
libc6-dev jq curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
VOLUME /data | ||
|
||
ENTRYPOINT ["dotnet", "NineChronicles.Headless.AccessControlCenter.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>NineChronicles Headless</title> | ||
<meta charset="UTF-8"/> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
</head> | ||
<body> | ||
<div class="flex min-h-screen min-w-screen justify-center items-center"> | ||
<div class="flex flex-col justify-center items-center gap-5"> | ||
<p class="bg-gray-700 p-5 text-white text-4xl font-extrabold">NineChronicles.Headless</p> | ||
<span>A headless node to validate, network, operate NineChronicles chain.</span> | ||
<hr class="w-full" /> | ||
<div class="flex flex-row justify-center items-center gap-2"> | ||
<a href="https://github.com/planetarium/NineChronicles.Headless"><i class="fa fa-github"></i> Repository</a> | ||
<span>|</span> | ||
<a href="https://planetarium.github.io/NineChronicles.Headless/graphql">GraphQL Docs</a> | ||
<span>|</span> | ||
<a href="https://planetarium.github.io/NineChronicles.Headless/cli">CLI Docs</a> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.