Skip to content

Instantly share code, notes, and snippets.

@harvimt
Created March 27, 2015 22:56

Revisions

  1. harvimt created this gist Mar 27, 2015.
    19 changes: 19 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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
    8 changes: 8 additions & 0 deletions build.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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
    3 changes: 3 additions & 0 deletions run.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    /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