Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Merge requests
!340
Switch back to old gitlab ci executor
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Switch back to old gitlab ci executor
wb-switch-back-to-old-gitlab-ci-executor
into
develop
Overview
0
Commits
2
Pipelines
0
Changes
4
Merged
Wojciech Barcik
requested to merge
wb-switch-back-to-old-gitlab-ci-executor
into
develop
4 years ago
Overview
0
Commits
2
Pipelines
0
Changes
4
Expand
Go back to the old Gitlab CI/CD configuration, because of weak performance of docker executor.
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
abb895e4
2 commits,
4 years ago
4 files
+
631
−
601
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
scripts/ci/hive-server.sh
+
35
−
4
Options
#!/bin/bash
# TODO This script needs review.
set
-euo
pipefail
HIVEMIND_PID
=
0
@@ -9,16 +11,27 @@ START_DELAY=5
# For debug only!
# HIVED_URL='{"default":"http://hived-node:8091"}'
# HIVED_URL='{"default":"http://172.17.0.1:8091"}'
# HIVED_URL='{"default":"http://127.0.0.1:8091"}'
# HIVEMIND_HTTP_PORT="8080"
# HIVEMIND_POSTGRESQL_CONNECTION_STRING="postgresql://syncad:devdev@localhost:5432/hive_test"
check_pid
()
{
if
[
-f
hive_server.pid
]
;
then
HIVEMIND_PID
=
`
cat
hive_server.pid
`
if
ps
-p
$HIVEMIND_PID
>
/dev/null
then
# Process is running
echo
"Process pid
$HIVEMIND_PID
is running"
else
# Process is not running
rm
hive_server.pid
HIVEMIND_PID
=
0
fi
else
HIVEMIND_PID
=
0
fi
}
stop
()
{
if
[
"
$HIVEMIND_PID
"
-gt
"0"
]
;
then
HIVEMIND_PID
=
`
cat
hive_server.pid
`
@@ -61,16 +74,34 @@ start() {
for
i
in
`
seq
1 10
`
;
do
if
[
-f
hive_server.pid
]
;
then
echo
"Hive server has been started (pid
$HIVEMIND_PID
)"
echo
"Starting hive server (pid
$HIVEMIND_PID
)"
# Wait some time to allow its initialization.
sleep
$START_DELAY
exit
0
# Check if process is still running.
if
ps
-p
$HIVEMIND_PID
>
/dev/null
then
echo
"Hive server is running (pid
$HIVEMIND_PID
)"
exit
0
else
# Check if process executed successfully or not.
if
wait
$HIVEMIND_PID
;
then
echo
"Hive server has been started (pid
$HIVEMIND_PID
)"
exit
0
else
RESULT
=
$?
echo
"Hive server terminated abnormally (returned
$RESULT
)"
rm
hive_server.pid
;
exit
$RESULT
fi
fi
else
sleep
1
fi
done
# If we are here something went wrong
# If we are here
,
something went wrong
.
echo
"Timeout reached. Hive server has not been started, exiting."
rm
hive_server.pid
;
exit
1
}
Loading