Skip to content

Commit

Permalink
Documentate limitations on WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodewijk Sioen committed Jun 9, 2023
1 parent 286076e commit 8541944
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions images/ig-publisher-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,29 @@ resources in your host filesystem, you can mount them from elsewhere. For
instance, to bring in the `.fhir` cache from your host machine home directory:

-v /home/$USER/.fhir:/home/publisher/.fhir

## Running on WSL2
Using this image to build your IG using Docker on WSL2 is really slow due to a
known limitation when mounting the Windows filesystem. This can be circumvented
by first copying your input-files inside WSL and mounting them from there

For example, save this as `run.sh`:

```
#!/bin/bash
echo "Copying current folder over to WSL filesystem"
mkdir -p ~/.fhir
mkdir -p ~/ig-publisher
cp ./* ~/ig-publisher
cp -R ./input ~/ig-publisher
cp -R ./input-cache ~/ig-publisher
echo "Starting Docker"
docker run --rm -it -v ~/ig-publisher:/home/publisher/ig -v ~/.fhir:/home/publisher/.fhir hl7fhir/ig-publisher-base "$@"
echo "Copying back to Windows filesystem"
cp -R ~/ig-publisher/output .
#rm -r ~/ig-publisher
```
Then build your IG with `wsl ./run.sh _genonce.sh`

0 comments on commit 8541944

Please sign in to comment.