diff --git a/content/posts/2018-05.md b/content/posts/2018-05.md index 76305775e..9e5b703db 100644 --- a/content/posts/2018-05.md +++ b/content/posts/2018-05.md @@ -385,3 +385,17 @@ dspace=# \copy (select distinct text_value, count(*) from metadatavalue where me ## 2018-05-31 - Clarify CGSpace's usage of Google Analytics and personally identifiable information during user registration for Bioversity team who had been asking about GDPR compliance +- Testing running PostgreSQL in a Docker container on localhost because when I'm on Arch Linux there isn't an easily installable package for particular PostgreSQL versions +- Now I can just use Docker: + +``` +$ docker pull postgres:9.5-alpine +$ docker run --name dspacedb -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.5-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 -O -U dspacetest -d dspacetest -W -h localhost ~/Downloads/cgspace_2018-05-30.backup +$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;' +$ psql -h localhost -U dspacetest -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest +$ psql -h localhost -U postgres dspacetest +``` diff --git a/docs/2018-05/index.html b/docs/2018-05/index.html index 4e8f3b31d..bd3b6be97 100644 --- a/docs/2018-05/index.html +++ b/docs/2018-05/index.html @@ -27,7 +27,7 @@ Also, I switched it to use OpenJDK instead of Oracle Java, as well as re-worked - + @@ -65,9 +65,9 @@ Also, I switched it to use OpenJDK instead of Oracle Java, as well as re-worked "@type": "BlogPosting", "headline": "May, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-05/", - "wordCount": "3385", + "wordCount": "3502", "datePublished": "2018-05-01T16:43:54+03:00", - "dateModified": "2018-05-30T17:44:58-07:00", + "dateModified": "2018-05-31T14:31:03-07:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -587,8 +587,21 @@ $ sed 's/.*Item1.*/\n&/g' ~/cifor-duplicates.txt > ~/cifor-duplicates-cle +
$ docker pull postgres:9.5-alpine
+$ docker run --name dspacedb -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.5-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 -O -U dspacetest -d dspacetest -W -h localhost ~/Downloads/cgspace_2018-05-30.backup
+$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;'
+$ psql -h localhost -U dspacetest -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest
+$ psql -h localhost -U postgres dspacetest
+
+ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 297110168..135c7b1dc 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-05/ - 2018-05-30T17:44:58-07:00 + 2018-05-31T14:31:03-07:00 @@ -164,7 +164,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-05-30T17:44:58-07:00 + 2018-05-31T14:31:03-07:00 0 @@ -175,7 +175,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-05-30T17:44:58-07:00 + 2018-05-31T14:31:03-07:00 0 @@ -187,13 +187,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2018-05-30T17:44:58-07:00 + 2018-05-31T14:31:03-07:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-05-30T17:44:58-07:00 + 2018-05-31T14:31:03-07:00 0