-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Franke, Benedikt <[email protected]>
- Loading branch information
1 parent
df60ef7
commit 48a9db7
Showing
61 changed files
with
1,239 additions
and
1,117 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,3 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
* | ||
!dlr | ||
!pyproject.toml | ||
|
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,3 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
root = true | ||
|
||
[*] | ||
|
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 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
* text=auto eol=lf |
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,3 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Main | ||
|
||
on: | ||
|
@@ -50,8 +55,21 @@ jobs: | |
- name: Start type checking | ||
run: bash ./dev mypy | ||
|
||
license-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: bash ./dev install -e ".[all]" | ||
- name: Start license check | ||
run: bash ./dev licenses | ||
|
||
build-and-push-docker-image: | ||
needs: [lint-code, lint-doc, lint-scripts, mypy] | ||
needs: [lint-code, lint-doc, lint-scripts, mypy, license-check] | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
@@ -87,7 +105,7 @@ jobs: | |
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
build-pages: | ||
needs: [lint-code, lint-doc, lint-scripts, mypy] | ||
needs: [lint-code, lint-doc, lint-scripts, mypy, license-check] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
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,5 +1,11 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
/builds/ | ||
/out/ | ||
/node_modules/ | ||
|
||
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,intellij,windows,linux,python | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,intellij,windows,linux,python | ||
|
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,3 +1,8 @@ | ||
// SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
// SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Reference: https://github.com/DavidAnson/markdownlint | ||
// Rules: https://github.com/DavidAnson/markdownlint#rules--aliases | ||
// Exception: https://github.com/DavidAnson/markdownlint#configuration | ||
|
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,3 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
repos: | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
|
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,12 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: fl-demonstrator-client | ||
Upstream-Contact: | ||
Benedikt Franke <[email protected]> | ||
Florian Heinrich <[email protected]> | ||
Source: https://github.com/DLR-KI/fl-demonstrator-client | ||
|
||
# Sample paragraph, commented out: | ||
# | ||
# Files: src/* | ||
# Copyright: $YEAR $NAME <$CONTACT> | ||
# License: ... |
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,3 +1,7 @@ | ||
// SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
// SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
{ | ||
"recommendations": [ | ||
"davidanson.vscode-markdownlint", | ||
|
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,3 +1,7 @@ | ||
// SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
// SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
|
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,3 +1,7 @@ | ||
// SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
// SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
{ | ||
"cSpell.allowCompoundWords": true, | ||
"cSpell.language": "en,scientific-terms-us", | ||
|
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,15 +1,26 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM python:3.10-slim | ||
|
||
# add user: client | ||
RUN useradd -ms /bin/bash client | ||
USER client | ||
RUN mkdir /home/client/app | ||
WORKDIR /home/client/app | ||
|
||
# install app | ||
# install app dependencies (only) | ||
COPY --chown=client:client pyproject.toml README.md /home/client/app/ | ||
RUN mkdir -p dlr/fl/client && \ | ||
pip install --no-warn-script-location . && \ | ||
rm -rf dlr pyproject.toml README.md | ||
rm -rf dlr | ||
|
||
# install app | ||
COPY --chown=client:client dlr /home/client/app/dlr | ||
RUN pip install --no-warn-script-location . && \ | ||
rm -rf pyproject.toml README.md | ||
|
||
STOPSIGNAL SIGKILL | ||
EXPOSE 8101 | ||
|
Oops, something went wrong.