Skip to content

Commit

Permalink
Fix the old, broken docker file for cogserver.
Browse files Browse the repository at this point in the history
This might fix issue #157.

Not yet tested.
  • Loading branch information
linas committed Dec 2, 2021
1 parent f43bc42 commit 78a0477
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions opencog/cogserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
# 2. docker run -p 17001:17001 -it opencog/cogserver
# 3. rlwrap telnet localhost 17001

FROM opencog/cogutil

# Install non-system project dependencies
RUN /tmp/octool -al ; ccache -C
FROM opencog/base

# Clone opencog and build it
RUN git clone --depth 1 https://github.com/opencog/opencog oc
RUN cd oc; mkdir build; cd build; cmake ..; make -j$(nproc)
RUN git clone --depth 1 https://github.com/opencog/cogserver cogserver
RUN cd cogserver; mkdir build; cd build; cmake ..; make -j$(nproc)

# Docker defaults
WORKDIR /home/opencog/oc/build
WORKDIR /home/opencog/cogserver/build
USER opencog

## Start cogserver when container runs
CMD opencog/server/cogserver
CMD opencog/cogserver/server/cogserver

0 comments on commit 78a0477

Please sign in to comment.