OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-docker / opencog / lang-model / Dockerfile

45 lines · text ref:
#
# Container with crude language data.
# Experimental. This does NOT do anything interesting! Demo only.
#
# Steps:
# 1. docker build -t opencog/lang-model .
# 2. docker create --name lang-model -p 17001:19014
#       -it opencog/lang-model
#    Note: the -p flag is external_port:internal_port
#    The scripts in this container start a cogserver on 19014
# 3. docker start -i lang-model
# 4. cd experiments/run-word-pairs
# 5. . 0-pipeline.sh
# 6. . pairs-en-conf.sh
# 7. Run either tmux or byobu according to taste.
# 8. guile -l scm/cogserver-nav.scm
#    Wait until the guile command prompt appears.
#
# 9. Outside of the container, connect to the cogserver:
#    rlwrap telnet localhost 17001
#    Then try various commands: help, status, top, etc.

FROM opencog/learn

USER opencog
WORKDIR /home/opencog

RUN mkdir /home/opencog/data
WORKDIR /home/opencog/data

# RUN wget --progress=bar:force:noscroll https://linas.org/datasets/r13-all-in-one.tar.bz2
RUN curl https://linas.org/datasets/r13-all-in-one.tar.bz2 -o r13-all-in-one.tar.bz2
RUN tar -jxf r13-all-in-one.tar.bz2
RUN rm r13-all-in-one.tar.bz2

COPY /scripts/ /home/opencog

# Setup the workspace for developers
WORKDIR /home/opencog
RUN sudo chown -R opencog:opencog experiments

CMD /bin/bash

ONBUILD USER root