Skip to content

Instantly share code, notes, and snippets.

@cmoesel
Last active March 20, 2018 02:25
Show Gist options
  • Save cmoesel/006035914ee378c2023e4303b1b93471 to your computer and use it in GitHub Desktop.
Save cmoesel/006035914ee378c2023e4303b1b93471 to your computer and use it in GitHub Desktop.
Modified Version of FHIR ig-build Docker Image
FROM java:8
WORKDIR /usr/src/ig-publisher
RUN wget -q http://build.fhir.org/org.hl7.fhir.igpublisher.jar -O publisher.jar
RUN mkdir -p /usr/src/input
RUN mkdir -p /usr/src/output
# Install required packages
RUN apt-get update
RUN apt-get install -y --force-yes zlib1g-dev libssl-dev libreadline-dev libgdbm-dev openssl python-pip build-essential
WORKDIR /usr/src
RUN mkdir RUBY
WORKDIR /usr/src/ig-publisher/RUBY
RUN wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.3.tar.gz
RUN tar xvfz ruby-2.4.3.tar.gz
WORKDIR /usr/src/ig-publisher/RUBY/ruby-2.4.3
RUN ./configure
RUN make
RUN make install
WORKDIR /usr/src/ig-publisher
RUN gem install jekyll jekyll-asciidoc json
# Copy the mapped input to a path inside the container to reproduce the case-sensitive aspect of the FS
# and then run the publisher
CMD cp -r /usr/src/input /usr/src/ig && \
java -Xms2g -Xmx2g -jar /usr/src/ig-publisher/publisher.jar -ig /usr/src/ig/ig.json -out /usr/src/output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment