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
bf5adf39
Commit
bf5adf39
authored
Mar 20, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
环境变量
parent
5c9a00fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
Dockerfile
init_container/sync_job_status/Dockerfile
+0
-1
run.py
init_container/sync_job_status/run.py
+0
-2
No files found.
init_container/sync_job_status/Dockerfile
View file @
bf5adf39
...
...
@@ -6,6 +6,5 @@ COPY run.py .
RUN
pip
install
requests
RUN
chmod
+x ./run.py
RUN
export
NAMESPACE
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
CMD
["python", "-c", "run.py"]
\ No newline at end of file
init_container/sync_job_status/run.py
View file @
bf5adf39
...
...
@@ -2,7 +2,6 @@ import requests
import
time
import
json
def
check
():
url
=
"http://192.168.29.116:9001/api/etcd/get_env_job_status"
querystring
=
{
"namespace"
:
os
.
getenv
(
'NAMESPACE'
)}
...
...
@@ -13,7 +12,6 @@ def check():
count
=
0
all_job_is_done
=
False
while
True
:
res
=
check
()
for
instance
in
res
[
"details"
][
"instances"
]:
...
...
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