Skip to content

Commit

Permalink
Documentate limitations on WSL (#32)
Browse files Browse the repository at this point in the history
* Documentate limitations on WSL

See #31

* Added alternative solution.

Co-authored-by: Josh Mandel <jmandel@alum.mit.edu>

---------

Co-authored-by: Lodewijk Sioen <lodewijk.sioen@infohos.be>
Co-authored-by: Josh Mandel <jmandel@alum.mit.edu>
  • Loading branch information
3 people committed Jun 9, 2023
1 parent 286076e commit 3f34ed8
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. You can run the IG publisher without docker by following the instructions at https://confluence.hl7.org/display/FHIR/IG+Publisher+Documentation#IGPublisherDocumentation-Installing; or you can improve performance in WSL2
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 3f34ed8

Please sign in to comment.