From 3abd90411d28d654709e2540bbd56857f1905292 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 5 Mar 2021 20:52:36 +0200 Subject: [PATCH] Add notes for 2021-03-05 --- content/posts/2021-03.md | 24 ++++++++++++++++++++ docs/2021-02/index.html | 4 ++-- docs/2021-03/index.html | 30 +++++++++++++++++++++---- docs/categories/index.html | 2 +- docs/categories/notes/index.html | 2 +- docs/categories/notes/page/2/index.html | 2 +- docs/categories/notes/page/3/index.html | 2 +- docs/categories/notes/page/4/index.html | 2 +- docs/categories/notes/page/5/index.html | 2 +- docs/index.html | 2 +- docs/page/2/index.html | 2 +- docs/page/3/index.html | 2 +- docs/page/4/index.html | 2 +- docs/page/5/index.html | 2 +- docs/page/6/index.html | 2 +- docs/page/7/index.html | 2 +- docs/posts/index.html | 2 +- docs/posts/page/2/index.html | 2 +- docs/posts/page/3/index.html | 2 +- docs/posts/page/4/index.html | 2 +- docs/posts/page/5/index.html | 2 +- docs/posts/page/6/index.html | 2 +- docs/posts/page/7/index.html | 2 +- docs/sitemap.xml | 12 +++++----- 24 files changed, 78 insertions(+), 32 deletions(-) diff --git a/content/posts/2021-03.md b/content/posts/2021-03.md index 9d627ca77..fd8f2bc1d 100644 --- a/content/posts/2021-03.md +++ b/content/posts/2021-03.md @@ -94,4 +94,28 @@ value.partition(/[0-9]+\([0-9]+\)/)[1].replace(/^\d+\((\d+)\)/,"$1") # to get jo - added pagination (extent) - changed the license to "other" because CC-BY-NC-ND is not printed anywhere in the PDF or external item page +## 2021-03-05 + +- I migrated the Docker bind mount for the AReS Elasticsearch container to a Docker volume: + +```console +$ docker-compose -f docker/docker-compose.yml down +$ docker volume create docker_esData_7 +$ docker container create --name dummy -v docker_esData_7:/root hello-world +$ docker container create --name es_dummy -v docker_esData_7:/usr/share/elasticsearch/data:rw elasticsearch:7.6.2 +$ docker cp docker/esData_7/nodes es_dummy:/usr/share/elasticsearch/data +$ docker rm es_dummy +# edit docker/docker-compose.yml to switch from bind mount to volume +$ docker-compose -f docker/docker-compose.yml up -d +``` + +- The trick is that when you create a volume like "myvolume" from a `docker-compose.yml` file, Docker will create it with the name "docker_myvolume" + - If you create it manually on the command line with `docker volume create myvolume` then the name is literally "myvolume" +- I still need to make the changes to git master and add these notes to the pull request so Moayad and others can benefit +- Delete the `openrxv-items-temp` index to test a fresh harvesting: + +```console +$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp' +``` + diff --git a/docs/2021-02/index.html b/docs/2021-02/index.html index db403056d..bc4d47c9f 100644 --- a/docs/2021-02/index.html +++ b/docs/2021-02/index.html @@ -32,7 +32,7 @@ $ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty - + @@ -72,7 +72,7 @@ $ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty "url": "https://alanorth.github.io/cgspace-notes/2021-02/", "wordCount": "4170", "datePublished": "2021-02-01T10:13:54+02:00", - "dateModified": "2021-02-24T09:21:07+02:00", + "dateModified": "2021-03-04T22:46:05+02:00", "author": { "@type": "Person", "name": "Alan Orth" diff --git a/docs/2021-03/index.html b/docs/2021-03/index.html index 2fc76cb8d..9e7b88141 100644 --- a/docs/2021-03/index.html +++ b/docs/2021-03/index.html @@ -19,7 +19,7 @@ Also, we found some issues building and running OpenRXV currently due to ecosyst - + @@ -44,9 +44,9 @@ Also, we found some issues building and running OpenRXV currently due to ecosyst "@type": "BlogPosting", "headline": "March, 2021", "url": "https://alanorth.github.io/cgspace-notes/2021-03/", - "wordCount": "653", + "wordCount": "802", "datePublished": "2021-03-01T10:13:54+02:00", - "dateModified": "2021-03-01T10:13:54+02:00", + "dateModified": "2021-03-04T22:46:05+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -229,7 +229,29 @@ value.partition(/[0-9]+\([0-9]+\)/)[1].replace(/^\d+\((\d+)\)/,"$1") # - +

