Skip to content

Commit

Permalink
dockerfile: fix typo
Browse files Browse the repository at this point in the history
* docs: add context to migration commands
  • Loading branch information
kpsherva committed Jul 26, 2024
1 parent ba955cf commit 1333259
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Dockerfile that builds a fully functional image of your app.
# Dockerfile that builds a fully functional image of your app.
#
# This image installs all Python dependencies for your application. It's based
# on Almalinux (https://github.com/inveniosoftware/docker-invenio)
Expand Down
14 changes: 11 additions & 3 deletions cds_migrator_kit/rdm/migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ current_rdm_records_service.indexer.bulk_index((rec.id for rec in records))
gunicorn -b :8080 --timeout 120 --graceful-timeout 60 cds_migrator_kit.app:app
```




### Full migration workflow of one collection

#### Legacy

This is the recipe on how to dump the metadata and files. For local tests it is not necessary to do it often, especially for files which are static.
It makes sense to dump metadata if any changes are applied on legacy

```shell
ssh cds-wn-31 # inveniomigrator tool installed here
kinit cdsrdmeosdev
Expand All @@ -156,6 +156,14 @@ inveniomigrator dump records -q '980__:NOTE 037__:CERN-STUDENTS-Note-* -980:DELE
python copy_collection_files.py --dump-folder /eos/media/cds/cds-rdm/dev/migration/summer-student-notes/dump --files-destination /eos/media/cds/cds-rdm/dev/migration/summer-student-notes/files
```

## How to mount eos locally on MAC (to copy over the dumps and files)

1. Go to Finder icon on your dock
2. right click to get the contextual menu
3. choose connect to server
4. type `https://cernbox.cern.ch/cernbox/webdav/eos/media/cds/cds-rdm/dev/migration`
5. click connect
6. use eos account dev credentials

#### Openshift migration pod

Expand Down
4 changes: 2 additions & 2 deletions cds_migrator_kit/rdm/migration/streams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ old_secret_key: CHANGE_ME
new_secret_key: CHANGE_ME
records:
extract:
dirpath: cds_migrator_kit/rdm/migration/data/summer_student_reports
dirpath: cds_migrator_kit/rdm/migration/data/summer_student_reports/dump/
transform:
files_dump_dir: cds_migrator_kit/rdm/migration/data/files/
files_dump_dir: cds_migrator_kit/rdm/migration/data/summer_student_reports/files/

0 comments on commit 1333259

Please sign in to comment.