|
@@ -26,24 +26,7 @@
|
|
|
"source": [
|
|
|
"with open('./tmp/remote.txt', 'r') as f:\n",
|
|
|
" lines = [s.strip() for s in f.readlines()]\n",
|
|
|
- " ssh_remote = lines[2].replace('Push URL: https://github.com/', 'ssh://root@dg02.dg.rcos.nii.ac.jp:3001/') # ssh_remote = lines[2].replace('Push URL: http://dg02.dg.rcos.nii.ac.jp/', 'ssh://root@dg02.dg.rcos.nii.ac.jp:3001/')"
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "cell_type": "code",
|
|
|
- "execution_count": 9,
|
|
|
- "metadata": {},
|
|
|
- "outputs": [
|
|
|
- {
|
|
|
- "name": "stdout",
|
|
|
- "output_type": "stream",
|
|
|
- "text": [
|
|
|
- "ssh://root@dg02.dg.rcos.nii.ac.jp:3001/ivis-mizuguchi/workflow-template\n"
|
|
|
- ]
|
|
|
- }
|
|
|
- ],
|
|
|
- "source": [
|
|
|
- "print(ssh_remote)"
|
|
|
+ " ssh_push_url = lines[2].replace('Push URL: https://github.com/', 'ssh://root@dg02.dg.rcos.nii.ac.jp:3001/') # ssh_remote = lines[2].replace('Push URL: http://dg02.dg.rcos.nii.ac.jp/', 'ssh://root@dg02.dg.rcos.nii.ac.jp:3001/')"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -64,12 +47,10 @@
|
|
|
"\n",
|
|
|
"with open('../../params.yaml', 'w') as yf:\n",
|
|
|
" yaml.dump({\n",
|
|
|
- " \"SSH_PUSH_URL\": ssh_remote,\n",
|
|
|
+ " \"SSH_PUSH_URL\": ssh_push_url,\n",
|
|
|
" \"SIBLING_NAME\": \"gin\",\n",
|
|
|
" \"DEFAULT_BRANCH\": \"origin\"\n",
|
|
|
- " }, yf, default_flow_style=False)\n",
|
|
|
- "with open('../../params.yaml', 'r') as yf:\n",
|
|
|
- " print(yaml.safe_load(yf))"
|
|
|
+ " }, yf, default_flow_style=False)"
|
|
|
]
|
|
|
}
|
|
|
],
|