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
c2c2c8aa
Commit
c2c2c8aa
authored
May 27, 2020
by
Maximilian Dolling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed version output and put error message to the bottom
parent
6edc5c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
build/docker/dev/docker-entrypoint.sh
build/docker/dev/docker-entrypoint.sh
+10
-8
No files found.
build/docker/dev/docker-entrypoint.sh
View file @
c2c2c8aa
...
...
@@ -28,21 +28,28 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Version first, because it does not require any other files or settings.
if
[
"
$1
"
=
"--version"
]
;
then
cat
/version.txt
exit
0
fi
# checks if a repository was bound to the docker image
if
[
!
-d
/repo
]
;
then
echo
echo
"Repository to run services on not bound! Showing help page..."
cat
/usr/local/bin/entrypoint-manual.txt
echo
echo
"Repository to run services on not bound! Showing help page..."
exit
1
fi
# checks if a .ci-service.yml exists
if
[
!
-f
/repo/.ci-services.yml
]
;
then
cat
/usr/local/bin/entrypoint-manual.txt
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
...
...
@@ -128,13 +135,8 @@ if [ "$1" = "--test" ]; then
exit
0
fi
if
[
"
$1
"
=
"--version"
]
;
then
cat
/version.txt
exit
0
fi
# if no suitable argument was found, shows help page
cat
/usr/local/bin/entrypoint-manual.txt
echo
echo
"Unknown command line argument! Showing help page..."
cat
/usr/local/bin/entrypoint-manual.txt
exit
1
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