mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-22 06:35:03 +01:00
Add notes for 2019-07-16
This commit is contained in:
parent
e459decb03
commit
d27c147f86
@ -241,5 +241,28 @@ $ psql dspace -c 'update bundle set primary_bitstream_id=NULL where primary_bits
|
||||
UPDATE 1
|
||||
```
|
||||
|
||||
## 2019-07-16
|
||||
|
||||
- Completely reset the Podman configuration on my laptop because there were some layers that I couldn't delete and it had been some time since I did a cleanup:
|
||||
|
||||
```
|
||||
$ podman system prune -a -f --volumes
|
||||
$ sudo rm -rf ~/.local/share/containers
|
||||
```
|
||||
|
||||
- Then pull a new PostgreSQL 9.6 image and load a CGSpace database dump into a new local test container:
|
||||
|
||||
```
|
||||
$ podman pull postgres:9.6-alpine
|
||||
$ podman run --name dspacedb -v dspacedb_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine
|
||||
$ createuser -h localhost -U postgres --pwprompt dspacetest
|
||||
$ createdb -h localhost -U postgres -O dspacetest --encoding=UNICODE dspacetest
|
||||
$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest superuser;'
|
||||
$ pg_restore -h localhost -U postgres -d dspacetest -O --role=dspacetest -h localhost ~/Downloads/cgspace_2019-07-16.backup
|
||||
$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;'
|
||||
$ psql -h localhost -U postgres -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest
|
||||
```
|
||||
|
||||
- Start working on implementing the [CG Core v2 changes](https://gist.github.com/alanorth/2db39e91f48d116e00a4edffd6ba6409) on my local DSpace test environment
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -21,7 +21,7 @@ Abenet had another similar issue a few days ago when trying to find the stats fo
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2019-07/" />
|
||||
<meta property="article:published_time" content="2019-07-01T12:13:51+03:00"/>
|
||||
<meta property="article:modified_time" content="2019-07-11T20:08:42+03:00"/>
|
||||
<meta property="article:modified_time" content="2019-07-12T17:07:22+03:00"/>
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="July, 2019"/>
|
||||
@ -47,9 +47,9 @@ Abenet had another similar issue a few days ago when trying to find the stats fo
|
||||
"@type": "BlogPosting",
|
||||
"headline": "July, 2019",
|
||||
"url": "https:\/\/alanorth.github.io\/cgspace-notes\/2019-07\/",
|
||||
"wordCount": "1360",
|
||||
"wordCount": "1516",
|
||||
"datePublished": "2019-07-01T12:13:51\x2b03:00",
|
||||
"dateModified": "2019-07-11T20:08:42\x2b03:00",
|
||||
"dateModified": "2019-07-12T17:07:22\x2b03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -405,6 +405,30 @@ UPDATE 1
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2019-07-16">2019-07-16</h2>
|
||||
|
||||
<ul>
|
||||
<li><p>Completely reset the Podman configuration on my laptop because there were some layers that I couldn’t delete and it had been some time since I did a cleanup:</p>
|
||||
|
||||
<pre><code>$ podman system prune -a -f --volumes
|
||||
$ sudo rm -rf ~/.local/share/containers
|
||||
</code></pre></li>
|
||||
|
||||
<li><p>Then pull a new PostgreSQL 9.6 image and load a CGSpace database dump into a new local test container:</p>
|
||||
|
||||
<pre><code>$ podman pull postgres:9.6-alpine
|
||||
$ podman run --name dspacedb -v dspacedb_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine
|
||||
$ createuser -h localhost -U postgres --pwprompt dspacetest
|
||||
$ createdb -h localhost -U postgres -O dspacetest --encoding=UNICODE dspacetest
|
||||
$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest superuser;'
|
||||
$ pg_restore -h localhost -U postgres -d dspacetest -O --role=dspacetest -h localhost ~/Downloads/cgspace_2019-07-16.backup
|
||||
$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;'
|
||||
$ psql -h localhost -U postgres -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest
|
||||
</code></pre></li>
|
||||
|
||||
<li><p>Start working on implementing the <a href="https://gist.github.com/alanorth/2db39e91f48d116e00a4edffd6ba6409">CG Core v2 changes</a> on my local DSpace test environment</p></li>
|
||||
</ul>
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
||||
|
||||
|
@ -4,30 +4,30 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2019-07-12T14:05:21+03:00</lastmod>
|
||||
<lastmod>2019-07-12T17:07:22+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2019-07/</loc>
|
||||
<lastmod>2019-07-11T20:08:42+03:00</lastmod>
|
||||
<lastmod>2019-07-12T17:07:22+03:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||
<lastmod>2019-07-12T14:05:21+03:00</lastmod>
|
||||
<lastmod>2019-07-12T17:07:22+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2019-07-12T14:05:21+03:00</lastmod>
|
||||
<lastmod>2019-07-12T17:07:22+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||
<lastmod>2019-07-12T14:05:21+03:00</lastmod>
|
||||
<lastmod>2019-07-12T17:07:22+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user