Skip to content

Instantly share code, notes, and snippets.

@harvimt
Created March 27, 2015 22:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harvimt/a1dab09936f9bb7d6887 to your computer and use it in GitHub Desktop.
Save harvimt/a1dab09936f9bb7d6887 to your computer and use it in GitHub Desktop.
Docker inform7 builder
docker build -t inform7-builder .
touch story.ni
touch output.ulx
mkdir -p build
docker run -ti \
-v "$PWD/story.ni":/root/project.inform/Source/story.ni:ro \
-v "$PWD/output.ulx":/root/project.inform/Build/output.ulx \
inform7-builder
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y curl unionfs-fuse git
RUN curl -O -# http://inform7.com/download/content/6L38/gnome-inform7_6L38-0ubuntu1_amd64.deb
RUN dpkg -i --force-depends gnome-inform7_6L38-0ubuntu1_amd64.deb
RUN apt-get -yf install
RUN rm gnome-inform7_6L38-0ubuntu1_amd64.deb
RUN apt-get remove -y curl
RUN echo barfoo # trick update from here
COPY generic_project.inform /root/project.inform
COPY run.sh /run.sh
RUN chmod +x /run.sh
VOLUME /root/project.inform/Source/story.ni
VOLUME /root/project.inform/Build
CMD /run.sh
/usr/lib/x86_64-linux-gnu/gnome-inform7/ni -internal /usr/share/gnome-inform7 -format=ulx -project /root/project.inform &&
cd /root/project.inform/Build &&
/usr/lib/x86_64-linux-gnu/gnome-inform7/inform6 -wxE2kSDG '$huge' auto.inf output.ulx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment