Skip to content

Instantly share code, notes, and snippets.

@collin
Created April 1, 2017 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save collin/0062ff9d2ca3bc0f989f8113bfbba235 to your computer and use it in GitHub Desktop.
Save collin/0062ff9d2ca3bc0f989f8113bfbba235 to your computer and use it in GitHub Desktop.
version: '2'
services:
openie:
build: '.'
volumes:
- .:/app
FROM alpine:3.5
ENV SBT_VERSION 0.13.11
ENV SBT_HOME /usr/local/sbt
ENV PATH ${PATH}:${SBT_HOME}/bin
RUN apk add --no-cache openjdk7 curl
RUN curl -sL "http://dl.bintray.com/sbt/native-packages/sbt/$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local && \
echo -ne "- with sbt $SBT_VERSION\n" >> /root/.built
RUN apk add --no-cache bash bash-doc bash-completion
WORKDIR /app
mkdir openie-runner
cd openie-runner # copy the Dockerfile and docker-compose.yml into this directory
git clone https://github.com/allenai/openie-standalone.git
docker-compose run openie bash
sbt compile
cd openie-standalone
sbt "runMain edu.knowitall.openie.OpenIECli --usage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment