Skip to content

Commit be06995

Browse files
committed
Initial commit
0 parents  commit be06995

18 files changed

Lines changed: 605 additions & 0 deletions

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
12+
# 4 space indentation
13+
[*.cs]
14+
indent_style = space
15+
indent_size = 4
16+
17+
# Tab indentation (no size specified)
18+
[Makefile]
19+
indent_style = tab

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DEVELOPER_ID=_____ # Please replace with your Developer-ID
2+
3+
#PATH_CERTIFICATE=/path/to/CEZ # Optional [default: "CEZ"]
4+
#PATH_DOWNLOAD=/path/to/download # Optional [default: "."]
5+
#PATH_LOG=/path/to/log # Optional [default: "."]
6+
7+
# Warning:
8+
# Docker interprets double quotes " literally, use single quotes ' instead.
9+
# You could escape whitespaces with backslashes \ or explicitly escape a double quote with a backslash \"

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# vendored
2+
CEZ/** linguist-vendored
3+
include/** linguist-vendored
4+
vendor/** linguist-vendored
5+
.env.example linguist-vendored
6+
7+
# documentation
8+
*.md linguist-documentation
9+
*.png linguist-documentation
10+
11+
# C#
12+
*.cs linguist-language=C#
13+
14+
# Shell
15+
*.sh linguist-language=Shell
16+
17+
# Dockerfile
18+
Dockerfile linguist-language=Dockerfile
19+
20+
# Makefile
21+
Makefile linguist-language=Makefile

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
.vscode
3+
.idea
4+
.env
5+
otto.log*
6+
*.dll
7+
*.txt
8+
download
9+
bin
10+
obj

CEZ/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!.gitkeep

CEZ/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Run `./get-test-cez-certificate.sh` or copy Test-CEZ manually here.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
All notable changes to `csotto` will be documented in this file.
4+
5+
## v1.0.0 - 2024-06-08
6+
- Initial version
7+
- Utilizes Otto 40.1.8
8+
9+
**Full Changelog**: https://github.com/rechtlogisch/csotto/commits/v1.0.0

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
2+
WORKDIR /app
3+
4+
COPY *.csproj ./
5+
RUN dotnet restore
6+
7+
COPY csotto.cs ./
8+
RUN dotnet publish -a x64 -c Release
9+
10+
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS final
11+
WORKDIR /app
12+
COPY --from=build /app/bin/Release/net8.0/linux-x64/publish/ ./
13+
COPY ./CEZ/ ./CEZ/
14+
COPY ./vendor/*.so /usr/share/dotnet/shared/Microsoft.NETCore.App/"$DOTNET_VERSION"/
15+
ENTRYPOINT ["dotnet", "csotto.dll"]

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) RL Recht logisch GmbH & Co. KG [email protected]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
ENV_FILE ?= .env
2+
image := rechtlogisch/csotto
3+
4+
docker-build:
5+
docker build \
6+
--platform linux/amd64 \
7+
-t $(image) \
8+
.
9+
10+
docker-cmd:
11+
@docker run \
12+
-it --rm \
13+
--env-file=$(ENV_FILE) \
14+
--platform=linux/amd64 \
15+
-v $(PATH_DOWNLOAD):/app/download/ \
16+
--entrypoint="bash" \
17+
$(image)
18+
19+
docker-csotto:
20+
@docker run \
21+
-it --rm \
22+
--env-file=$(ENV_FILE) \
23+
--platform=linux/amd64 \
24+
--name=csotto \
25+
-v $(PATH_DOWNLOAD):/app/download/ \
26+
$(image) \
27+
$(input)

0 commit comments

Comments
 (0)