-
Notifications
You must be signed in to change notification settings - Fork 17
Docker on Windows
Király Péter edited this page Feb 27, 2023
·
7 revisions
In Windows the docker setup is a bit different than in linux
Suppose you have the MARC/PICA files in a subdirectory of the current directory called data
. Most importantly, Windows use %cd%
to refer to the current director.
Steps:
- remove the existing container (if exists)
- recreate the container with
docker run -d -v %cd%\data:/opt/metadata-qa-marc/marc -p 8983:8983 -p 80:80 --name metadata-qa-marc pkiraly/metadata-qa-marc:0.6.0
- find the container identifier
docker ps -aqf "name=metadata-qa-marc"
it will give you a string such as bc0388a936c4
. You should use this in the following command
- list the mapped directory within the container, but please replace
bc0388a936c4
with the string you just get:
docker exec -it bc0388a936c4 ls -la /opt/metadata-qa-marc/marc
If the list will contain the files in your host's data
directory, then you can move on to the analysis phase.
- run analysis:
docker container exec -ti metadata-qa-marc ./metadata-qa.sh --params "--marcxml --fixAlma" --mask "*.xml" --catalogue gent all
Important: --mask "*.xml"
is a file mask. If you have a thousand files, all will be analysed. You might want to start with a single or a small number of files to make sure that everything is working:
docker container exec -ti metadata-qa-marc ./metadata-qa.sh --params "--marcxml --fixAlma" --mask "BIB01.xml" --catalogue gent all