mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2021-03-05
This commit is contained in:
@ -19,7 +19,7 @@ Also, we found some issues building and running OpenRXV currently due to ecosyst
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2021-03/" />
|
||||
<meta property="article:published_time" content="2021-03-01T10:13:54+02:00" />
|
||||
<meta property="article:modified_time" content="2021-03-01T10:13:54+02:00" />
|
||||
<meta property="article:modified_time" content="2021-03-04T22:46:05+02:00" />
|
||||
|
||||
|
||||
|
||||
@ -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") #
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
<h2 id="2021-03-05">2021-03-05</h2>
|
||||
<ul>
|
||||
<li>I migrated the Docker bind mount for the AReS Elasticsearch container to a Docker volume:</li>
|
||||
</ul>
|
||||
<pre><code class="language-console" data-lang="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
|
||||
</code></pre><ul>
|
||||
<li>The trick is that when you create a volume like “myvolume” from a <code>docker-compose.yml</code> file, Docker will create it with the name “docker_myvolume”
|
||||
<ul>
|
||||
<li>If you create it manually on the command line with <code>docker volume create myvolume</code> then the name is literally “myvolume”</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>I still need to make the changes to git master and add these notes to the pull request so Moayad and others can benefit</li>
|
||||
<li>Delete the <code>openrxv-items-temp</code> index to test a fresh harvesting:</li>
|
||||
</ul>
|
||||
<pre><code class="language-console" data-lang="console">$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
|
||||
</code></pre><!-- raw HTML omitted -->
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user