2021-03-05

+ +
$ docker-compose -f docker/docker-compose.yml down
+$ docker volume create docker_esData_7
+$ docker container create --name dummy -v docker_esData_7:/root hello-world
+$ docker container create --name es_dummy -v docker_esData_7:/usr/share/elasticsearch/data:rw elasticsearch:7.6.2
+$ docker cp docker/esData_7/nodes es_dummy:/usr/share/elasticsearch/data 
+$ docker rm es_dummy
+# edit docker/docker-compose.yml to switch from bind mount to volume
+$ docker-compose -f docker/docker-compose.yml up -d
+
+
$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
+
diff --git a/docs/categories/index.html b/docs/categories/index.html index 32487c53e..b2d837b2f 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html index ea93aa520..2a13e14c9 100644 --- a/docs/categories/notes/index.html +++ b/docs/categories/notes/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html index 139791b8c..fca6bff7f 100644 --- a/docs/categories/notes/page/2/index.html +++ b/docs/categories/notes/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html index eaabf9ff5..916fd4cc6 100644 --- a/docs/categories/notes/page/3/index.html +++ b/docs/categories/notes/page/3/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html index e3da136a9..644e1de05 100644 --- a/docs/categories/notes/page/4/index.html +++ b/docs/categories/notes/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/5/index.html b/docs/categories/notes/page/5/index.html index 4d32e6568..1aaf4bf7f 100644 --- a/docs/categories/notes/page/5/index.html +++ b/docs/categories/notes/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/index.html b/docs/index.html index 3084d4361..c2bd19277 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/2/index.html b/docs/page/2/index.html index 68a5bc8cf..ffb5af820 100644 --- a/docs/page/2/index.html +++ b/docs/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/3/index.html b/docs/page/3/index.html index 8ceedb34e..3feb7e99d 100644 --- a/docs/page/3/index.html +++ b/docs/page/3/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/4/index.html b/docs/page/4/index.html index 7967d97f5..a532b484d 100644 --- a/docs/page/4/index.html +++ b/docs/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/5/index.html b/docs/page/5/index.html index a079e0e9d..d055b1f8f 100644 --- a/docs/page/5/index.html +++ b/docs/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/6/index.html b/docs/page/6/index.html index 4f71a0f79..233ae3d34 100644 --- a/docs/page/6/index.html +++ b/docs/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/7/index.html b/docs/page/7/index.html index 8f608cae2..31a3816d8 100644 --- a/docs/page/7/index.html +++ b/docs/page/7/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/index.html b/docs/posts/index.html index dac15505d..36ff9f890 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html index 5f0a8df7b..630bf1cf3 100644 --- a/docs/posts/page/2/index.html +++ b/docs/posts/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html index 1b3cc261b..336d78ce6 100644 --- a/docs/posts/page/3/index.html +++ b/docs/posts/page/3/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html index b5c64fbbd..432b03cf7 100644 --- a/docs/posts/page/4/index.html +++ b/docs/posts/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html index 4e068e15a..a603be872 100644 --- a/docs/posts/page/5/index.html +++ b/docs/posts/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html index b2a298796..a017fb903 100644 --- a/docs/posts/page/6/index.html +++ b/docs/posts/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/7/index.html b/docs/posts/page/7/index.html index 4723ee532..dc3a07c27 100644 --- a/docs/posts/page/7/index.html +++ b/docs/posts/page/7/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index c75a0b065..e4bfa2477 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -3,22 +3,22 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> https://alanorth.github.io/cgspace-notes/categories/ - 2021-03-01T10:13:54+02:00 + 2021-03-04T22:46:05+02:00 https://alanorth.github.io/cgspace-notes/ - 2021-03-01T10:13:54+02:00 + 2021-03-04T22:46:05+02:00 https://alanorth.github.io/cgspace-notes/2021-03/ - 2021-03-01T10:13:54+02:00 + 2021-03-04T22:46:05+02:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2021-03-01T10:13:54+02:00 + 2021-03-04T22:46:05+02:00 https://alanorth.github.io/cgspace-notes/posts/ - 2021-03-01T10:13:54+02:00 + 2021-03-04T22:46:05+02:00 https://alanorth.github.io/cgspace-notes/2021-02/ - 2021-02-24T09:21:07+02:00 + 2021-03-04T22:46:05+02:00 https://alanorth.github.io/cgspace-notes/2021-01/ 2021-01-31T16:32:16+02:00