Commit 3e3919bc authored by Maximilian Dolling's avatar Maximilian Dolling

added init

parent fe930816
......@@ -9,7 +9,7 @@ stages:
- sqa
variables:
VERSION: 0.4.2
VERSION: 0.4.3
DOCKER_DST_IMAGE_NAME: software-quality-assurance
build-deploy:dep:
......
# SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
#
# SPDX-License-Identifier: CC0-1.0
list-used-licenses:
# exclude patterns for license check
exclude:
-
# matching of imported name to name in pkg manager
rename:
lib:
# mark local imports to exclude from license check
local_imports:
apply-license:
description: 'software description'
copyright: 'copyright holder'
time: 'year'
maintainer:
name: 'maintainer name'
mail: 'maintainer mail'
licenses:
data:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
software:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
pictures:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
insignificant:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
\ No newline at end of file
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
\ No newline at end of file
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
{1}
{2}
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version, complemented with
the following provision:
For the scientific transparency and verification of results obtained
and communicated to the public after using a modified version of the
work, You (as the recipient of the source code and author of this
modified version, used to produce the published results in scientific
communications) commit to make this modified source code available in
a repository that is easily and freely accessible for a duration of
five years after the communication of the obtained results.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
\ No newline at end of file
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
<!--
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
-->
## License
Copyright © {1} {2}
This work is licensed under multiple licenses:
- The data set is licensed under [{3}](LICENSES/{3}.txt).
- Pictures are licensed under [{4}](LICENSES/{4}.txt).
- The source code and the accompanying material is licensed under [{5}](LICENSES/{5}.txt).
- Insignificant files are licensed under [{6}](LICENSES/{6}.txt).
Please see the individual files for more accurate information.
> **Hint:** We provided the copyright and license information in accordance to the [REUSE Specification 3.0](https://reuse.software/spec/).
\ No newline at end of file
......@@ -37,10 +37,11 @@ RUN apk upgrade
# copy entrypoint script to executables
COPY ./build/docker/dev/docker-entrypoint.sh /usr/local/bin/
COPY ./build/docker/dev/entrypoint-manual.txt /usr/local/bin/
RUN echo '0.4.2' > /version.txt
RUN echo '0.4.3' > /version.txt
# copy service scripts to root dir
COPY ./src/services /services
COPY ./src/utility /utility
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["--help"]
......@@ -43,16 +43,24 @@ if [ ! -d /repo ]; then
exit 1
fi
# checks if a .sqa.yml exists
if [ ! -f /repo/.sqa.yml ]; then
cat /usr/local/bin/entrypoint-manual.txt
# checks if a .sqa directory exists, running init, if not.
if [ ! -d /repo/.sqa ]; then
echo
echo "Repository does not contain a config for the Software Quality Assurance."
echo
echo "Running the init procedure now."
echo
echo "Visit https://gitext.gfz-potsdam.de/software/services/fair/software-quality-assurance/-/blob/master/doc/doc_service_description.md#general"
echo "for more information"
/utility/init/init.sh
exit 1
fi
# validate the settings
if ! python /utility/validate_settings.py; then
exit $?
fi
# checks for command line argument to start respective service
if [ "$1" = "--all" ]; then
echo "starting 'list-authors' service..."
......
......@@ -23,7 +23,7 @@
**Report Time:** 0
**Report Version:** 0.4.2
**Report Version:** 0.4.3
---
......@@ -115,8 +115,8 @@
* Unused licenses:
* Used licenses: CC-BY-4.0, CC0-1.0, GPL-3.0-or-later
* Read errors: 0
* Files with copyright information: 70 / 70
* Files with license information: 70 / 70
* Files with copyright information: 84 / 84
* Files with license information: 84 / 84
Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
......
# SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
#
# SPDX-License-Identifier: CC0-1.0
list-used-licenses:
# exclude patterns for license check
exclude:
-
# matching of imported name to name in pkg manager
rename:
lib:
# mark local imports to exclude from license check
local_imports:
apply-license:
description: 'software description'
copyright: 'copyright holder'
time: 'year'
maintainer:
name: 'maintainer name'
mail: 'maintainer mail'
licenses:
data:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
software:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
pictures:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
insignificant:
spdx-identifier: 'CC0-1.0'
copyright: 'copyright holder'
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
\ No newline at end of file
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
\ No newline at end of file
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
{1}
{2}
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version, complemented with
the following provision:
For the scientific transparency and verification of results obtained
and communicated to the public after using a modified version of the
work, You (as the recipient of the source code and author of this
modified version, used to produce the published results in scientific
communications) commit to make this modified source code available in
a repository that is easily and freely accessible for a duration of
five years after the communication of the obtained results.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
\ No newline at end of file
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
\ No newline at end of file
<!--
SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
SPDX-License-Identifier: CC0-1.0
-->
## License
Copyright © {1} {2}
This work is licensed under multiple licenses:
- The data set is licensed under [{3}](LICENSES/{3}.txt).
- Pictures are licensed under [{4}](LICENSES/{4}.txt).
- The source code and the accompanying material is licensed under [{5}](LICENSES/{5}.txt).
- Insignificant files are licensed under [{6}](LICENSES/{6}.txt).
Please see the individual files for more accurate information.
> **Hint:** We provided the copyright and license information in accordance to the [REUSE Specification 3.0](https://reuse.software/spec/).
\ No newline at end of file
#!/usr/bin/env bash
# software-quality-assurance
# This Software provides services to check and improve the source code quality of software-projects
#
# SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version, complemented with
# the following provision:
# For the scientific transparency and verification of results obtained
# and communicated to the public after using a modified version of the
# work, You (as the recipient of the source code and author of this
# modified version, used to produce the published results in scientific
# communications) commit to make this modified source code available in
# a repository that is easily and freely accessible for a duration of
# five years after the communication of the obtained results.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
REPO_DIR="/repo"
cd "$REPO_DIR" || exit 1
# test if folder with settings already exists
if [ -d /repo/.sqa ]; then
echo
echo "sqa was already initialized."
echo "If you want to re-initialize sqa, please remove the .sqa folder."
exit 1
fi
cp -r /services/init/.sqa "$REPO_DIR"
# software-quality-assurance
# This Software provides services to check and improve the source code quality of software-projects
#
# SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version, complemented with
# the following provision:
# For the scientific transparency and verification of results obtained
# and communicated to the public after using a modified version of the
# work, You (as the recipient of the source code and author of this
# modified version, used to produce the published results in scientific
# communications) commit to make this modified source code available in
# a repository that is easily and freely accessible for a duration of
# five years after the communication of the obtained results.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
print('settings valid...')
\ No newline at end of file
......@@ -29,7 +29,7 @@ SPDX-License-Identifier: CC0-1.0
**Report Time:** 0
**Report Version:** 0.4.2
**Report Version:** 0.4.3
---
......@@ -121,8 +121,8 @@ SPDX-License-Identifier: CC0-1.0
* Unused licenses:
* Used licenses: CC-BY-4.0, CC0-1.0, GPL-3.0-or-later
* Read errors: 0
* Files with copyright information: 70 / 70
* Files with license information: 70 / 70
* Files with copyright information: 84 / 84
* Files with license information: 84 / 84
Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment