From d7b29ebaf54a5cfaf0d5046fdc4b9a1a36e8795b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zi=C4=99tkiewicz?= Date: Fri, 4 Jun 2021 15:52:21 +0200 Subject: [PATCH 1/2] Dodano opis konfiguracji remove DVC --- IUM_10.DVC.ipynb | 270 ++++++++++++++++++++++++++++++++++++++++----- IUM_12.Praca.ipynb | 2 +- 2 files changed, 243 insertions(+), 29 deletions(-) diff --git a/IUM_10.DVC.ipynb b/IUM_10.DVC.ipynb index 1c080cd..4674704 100644 --- a/IUM_10.DVC.ipynb +++ b/IUM_10.DVC.ipynb @@ -303,7 +303,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "id": "1e522a93", "metadata": { "slideshow": { @@ -864,26 +864,10 @@ }, { "cell_type": "code", - "execution_count": 29, - "id": "8ecf3091", - "metadata": { - "slideshow": { - "slide_type": "slide" - } - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " 0% Uploading| |0/1 [00:00 2021.5.30-ha878542_0\n", + " certifi 2020.12.5-py39hf3d152e_1 --> 2021.5.30-py39hf3d152e_0\n", + " dvc 2.1.0-py39hf3d152e_0 --> 2.3.0-py39hf3d152e_0\n", + " fsspec 0.9.0-pyhd8ed1ab_2 --> 2021.5.0-pyhd8ed1ab_0\n", + "\n", + "\n", + "\n", + "Downloading and Extracting Packages\n", + "certifi-2021.5.30 | 141 KB | ##################################### | 100% \n", + "fsspec-2021.5.0 | 77 KB | ##################################### | 100% \n", + "dvc-2.3.0 | 542 KB | ##################################### | 100% \n", + "invoke-1.5.0 | 137 KB | ##################################### | 100% \n", + "paramiko-2.7.2 | 135 KB | ##################################### | 100% \n", + "bcrypt-3.2.0 | 44 KB | ##################################### | 100% \n", + "pynacl-1.4.0 | 1.3 MB | ##################################### | 100% \n", + "dvc-ssh-2.3.0 | 9 KB | ##################################### | 100% \n", + "ca-certificates-2021 | 136 KB | ##################################### | 100% \n", + "Preparing transaction: done\n", + "Verifying transaction: done\n", + "Executing transaction: done\n", + "\n", + "Note: you may need to restart the kernel to use updated packages.\n" + ] + } + ], + "source": [ + "conda install -c conda-forge dvc-ssh" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "id": "e9a04876", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Setting 'ium_ssh_remote' as a default remote.\n", + "\u001b[0m" + ] + } + ], + "source": [ + "!dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "id": "e3f27bbb", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "my_local_remote\t/dvcstore\n", + "ium_ssh_remote\tssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp\n", + "\u001b[0m" + ] + } + ], + "source": [ + "!dvc remote list" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "id": "5b2fa175", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\u001b[0m" + ] + } + ], + "source": [ + "!dvc remote modify --local ium_ssh_remote password [hasło takie jak do serwera MLflow (patrz MSTeams)]" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "id": "ea6e16fa", + "metadata": { + "slideshow": { + "slide_type": "slide" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " 0% Uploading| |0/1 [00:00 Date: Fri, 4 Jun 2021 15:55:23 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Dodano=20link=20do=20przyk=C5=82adowego=20p?= =?UTF-8?q?rojektu=20Jenkins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IUM_10.DVC.ipynb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/IUM_10.DVC.ipynb b/IUM_10.DVC.ipynb index 4674704..a0f135c 100644 --- a/IUM_10.DVC.ipynb +++ b/IUM_10.DVC.ipynb @@ -1564,16 +1564,12 @@ " sh \"dvc remote modify --local ium_ssh_remote password $IUM_SFTP_KEY\"\n", " sh \"dvc pull\"\n", " }\n", - "```" + "```\n", + "\n", + "Przykład kongiguracji: \n", + " - https://tzietkiewicz.vm.wmi.amu.edu.pl:8080/job/docker-test-mount/ \n", + " - https://git.wmi.amu.edu.pl/tzietkiewicz/ium-helloworld" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "83778bf3", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {