Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nrm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
nrm
Commits
f85f04bb
Commit
f85f04bb
authored
Dec 19, 2017
by
Swann Perarnau
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'small-fixes' into 'master'
Bugfixes for recently implemented features See merge request
!10
parents
7786fb66
dec31967
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
bin/app
bin/app
+1
-1
nrm/containers.py
nrm/containers.py
+1
-1
nrm/daemon.py
nrm/daemon.py
+1
-1
No files found.
bin/app
View file @
f85f04bb
...
...
@@ -108,7 +108,7 @@ class DownstreamApplication(object):
self
.
progress
.
start
()
# retrieve our container uuid
self
.
container_uuid
=
os
.
environ
.
get
(
'
container
'
)
self
.
container_uuid
=
os
.
environ
.
get
(
'
ARGO_CONTAINER_UUID
'
)
if
self
.
container_uuid
is
None
:
logger
.
error
(
"missing container uuid"
)
exit
(
1
)
...
...
nrm/containers.py
View file @
f85f04bb
...
...
@@ -49,11 +49,11 @@ class ContainerManager(object):
"/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
)
environ
[
'AC_APP_NAME'
]
=
manifest
.
name
environ
[
'AC_METADATA_URL'
]
=
"localhost"
environ
[
'container'
]
=
'argo'
logger
.
info
(
"run: environ: %r"
,
environ
)
# create container
container_name
=
request
[
'uuid'
]
environ
[
'ARGO_CONTAINER_UUID'
]
=
container_name
logger
.
info
(
"creating container %s"
,
container_name
)
self
.
nodeos
.
create
(
container_name
,
allocation
)
logger
.
info
(
"created container %s"
,
container_name
)
...
...
nrm/daemon.py
View file @
f85f04bb
...
...
@@ -86,7 +86,7 @@ class Daemon(object):
outcb
=
partial
(
self
.
do_children_io
,
container_uuid
,
'stdout'
)
errcb
=
partial
(
self
.
do_children_io
,
container_uuid
,
'stderr'
)
container
.
process
.
stdout
.
read_until_close
(
outcb
,
outcb
)
container
.
process
.
stderr
.
read_until_close
(
errcb
,
out
cb
)
container
.
process
.
stderr
.
read_until_close
(
errcb
,
err
cb
)
elif
command
==
'kill'
:
logger
.
info
(
"asked to kill container: %r"
,
msg
)
response
=
self
.
container_manager
.
kill
(
msg
[
'uuid'
])
...
...
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