Skip to content

Instantly share code, notes, and snippets.

@akimboyko
Last active August 29, 2015 14:18
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 akimboyko/cbac31370b50d685b240 to your computer and use it in GitHub Desktop.
Save akimboyko/cbac31370b50d685b240 to your computer and use it in GitHub Desktop.
Configure and run Docker container for course "Text Retrieval and Search Engines" by ChengXiang Zhai at University of Illinois at Urbana-Champaign
# How to build
# docker build -t textretrieval-001 .
# #run and name it
# docker run --name meta -i -t textretrieval-001
# #run and mount directory
# docker run -it -v /mnt/programming:/mnt/programming textretrieval-001:latest
FROM ubuntu:latest
MAINTAINER Akim Boyko "akim dot boyko at gmail.com" version: 0.1
ENV METADIR /opt/meta
RUN mkdir -p $METADIR
RUN sudo apt-get update && apt-get -y install software-properties-common libc6 libc6-dev libicu-dev git gcc g++ build-essential python2.7 && apt-get clean
RUN sudo add-apt-repository ppa:george-edison55/cmake-3.x && apt-get update && apt-get install -y cmake && apt-get clean
WORKDIR $METADIR
RUN git clone https://github.com/meta-toolkit/meta.git .
RUN git reset --hard v1.3.2
RUN git submodule update --init --recursive
RUN mkdir $METADIR/build
WORKDIR $METADIR/build
RUN cp $METADIR/config.toml .
RUN cmake $METADIR -DCMAKE_BUILD_TYPE=Release && make
RUN ctest --output-on-failure
RUN apt-get -y purge git && apt-get -y autoremove
VOLUME /mnt/programming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment