Stream: shorthand
Topic: point to sushi binary from publisher.jar
Nick George (Jan 24 2022 at 18:57):
Is it possible to specify the location of the sushi binary used by publisher.jar
via a flag rather than relying on $PATH
variable?
Chris Moesel (Jan 24 2022 at 19:12):
I don't think that's currently possible, but if you just need to control the version of SUSHI that is used by the publisher, then you can do that via the fsh.ini
file. We've documented that in a "Tip" here.
Nick George (Jan 24 2022 at 19:14):
Ok. For us it's less about version and more about having a common binary in a shared file system to enable lots of developers without having to walk them all through installing node/npm/sushi :)
Jose Costa Teixeira (Jan 24 2022 at 19:27):
(deleted)
Chris Moesel (Jan 24 2022 at 20:06):
Ah. Well, you could put in a change request to @Grahame Grieve to ask if it's possible to support a filepath as the argument to sushi-version
(or add a new sushi-path
variable in fsh.ini
). He was the one who did the integration on the IG Publisher side.
Nick George (Jan 24 2022 at 20:08):
would that be on a github repo?
Jens Villadsen (Jan 24 2022 at 20:34):
You should be able to wrap sushi in docker and proceed from there
Jens Villadsen (Jan 24 2022 at 20:35):
You could mount your FSH files into the container and you should be good to go
Jens Villadsen (Jan 24 2022 at 20:36):
Then you could afterwards run the Publisher with -no-sushi
Jens Villadsen (Jan 24 2022 at 20:36):
Or you could also put the Publisher inside docker as well
Jens Villadsen (Jan 24 2022 at 20:37):
Then your devs only need docker - nothing else
John Moehrke (Jan 24 2022 at 20:37):
I avoid old-sushi. bad for ones health.
Nick George (Jan 24 2022 at 20:39):
but if I can just say publisher.jar --sushi=/my/shared/filesystem/sushi
then they don't even need that!
Jens Villadsen (Jan 24 2022 at 21:19):
its easier with docker ... then they don't even need the publisher
Jens Villadsen (Jan 24 2022 at 21:23):
@Nick George - here's a docker file for you:
FROM ruby:3.0.3
RUN apt-get update && apt-get -y install build-essential openjdk-11-jdk
RUN gem install bundler jekyll
ARG BUILD_DATE=not_a_date
RUN cd /tmp && \
wget --quiet https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz && \
cd /usr/local && \
tar --strip-components 1 -xf /tmp/node-v12.16.1-linux-x64.tar.xz
RUN npm install -g fsh-sushi@2.2.6
RUN mkdir input-cache
RUN wget -q 'https://github.com/HL7/fhir-ig-publisher/releases/download/1.1.97/publisher.jar' -O input-cache/publisher.jar
ENTRYPOINT [ "java", "-Xmx4g", "-jar", "input-cache/publisher.jar", "-ig"]
Jens Villadsen (Jan 24 2022 at 21:23):
now, that is easy!
Nick George (Jan 24 2022 at 21:31):
Heh I'll play around with that! thanks
Last updated: Apr 12 2022 at 19:14 UTC