Add notes for 2019-07-16

This commit is contained in:
2019-07-16 18:14:28 +03:00
parent e459decb03
commit d27c147f86
3 changed files with 55 additions and 8 deletions

View File

@ -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: -->