{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixops/issues/302","repository_url":"https://api.github.com/repos/NixOS/nixops","labels_url":"https://api.github.com/repos/NixOS/nixops/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixops/issues/302/comments","events_url":"https://api.github.com/repos/NixOS/nixops/issues/302/events","html_url":"https://github.com/NixOS/nixops/issues/302","id":83675254,"number":302,"title":"Restart things when deploying containers","user":{"login":"pikajude","id":316117,"avatar_url":"https://avatars.githubusercontent.com/u/316117?v=3","gravatar_id":"","url":"https://api.github.com/users/pikajude","html_url":"https://github.com/pikajude","followers_url":"https://api.github.com/users/pikajude/followers","following_url":"https://api.github.com/users/pikajude/following{/other_user}","gists_url":"https://api.github.com/users/pikajude/gists{/gist_id}","starred_url":"https://api.github.com/users/pikajude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikajude/subscriptions","organizations_url":"https://api.github.com/users/pikajude/orgs","repos_url":"https://api.github.com/users/pikajude/repos","events_url":"https://api.github.com/users/pikajude/events{/privacy}","received_events_url":"https://api.github.com/users/pikajude/received_events","type":"User","site_admin":false},"labels":[{"id":296769757,"url":"https://api.github.com/repos/NixOS/nixops/labels/backends/container","name":"backends/container","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-06-01T20:19:27Z","updated_at":"2017-01-10T16:53:17Z","closed_at":null,"body":"Neither containers nor their contained servers get restarted when relevant config files are changed.\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixops/issues/comments/271630512","html_url":"https://github.com/NixOS/nixops/issues/302#issuecomment-271630512","issue_url":"https://api.github.com/repos/NixOS/nixops/issues/302","id":271630512,"user":{"login":"regnat","id":7226587,"avatar_url":"https://avatars.githubusercontent.com/u/7226587?v=3","gravatar_id":"","url":"https://api.github.com/users/regnat","html_url":"https://github.com/regnat","followers_url":"https://api.github.com/users/regnat/followers","following_url":"https://api.github.com/users/regnat/following{/other_user}","gists_url":"https://api.github.com/users/regnat/gists{/gist_id}","starred_url":"https://api.github.com/users/regnat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regnat/subscriptions","organizations_url":"https://api.github.com/users/regnat/orgs","repos_url":"https://api.github.com/users/regnat/repos","events_url":"https://api.github.com/users/regnat/events{/privacy}","received_events_url":"https://api.github.com/users/regnat/received_events","type":"User","site_admin":false},"created_at":"2017-01-10T16:53:17Z","updated_at":"2017-01-10T16:53:17Z","body":"This is not related to nixops container backend, but to nixos declarative containers (see https://nixos.org/nixos/manual/index.html#sec-declarative-containers), which I think are intentionally not restarted.\r\nIf you want to manage your container using nixops, you should use something like this : \r\n\r\n```nix\r\n{\r\n  network.description = \"Container test\";\r\n\r\n  machine1 = { ... }:\r\n  {\r\n    deployment.targetEnv = \"virtualbox\";\r\n  };\r\n  container1 = { resources, ... }:\r\n  {\r\n     deployment.targetEnv = \"container\";\r\n     deployment.container.host = resources.machines.machine1;\r\n     services.nginx.enable = true;\r\n     services.nginx.httpConfig = ''\r\n      server {\r\n      }\r\n    '';\r\n };\r\n}\r\n```"}}
{"actor":{"display_login":"regnat"}}