-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from BUTR/dev
v1.5.0
- Loading branch information
Showing
119 changed files
with
7,983 additions
and
7,664 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1 @@ | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04 | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
\ | ||
# .NET dependencies | ||
libc6 \ | ||
libgcc1 \ | ||
libgssapi-krb5-2 \ | ||
libicu66 \ | ||
libssl1.1 \ | ||
libstdc++6 \ | ||
zlib1g \ | ||
\ | ||
# Mono | ||
mono-devel \ | ||
# Install Microsoft package feed | ||
&& wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ | ||
&& dpkg -i packages-microsoft-prod.deb \ | ||
&& rm packages-microsoft-prod.deb \ | ||
\ | ||
# Install .NET 6 & 7 | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
dotnet-sdk-6.0 \ | ||
dotnet-sdk-7.0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
FROM ghcr.io/butr/devcontainer:latest |
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 |
---|---|---|
@@ -1,11 +1,79 @@ | ||
{ | ||
"name": ".NET Core & Mono", | ||
"name": ".NET & Mono & Powershell", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
"dockerfile": "Dockerfile", | ||
"cacheFrom": [ | ||
"ghcr.io/butr/bannerlord.blse-devcontainer:latest" | ||
] | ||
}, | ||
"features": { | ||
"ghcr.io/butr/devcontainer/upgrade:1": { | ||
|
||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "latest", | ||
"ppa": "false" | ||
}, | ||
"ghcr.io/butr/devcontainer/mono:1": { | ||
|
||
}, | ||
"ghcr.io/devcontainers/features/dotnet:2": { | ||
|
||
}, | ||
"ghcr.io/devcontainers/features/powershell:1": { | ||
"version": "latest" | ||
"version": "latest" | ||
} | ||
}, | ||
"overrideFeatureInstallOrder": [ | ||
"ghcr.io/butr/devcontainer/upgrade", | ||
"ghcr.io/devcontainers/features/git", | ||
"ghcr.io/butr/devcontainer/mono", | ||
"ghcr.io/devcontainers/features/dotnet", | ||
"ghcr.io/devcontainers/features/powershell", | ||
], | ||
"containerEnv": { | ||
"DOTNET_CLI_TELEMETRY_OPTOUT": "true", | ||
"DOTNET_HTTPREPL_TELEMETRY_OPTOUT": "true", | ||
"DOTNET_NOLOGO": "true", | ||
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "true", | ||
"DOTNET_USE_POLLING_FILE_WATCHER": "true", | ||
"NUGET_XMLDOC_MODE": "skip", | ||
|
||
"BANNERLORD_BUTR_COMPATIBILITY_SCORE_URL": "${localEnv:BANNERLORD_BUTR_COMPATIBILITY_SCORE_URL}" | ||
}, | ||
"mounts": [ | ||
{ | ||
"source":"${localEnv:BANNERLORD_GAME_DIR}", | ||
"target":"/bannerlord", | ||
"type":"bind" | ||
} | ||
], | ||
"postStartCommand": { | ||
"dotnet restore": "dotnet restore src/Bannerlord.BLSE.sln" | ||
}, | ||
"postAttachCommand": "dotnet restore src/Bannerlord.BLSE.sln", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"editorconfig.editorconfig", | ||
"github.vscode-github-actions", | ||
"ms-vscode.powershell", | ||
"ms-azuretools.vscode-docker", | ||
"ms-dotnettools.csdevkit" | ||
], | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "pwsh", | ||
"terminal.integrated.profiles.linux": { | ||
"path": { | ||
"path": "/usr/local/bin/pwsh" | ||
} | ||
}, | ||
"powershell.powerShellAdditionalExePaths": { | ||
"pwsh": "/usr/local/bin/pwsh" | ||
}, | ||
"telemetry.telemetryLevel": "off", | ||
"dotnetAcquisitionExtension.enableTelemetry": false | ||
} | ||
} | ||
} | ||
} | ||
} |
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,33 @@ | ||
name: Dev Container Build and Push Image | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '.devcontainer/**/*' | ||
- '.github/workflows/devcontainer.yml' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: BUTR | ||
password: ${{ secrets.TOKEN_GPR }} | ||
- | ||
name: Pre-build dev container image | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/butr/bannerlord.blse-devcontainer | ||
cacheFrom: ghcr.io/butr/bannerlord.blse-devcontainer | ||
push: always |
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
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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
using System; | ||
|
||
namespace Bannerlord.BLSE | ||
{ | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class BLSEExceptionHandlerAttribute : Attribute { } | ||
} | ||
namespace Bannerlord.BLSE; | ||
|
||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class BLSEExceptionHandlerAttribute : Attribute { } |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
using System; | ||
|
||
namespace Bannerlord.BLSE | ||
{ | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class BLSEInterceptorAttribute : Attribute { } | ||
} | ||
namespace Bannerlord.BLSE; | ||
|
||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class BLSEInterceptorAttribute : Attribute { } |
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.