Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
ccae23af
Commit
ccae23af
authored
Mar 27, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ip
parent
77d28fd1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
run.py
init_container/sync-job-status/run.py
+1
-1
docker-entrypoint.sh
job/db-sync/docker-entrypoint.sh
+2
-2
docker-entrypoint.sh
job/rabbitmq-sync/docker-entrypoint.sh
+2
-2
No files found.
init_container/sync-job-status/run.py
View file @
ccae23af
...
...
@@ -4,7 +4,7 @@ import json
import
os
def
check
():
url
=
"http://
eos.quantgroups.com
/api/etcd/get_env_job_status"
url
=
"http://
192.168.6.13
/api/etcd/get_env_job_status"
querystring
=
{
"namespace"
:
os
.
getenv
(
'NAMESPACE'
)}
headers
=
{}
...
...
job/db-sync/docker-entrypoint.sh
View file @
ccae23af
...
...
@@ -9,7 +9,7 @@ db_is_running=0
export
NAMESPACE
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
curl
--request
POST
\
--url
http://
eos.quantgroups.com
/api/etcd/set_env_job_status
\
--url
http://
192.168.6.13
/api/etcd/set_env_job_status
\
--header
'Content-Type: application/json'
\
--data
"{
\"
namespace
\"
:
\"
$NAMESPACE
\"
,
\"
job_name
\"
:
\"
db_sync
\"
,
\"
status
\"
:
\"
pending
\"
}"
...
...
@@ -110,6 +110,6 @@ do
done
curl
--request
POST
\
--url
http://
eos.quantgroups.com
/api/etcd/set_env_job_status
\
--url
http://
192.168.6.13
/api/etcd/set_env_job_status
\
--header
'Content-Type: application/json'
\
--data
"{
\"
namespace
\"
:
\"
$NAMESPACE
\"
,
\"
job_name
\"
:
\"
db_sync
\"
,
\"
status
\"
:
\"
done
\"
}"
job/rabbitmq-sync/docker-entrypoint.sh
View file @
ccae23af
...
...
@@ -6,7 +6,7 @@ is_running=0
export
NAMESPACE
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
curl
--request
POST
\
--url
http://
eos.quantgroups.com
/api/etcd/set_env_job_status
\
--url
http://
192.168.6.13
/api/etcd/set_env_job_status
\
--header
'Content-Type: application/json'
\
--data
"{
\"
namespace
\"
:
\"
$NAMESPACE
\"
,
\"
job_name
\"
:
\"
rabbitmq_sync
\"
,
\"
status
\"
:
\"
pending
\"
}"
...
...
@@ -38,6 +38,6 @@ if [[ $is_running -eq 1 ]]
fi
curl
--request
POST
\
--url
http://
eos.quantgroups.com
/api/etcd/set_env_job_status
\
--url
http://
192.168.6.13
/api/etcd/set_env_job_status
\
--header
'Content-Type: application/json'
\
--data
"{
\"
namespace
\"
:
\"
$NAMESPACE
\"
,
\"
job_name
\"
:
\"
rabbitmq_sync
\"
,
\"
status
\"
:
\"
done
\"
}"
\ No newline at end of file
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