Skip to content

Commit

Permalink
gitops: restart always to all container
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvecerka23 committed Apr 8, 2024
1 parent 7a2acf1 commit 7dae2ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pre/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@
" deployment = deployment_info[deployment_id]\n",
" entry[\"environment\"] = {\"DEPLOYMENT_ID\": deployment_id}\n",
" entry[\"container_name\"] = deployment_id\n",
" entry[\"restart\"] = \"always\"\n",
" entry[\"labels\"] = {\n",
" \"built.from\": deployment[\"build_commit\"],\n",
" \"gitops.deployment_id\": deployment_id,\n",
Expand All @@ -415,7 +416,7 @@
" \"DATA_MACHINE_SOURCE_PATH\": data_machine_dir.replace(git_repo_root, \".\"),\n",
" }\n",
" }\n",
" passthroughs = [\"volumes\", \"ports\", \"restart\", \"devices\", \"container_name\", ]\n",
" passthroughs = [\"volumes\", \"ports\", \"devices\", \"container_name\", ]\n",
" for passthrough in passthroughs:\n",
" if passthrough in conf:\n",
" entry[passthrough] = conf[passthrough]\n",
Expand Down

0 comments on commit 7dae2ee

Please sign in to comment.