From d27c147f86afea2a6134e7198242c3ea3dade7e6 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 16 Jul 2019 18:14:28 +0300 Subject: [PATCH] Add notes for 2019-07-16 --- content/posts/2019-07.md | 23 +++++++++++++++++++++++ docs/2019-07/index.html | 30 +++++++++++++++++++++++++++--- docs/sitemap.xml | 10 +++++----- 3 files changed, 55 insertions(+), 8 deletions(-) diff --git a/content/posts/2019-07.md b/content/posts/2019-07.md index 4b3616e45..20490cb26 100644 --- a/content/posts/2019-07.md +++ b/content/posts/2019-07.md @@ -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 diff --git a/docs/2019-07/index.html b/docs/2019-07/index.html index 3a42ce854..3e2bbdc40 100644 --- a/docs/2019-07/index.html +++ b/docs/2019-07/index.html @@ -21,7 +21,7 @@ Abenet had another similar issue a few days ago when trying to find the stats fo - + @@ -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 +

2019-07-16

+ + + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 3aca93a83..2095c7b84 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,30 +4,30 @@ https://alanorth.github.io/cgspace-notes/ - 2019-07-12T14:05:21+03:00 + 2019-07-12T17:07:22+03:00 0 https://alanorth.github.io/cgspace-notes/2019-07/ - 2019-07-11T20:08:42+03:00 + 2019-07-12T17:07:22+03:00 https://alanorth.github.io/cgspace-notes/tags/notes/ - 2019-07-12T14:05:21+03:00 + 2019-07-12T17:07:22+03:00 0 https://alanorth.github.io/cgspace-notes/posts/ - 2019-07-12T14:05:21+03:00 + 2019-07-12T17:07:22+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2019-07-12T14:05:21+03:00 + 2019-07-12T17:07:22+03:00 0