Skip to content

Commit

Permalink
Merge pull request #18 from gesiscss/append_init
Browse files Browse the repository at this point in the history
Add a single init_container instead of overwriting init_containers
  • Loading branch information
MridulS authored Jun 2, 2021
2 parents 4b1fc6d + ece8a8b commit 9a2f906
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ def start(self):
# because start command is run as an ENTRYPOINT and initcontainer's command overwrites it
# But start command will be executed in notebook container (because we dont define a custom command for it),
# so change will take place there, and on user's side, there is no problem
self.init_containers = [{
self.init_containers.append({
"name": "project-manager",
"image": self.image,
"command": command,
# volumes is already defined for notebook container (self.volumes)
"volume_mounts": [projects_volume_mount],
}]
})

# notebook container (user server)
# mount all projects (complete user disk) to /projects
Expand Down

0 comments on commit 9a2f906

Please sign in to comment.