diff --git a/content/post/2018-01.md b/content/post/2018-01.md index 74016b218..87f4492b6 100644 --- a/content/post/2018-01.md +++ b/content/post/2018-01.md @@ -958,3 +958,16 @@ sys 0m12.317s - I tested the abstract cleanups on Bioversity's Journal Articles collection again that I had started a few days ago - In the end there were 324 items in the collection that were Limited Access, but only 199 had abstracts +- I want to document the workflow of adding a production PostgreSQL database to a development instance of [DSpace in Docker](https://github.com/alanorth/docker-dspace): + +``` +$ docker exec dspace_db dropdb -U postgres dspace +$ docker exec dspace_db createdb -U postgres -O dspace --encoding=UNICODE dspace +$ docker exec dspace_db psql -U postgres dspace -c 'alter user dspace createuser;' +$ docker cp test.dump dspace_db:/tmp/test.dump +$ docker exec dspace_db pg_restore -U postgres -d dspace /tmp/test.dump +$ docker exec dspace_db psql -U postgres dspace -c 'alter user dspace nocreateuser;' +$ docker exec dspace_db vacuumdb -U postgres dspace +$ docker cp ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspace_db:/tmp +$ docker exec dspace_db psql -U dspace -f /tmp/update-sequences.sql dspace +``` diff --git a/public/2018-01/index.html b/public/2018-01/index.html index 70ad25f33..6d14cdeba 100644 --- a/public/2018-01/index.html +++ b/public/2018-01/index.html @@ -92,7 +92,7 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv - + @@ -194,9 +194,9 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv "@type": "BlogPosting", "headline": "January, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-01/", - "wordCount": "5226", + "wordCount": "5329", "datePublished": "2018-01-02T08:35:54-08:00", - "dateModified": "2018-01-19T20:21:12+02:00", + "dateModified": "2018-01-20T10:44:30+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -1316,8 +1316,20 @@ sys 0m12.317s +
$ docker exec dspace_db dropdb -U postgres dspace
+$ docker exec dspace_db createdb -U postgres -O dspace --encoding=UNICODE dspace
+$ docker exec dspace_db psql -U postgres dspace -c 'alter user dspace createuser;'
+$ docker cp test.dump dspace_db:/tmp/test.dump
+$ docker exec dspace_db pg_restore -U postgres -d dspace /tmp/test.dump
+$ docker exec dspace_db psql -U postgres dspace -c 'alter user dspace nocreateuser;'
+$ docker exec dspace_db vacuumdb -U postgres dspace
+$ docker cp ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspace_db:/tmp
+$ docker exec dspace_db psql -U dspace -f /tmp/update-sequences.sql dspace
+
+ diff --git a/public/robots.txt b/public/robots.txt index 83b9cb92f..28997c233 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -31,7 +31,7 @@ Disallow: /cgspace-notes/2015-12/ Disallow: /cgspace-notes/2015-11/ Disallow: /cgspace-notes/ Disallow: /cgspace-notes/categories/ -Disallow: /cgspace-notes/tags/notes/ Disallow: /cgspace-notes/categories/notes/ +Disallow: /cgspace-notes/tags/notes/ Disallow: /cgspace-notes/post/ Disallow: /cgspace-notes/tags/ diff --git a/public/sitemap.xml b/public/sitemap.xml index 344cd4d23..392d0ae9f 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-01/ - 2018-01-19T20:21:12+02:00 + 2018-01-20T10:44:30+02:00 @@ -144,7 +144,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-01-19T20:21:12+02:00 + 2018-01-20T10:44:30+02:00 0 @@ -153,27 +153,27 @@ 0 - - https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-01-19T20:21:12+02:00 - 0 - - https://alanorth.github.io/cgspace-notes/categories/notes/ 2017-09-28T12:00:49+03:00 0 + + https://alanorth.github.io/cgspace-notes/tags/notes/ + 2018-01-20T10:44:30+02:00 + 0 + + https://alanorth.github.io/cgspace-notes/post/ - 2018-01-19T20:21:12+02:00 + 2018-01-20T10:44:30+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-01-19T20:21:12+02:00 + 2018-01-20T10:44:30+02:00 0