Commit a4fb0656 authored by Maximilian Dolling's avatar Maximilian Dolling

corrected missings

parent 7375b69a
......@@ -37,7 +37,7 @@ 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.0' > /version.txt
RUN echo '0.4.1' > /version.txt
# copy service scripts to root dir
COPY ./src/services /services
......
......@@ -36,15 +36,31 @@ if [ ! -d /repo ]; then
exit 1
fi
# checks if a .ci-service.yml exists
if [ ! -f /repo/.ci-services.yml ]; then
echo
echo "Repository does not contain a config for the ci-services."
echo "Visit https://gitext.gfz-potsdam.de/software/services/fair/ci-services/-/blob/master/doc/doc_service_description.md#general"
echo "for more information"
cat /usr/local/bin/entrypoint-manual.txt
exit 1
fi
# checks for command line argument to start respective service
if [ "$1" = "--all" ]; then
echo "starting 'list-authors' service..."
/services/list-authors/list-authors.sh
echo "starting 'list-used-languages' service..."
/services/list-used-languages/list-used-languages.sh
echo "starting 'list-used-licenses' service..."
/services/list-used-licenses/list-used-licenses.sh
echo "starting 'apply-license' service..."
/services/apply-license/apply-license.sh
echo "starting 'reuse-lint' service..."
/services/reuse-lint/reuse-lint.sh
echo "starting 'generate-report' service..."
/services/generate-report/generate-report.sh
chmod -R 777 /repo
......@@ -93,13 +109,19 @@ if [ "$1" = "--reuse-lint" ]; then
fi
if [ "$1" = "--test" ]; then
echo "starting 'list-authors' service..."
/services/list-authors/list-authors.sh --test
echo "starting 'list-used-languages' service..."
/services/list-used-languages/list-used-languages.sh --test
echo "starting 'list-used-licenses' service..."
/services/list-used-licenses/list-used-licenses.sh --test
echo "starting 'apply-license' service..."
/services/apply-license/apply-license.sh --test
echo "starting 'reuse-lint' service..."
/services/reuse-lint/reuse-lint.sh --test
echo "starting 'generate-report' service..."
/services/generate-report/generate-report.sh --test
chmod -R 777 /repo
......
......@@ -3,7 +3,9 @@ Usage: docker run -v [PATH/TO/REPO]:/repo [SERVICE]
Runs various services for software quality detection.
Needs a directory to run services on bound to '/repo'
Needs a directory to run services on bound to '/repo'.
The directory needs to be a git repository and needs to contain a config yaml.
Visit https://gitext.gfz-potsdam.de/software/services/fair/ci-services for more help.
Available services:
--all runs all services (reporting is last)
......
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