Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
id2
S
Software
S
services
FAIR
Software Quality Assurance
Commits
7d4726a3
Commit
7d4726a3
authored
May 27, 2020
by
Maximilian Dolling
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev'
# Conflicts: # meta/ci-services-report.md
parents
a8baeb64
fbfe8c20
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
build/docker/production/Dockerfile
build/docker/production/Dockerfile
+1
-1
build/docker/production/docker-entrypoint.sh
build/docker/production/docker-entrypoint.sh
+23
-1
build/docker/production/entrypoint-manual.txt
build/docker/production/entrypoint-manual.txt
+3
-1
No files found.
build/docker/production/Dockerfile
View file @
7d4726a3
...
...
@@ -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
...
...
build/docker/production/docker-entrypoint.sh
View file @
7d4726a3
...
...
@@ -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
...
...
build/docker/production/entrypoint-manual.txt
View file @
7d4726a3
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment