forked from opencog/opencog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# For use with Docker https://www.docker.io/gettingstarted/
#
# Quickstart:
# docker build -t $USER/opencog .
# docker run --name cogserver -d -p 17001:17001 -p 5000:5000 $USER/opencog
# docker logs cogserver
# sudo lxc-attach -n `docker inspect cogserver | grep '"ID"' | sed 's/[^0-9a-z]//g'` /bin/bash
FROM ubuntu:12.04
MAINTAINER David Hart "[email protected]"
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install python-software-properties wget sudo
# Get ocpkg script, replace wget with ADD when caching feature is added
ADD . /opencog
ADD https://raw.github.com/opencog/ocpkg/master/ocpkg /opencog/
RUN chmod -v u+x /opencog/ocpkg && \
ln -s -v /opencog/ocpkg /opencog/octool && \
ln -s -v /opencog /opencog/src && \
mkdir -v -p /opencog/bin
# Add repositories, install dependencies, build; still depends on opencog/bin
RUN /opencog/octool -v -a -d
RUN /opencog/octool -v -b -l /opencog/bin
# Start cogserver when container runs
WORKDIR /opencog/bin
CMD ["-c", "/opencog/lib/opencog.conf"]
ENTRYPOINT ["/opencog/bin/opencog/server/cogserver"]