Git Product home page Git Product logo

docker's Introduction

publish

OpenCog Docker library

This repository contains various docker images for demoing and using various parts of the OpenCog project. Using the docker images here is the easiest way to get interesting parts of OpenCog running.

By using Docker, most of the difficulty of installing and configuring the large variety of required packages and dependencies is eliminated. The individual docker files specify exactly what is needed to run a system or demo. Using these is as simple as saying ./build.sh and then ./run.sh.

The most sophisticated demo is Eva, an animated female head, capable of seeing you (via a webcam), talking to you (via a chatbot), and engaging you (and your guests) in social interaction. She will make eye contact, and express her pleasure with smiles and looks of surprise and happiness.

Eva Splash 1 Eva Splash 2 Eva Splash 3

Another particularly interesting container is that for the OpenCog to MineCraft bridge, which allows OpenCog to operate an avatar running around in the MineCraft world.

Dockerfiles for Robot Operating System (ROS)

Dockerfiles for demoing and working with various different robot heads and bodies, mostly those from Hanson Robotics. Several of the heads are modeled with blender, and so can be usefully worked with and controlled even without a physical robot.

Sadly, the Eva demo has bitrotted. There have been some valiant efforts to bring Eva back to life, to be found in the noetic folder, but they stand incomplete. The primary roadblock is that Eva requires an older version of blender, version 2.79, which dates back to 2016. Perhaps a blender expert could port Eva to a newer version.

The ROS dockerfiles are contained in the hydro, indigo, noetic directories. Eva came in two forms: a basic animation and social interaction demo, in the indigo/eva-owyl folder, and a full-featured system in the indigo/eva-opencig folder. These no longer work, due to bitrot; the "good stuff", the last attempt to get everything working, is in the noetic folder.

Dockerfiles for OpenCog

Opencog system dockerfiles can be found in the opencog directory. Up-to-date, current pre-built versions of these Docker containers can be downloaded from dockerhub. Simply go to the opencog directory, and run the docker-build.sh shell script. docker-build.sh -h for help, and docker-build.sh -a to download everything.

Obsolete demos

If you have been sent here, and cannot find what you were told about, look in the archive directory. It contains copies of all of the unsupported, abandond and obsolete projects that were once a part of OpenCog.

OpenCog demo

The lang-pairs container hosts a stand-alone word-pair visualization demo. If you have some files containing text, ideally more than a few thousand words and less than a few million, then this demo can process the files and extract the word-pair mutual information. This can then be viewed by aiming a web browser at the docker container. Just follow the directions in the README.

Docker image dependency structure:

├─opencog/opencog-deps
  ├─opencog/atomspace
    ├─opencog/learn
      ├─opencog/lang-pairs
      ├─opencog/lang-mst

Organizational Notes:

Dockerhub's copies of opencog dockerfiles are here: https://hub.docker.com/search?q=opencog

  • opencog/opencog-deps:latest: Ubuntu 22.04 based image with all OpenCog's dependencies installed. This does not need to be rebuilt, except to pick up the latest version of the base OS and OS security patches. This is the base image for opencog/atomspace.

  • opencog/atomspace: This depends on the opencog/opencog-deps:latest image. It provides the AtomSpace, RocksDB, the Cogserver, and the network CogStorageNode, allowing complex AtomSpace networks to be built.

  • opencog/learn: This depends on the opencog/atomspace:latest image. It provides the basic development environment for the language learning project.

Usage

  • To run the demos and other containers, docker must be installed. Instructions can be found here. The Giving non-root access section on the page explains how to avoid having to use sudo all the time.

  • The docker-build.sh file in opencog directory can be used to build the containers mentioned above. Run ./docker-build.sh -h for usage instructions.

docker's People

Contributors

alex-van-der-peet avatar amebel avatar dependabot[bot] avatar drzo avatar eskender-b avatar fredyvilla avatar githart avatar jswiergo avatar linas avatar mwigzell avatar nemquae avatar ngeiswei avatar noskill avatar pennachin avatar tesyolan avatar vsbogd avatar wenwei-dev avatar yantrabuddhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

Configure jenkins for system integration tests

System integration test for this issue means testing across repos. For example, when changes occurs in atomspace repo the opencog repo unit tests should be run to check how it is affected.

pull access denied for opencog/jupyter

Hi,

Please in trying to run jupyter kernels with opencog. I find that the notebooks directory does not exist -> $OPENCOG_NOTEBOOKS:/opencog/notebooks

So I get this errors in trying to pull
screen shot 2018-08-04 at 04 24 01

screen shot 2018-08-04 at 04 29 37

dockerfile config changes

Hi, am srinivasa working as a devops engineer am created simple docker file for my application i need to change some configuration of that application through dockerfile is there any way to change after war file is generated help me for this

opencog/ros-indigo-opencog, repository does not exist

Hey guys, I pulled down master 2 days ago and tried building some of the containers. Nothing works. I logged into the default docker hub. Same. I try to run in particular docker/indigo/ros-incog-blender directory. I run build.sh

(base) mark@confucius:ros-incog-blender$ ./build.sh
Sending build context to Docker daemon 8.704kB
Step 1/17 : FROM opencog/ros-indigo-opencog
pull access denied for opencog/ros-indigo-opencog, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

What is going on? Why is it referencing ros-indigo-opencog which is not a folder in the repository, and is also not available on the docker hub? Or maybe I should ask: how should I run this?

Error while import opencog python libraries

I have a docker image which uses the opencog-dev image as a base. After building the image successfully, I can't use the OpenCog python modules as I run into an import error. The docker files I am using to build the images can be found at this repo. As an example, running this simple script on the python command line raises an import error

from opencog.atomspace import AtomSpace
atomspace = AtomSpace()

The error:

ImportError: No module named opencog.atomspace

Change name to opencog-docker-containers

I think we should change the name of this to something like opencog-docker-containers so that people don't confuse it with ros and because its a more accurate description of what this repository contains.

add working sql backing store to docker file

now that the agi-bio project is starting experiments with large atomspaces, it would be great if a working postgresql atomspace database could be installed & configured in the Dockerfile image. i've been unable to get it to work in the current container through the cogserver or in the unit tests, despite repeatedly following, checking & rechecing the multiple README files. the test databases exist and are accessable with the users given in the respective config files. proper permissions are emphasized but not stated explicitly: what should they be? the only other clue i've come up with is that for the current build "docker ps" lists the port mapping as "0.0.0.0:17001->17001/tcp; 0.0.0.0:18001->18001/tcp" while /etc/hosts has the usual "127.0.0.1 localhost". any suggestions?

thanks,
mike

Error building indigo/ros-opencog docker

This issue varies depending on the version of OpenCog files it's told to use. This issue is based on setting the date to 2017-07-01.

I've made some changes to get this image to build up to this point and these changes can be seen in https://github.com/Mforrest20/opencog-docker under branch MF/indigo-tinker. In any case here's the error that is eventually spit out after running the .build.sh file for the ros-opencog dockerfile.

I was looking at using the noetic build since its a newer ROS version. It doesn't seem like you've had much part in getting that working, but if I should work towards goal of running eva with opencog in that ROS version let me know and I'll close this issue and open one related to that. (It fails around a similar spot)

[ 89%] Compiling opencog/exec.scm
Backtrace:
In system/base/compile.scm:
    59:11 19 (_)
   155:11 18 (_ #<closed: file 1b6c690>)
   235:18 17 (read-and-compile #<input: opencog/exec.scm 13> #:from _ …)
   183:32 16 (compile-fold (#<procedure compile-tree-il (x e opts)>) …)
In ice-9/boot-9.scm:
   2312:4 15 (save-module-excursion #<procedure 19ef2c0 at language/…>)
In language/scheme/compile-tree-il.scm:
    31:15 14 (_)
In ice-9/psyntax.scm:
  1235:36 13 (expand-top-sequence ((use-modules (opencog))) _ _ #f c …)
  1182:24 12 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   285:10 11 (parse _ (("placeholder" placeholder)) (()) _ c&e (# #) #)
In ice-9/boot-9.scm:
  3365:20 10 (process-use-modules _)
   222:17  9 (map1 (((opencog))))
  3366:31  8 (_ ((opencog)))
  2788:17  7 (resolve-interface (opencog) #:select _ #:hide _ # _ # _ …)
  2714:10  6 (_ (opencog) _ _ #:ensure _)
  2982:16  5 (try-module-autoload _ _)
   2312:4  4 (save-module-excursion #<procedure 1b3f9f0 at ice-9/boo…>)
  3002:22  3 (_)
In unknown file:
           2 (primitive-load-path "opencog" #<procedure 19fb380 at i…>)
           1 (load-extension "EXT_LIB_PATH-NOTFOUND/libsmob" "openco…")
In ice-9/boot-9.scm:
   752:25  0 (dispatch-exception _ _ _)

ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
In procedure dynamic-link: file: "EXT_LIB_PATH-NOTFOUND/libsmob", message: "file not found"
make[2]: *** [opencog/scm/opencog/exec.go] Error 1
make[1]: *** [opencog/scm/CMakeFiles/opencog_exec_go.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 89%] Building CXX object opencog/persist/sql/multi-driver/CMakeFiles/persist-sql.dir/SQLUUID.cc.o
[ 92%] Building CXX object opencog/persist/sql/multi-driver/CMakeFiles/persist-sql.dir/SQLPersistSCM.cc.o
Linking CXX shared library libpersist-sql.so
[ 92%] Built target persist-sql
make: *** [all] Error 2
[  0%] Built target SCM_CONFIG
[  2%] Built target opencog_atom_types
[  2%] Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__opencog_atomspace_opencog_atoms_atom_types
[  5%] Built target atom_types
[ 12%] Built target value
[ 15%] Built target truthvalue
[ 17%] Built target atombase
[ 35%] Built target atomcore
[ 38%] Built target atomflow
[ 41%] Built target parallel
[ 48%] Built target clearbox
[ 51%] Built target execution
[ 51%] Built target foreign
[ 53%] Built target grounded
[ 53%] Built target join
[ 58%] Built target query-engine
[ 64%] Built target pattern
[ 66%] Built target atomspace
[ 66%] Built target storage_types
[ 66%] Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__opencog_atomspace_opencog_persist_storage
[ 66%] Built target storage-types
[ 71%] Built target smob
[ 74%] Built target persist
[ 76%] Built target sexpr
[ 76%] Built target load_scm
[ 76%] Built target persist-file
[ 79%] Built target json
[ 79%] Built target persist-pg
[ 82%] Built target tlb
[ 89%] Built target persist-sql
Scanning dependencies of target sniff
[ 92%] Building CXX object opencog/persist/sql/multi-driver/CMakeFiles/sniff.dir/sniff.cc.o
Linking CXX executable sniff
[ 92%] Built target sniff
[ 92%] Built target exec
[ 94%] Built target guile-uuid
[ 94%] Built target logger
[ 94%] Built target randgen
[ 94%] Built target type-utils
[ 94%] Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__opencog_atomspace_opencog_scm
[ 94%] Built target opencog_go
[ 94%] Compiling opencog/exec.scm
Backtrace:
In system/base/compile.scm:
    59:11 19 (_)
   155:11 18 (_ #<closed: file ccc690>)
   235:18 17 (read-and-compile #<input: opencog/exec.scm 13> #:from _ …)
   183:32 16 (compile-fold (#<procedure compile-tree-il (x e opts)>) …)
In ice-9/boot-9.scm:
   2312:4 15 (save-module-excursion #<procedure dcd900 at language/s…>)
In language/scheme/compile-tree-il.scm:
    31:15 14 (_)
In ice-9/psyntax.scm:
  1235:36 13 (expand-top-sequence ((use-modules (opencog))) _ _ #f c …)
  1182:24 12 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   285:10 11 (parse _ (("placeholder" placeholder)) (()) _ c&e (# #) #)
In ice-9/boot-9.scm:
  3365:20 10 (process-use-modules _)
   222:17  9 (map1 (((opencog))))
  3366:31  8 (_ ((opencog)))
  2788:17  7 (resolve-interface (opencog) #:select _ #:hide _ # _ # _ …)
  2714:10  6 (_ (opencog) _ _ #:ensure _)
  2982:16  5 (try-module-autoload _ _)
   2312:4  4 (save-module-excursion #<procedure bef120 at ice-9/boot…>)
  3002:22  3 (_)
In unknown file:
           2 (primitive-load-path "opencog" #<procedure dcd400 at ic…>)
           1 (load-extension "EXT_LIB_PATH-NOTFOUND/libsmob" "openco…")
In ice-9/boot-9.scm:
   752:25  0 (dispatch-exception _ _ _)

ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
In procedure dynamic-link: file: "EXT_LIB_PATH-NOTFOUND/libsmob", message: "file not found"
make[2]: *** [opencog/scm/opencog/exec.go] Error 1
make[1]: *** [opencog/scm/CMakeFiles/opencog_exec_go.dir/all] Error 2
make: *** [all] Error 2
The command '/bin/sh -c (mkdir /opencog/atomspace/build; cd /opencog/atomspace/build; 	cmake ..; make -j2; make install)' returned a non-zero code: 2

Error building eva-opencog docker

Getting the following error when building docker container with build.sh.

Step 18 : RUN (mkdir /opencog/ros-behavior-scripting/build;      cd /opencog/ros-behavior-scripting/build;      cmake ..; make install)
 ---> Running in 0444d909b053
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:28 (find_package):
  By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "catkin", but
  CMake did not find one.

  Could not find a package configuration file provided by "catkin" with any
  of the following names:

    catkinConfig.cmake
    catkin-config.cmake

  Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
  "catkin_DIR" to a directory containing one of the above files.  If "catkin"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/opencog/ros-behavior-scripting/build/CMakeFiles/CMakeOutput.log".
make: *** No rule to make target `install'.  Stop.
The command '/bin/sh -c (mkdir /opencog/ros-behavior-scripting/build;      cd /opencog/ros-behavior-scripting/build;      cmake ..; make install)' returned a non-zero code: 2

build environment:

Docker version 1.12.0-rc3, build 91e29e8, experimental
Darwin 15.6.0 x86_64 i386

Eva-owyl docker build error

Hello,
I am trying to to build eva-owyl, and I am getting below error. Can some please help ? Thank you in advance..

Step 31/34 : RUN bash -l -c "/opt/ros/indigo/bin/catkin_make"
---> Running in b5a35e51e67d
CMake Error at CMakeLists.txt:20 (message):
Search for 'catkin' in workspace failed (catkin_find_pkg catkin
/catkin_ws/src): Traceback (most recent call last):

File "/usr/local/bin/catkin_find_pkg", line 33, in <module>
  main()
File "/usr/local/bin/catkin_find_pkg", line 21, in main
  packages = find_packages(args.base_path)
File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/packages.py", line 83, in find_packages
  packages = find_packages_allowing_duplicates(basepath, exclude_paths=exclude_paths, exclude_subspaces=exclude_subspaces)
File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/packages.py", line 109, in find_packages_allowing_duplicates
  packages[path] = parse_package(os.path.join(basepath, path))
File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/package.py", line 356, in parse_package
  return parse_package_string(f.read(), filename)
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
  return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 1044:
ordinal not in range(128)

-- Configuring incomplete, errors occurred!
See also "/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/catkin_ws/build/CMakeFiles/CMakeError.log".
Base path: /catkin_ws
Source space: /catkin_ws/src
Build space: /catkin_ws/build
Devel space: /catkin_ws/devel
Install space: /catkin_ws/install

Running command: "make cmake_check_build_system" in "/catkin_ws/build"

make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
The command '/bin/sh -c bash -l -c "/opt/ros/indigo/bin/catkin_make"' returned a non-zero code: 1

Telnet fail

Hi!
I've pulled the images using
./docker-build.sh -a
and start the containers via docker-compose using
docker-compose run --service-ports dev
but telnet is failing for port 17001 (and others too). I guess the server is not running, but I can't get how to start the server (is it is the case). Reference pointed at readme (run cogserver) is not working.
Thanks for help,
Ely

can't build relex

running ./docker-build.sh -r gives an error.
I'll try build image with maven instead of ant

relex-master/src/resources/logback.xml
relex-master/test-corpus.txt
Buildfile: /home/Downloads/relex-master/build.xml

build-subprojects:

init:

build-version:
[echo] Building RelEx version 1.6.3
[copy] Copying 1 file to /home/Downloads/relex-master/src/java/relex

look-for-owl:
[echo] Will not build (optional) OWL output format; org.semanticweb.owl classes not found.

look-for-opennlp:

build-project:
[echo] relex: /home/Downloads/relex-master/build.xml
[mkdir] Created dir: /home/Downloads/relex-master/bin
[javac] Compiling 79 source files to /home/Downloads/relex-master/bin
[javac] /home/Downloads/relex-master/src/java/relex/RelationExtractor.java:30: error: package org.slf4j does not exist
[javac] import org.slf4j.Logger;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/RelationExtractor.java:31: error: package org.slf4j does not exist
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/RelationExtractor.java:69: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(RelationExtractor.class);
[javac] ^
[javac] symbol: class Logger
[javac] location: class RelationExtractor
[javac] /home/Downloads/relex-master/src/java/relex/algs/AlgorithmApplier.java:19: error: package org.slf4j does not exist
[javac] import org.slf4j.Logger;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/algs/AlgorithmApplier.java:20: error: package org.slf4j does not exist
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/utils/ResourceUtils.java:3: error: package org.slf4j does not exist
[javac] import org.slf4j.Logger;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/utils/ResourceUtils.java:4: error: package org.slf4j does not exist
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/algs/AlgorithmApplier.java:38: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(AlgorithmApplier.class);
[javac] ^
[javac] symbol: class Logger
[javac] location: class AlgorithmApplier
[javac] /home/Downloads/relex-master/src/java/relex/algs/SentenceAlgorithm.java:25: error: package org.slf4j does not exist
[javac] import org.slf4j.Logger;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/algs/SentenceAlgorithm.java:26: error: package org.slf4j does not exist
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/utils/ResourceUtils.java:14: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(ResourceUtils.class);
[javac] ^
[javac] symbol: class Logger
[javac] location: class ResourceUtils
[javac] /home/Downloads/relex-master/src/java/relex/algs/SentenceAlgorithm.java:33: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(SentenceAlgorithm.class);
[javac] ^
[javac] symbol: class Logger
[javac] location: class SentenceAlgorithm
[javac] /home/Downloads/relex-master/src/java/relex/parser/LocalLGParser.java:26: error: package org.slf4j does not exist
[javac] import org.slf4j.Logger;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/parser/LocalLGParser.java:27: error: package org.slf4j does not exist
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] /home/Downloads/relex-master/src/java/relex/parser/LocalLGParser.java:37: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(LocalLGParser.class);
[javac] ^
[javac] symbol: class Logger
[javac] location: class LocalLGParser
[javac] /home/Downloads/relex-master/src/java/relex/RelationExtractor.java:69: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(RelationExtractor.class);
[javac] ^
[javac] symbol: variable LoggerFactory
[javac] location: class RelationExtractor
[javac] /home/Downloads/relex-master/src/java/relex/utils/ResourceUtils.java:14: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(ResourceUtils.class);
[javac] ^
[javac] symbol: variable LoggerFactory
[javac] location: class ResourceUtils
[javac] /home/Downloads/relex-master/src/java/relex/algs/AlgorithmApplier.java:38: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(AlgorithmApplier.class);
[javac] ^
[javac] symbol: variable LoggerFactory
[javac] location: class AlgorithmApplier
[javac] /home/Downloads/relex-master/src/java/relex/algs/SentenceAlgorithm.java:33: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(SentenceAlgorithm.class);
[javac] ^
[javac] symbol: variable LoggerFactory
[javac] location: class SentenceAlgorithm
[javac] /home/Downloads/relex-master/src/java/relex/parser/LocalLGParser.java:37: error: cannot find symbol
[javac] private static final Logger logger = LoggerFactory.getLogger(LocalLGParser.class);
[javac] ^
[javac] symbol: variable LoggerFactory
[javac] location: class LocalLGParser
[javac] 20 errors

BUILD FAILED
/home/Downloads/relex-master/build.xml:95: Compile failed; see the compiler error output for details.

Total time: 0 seconds
The command '/bin/sh -c tar -xvf master.tar.gz; cd relex-master; ant' returned a non-zero code: 1

configure-database.sh failure

I'm following the steps in the opencog folder readme. After I call

docker-compose run --service-ports dev

this is what I get from the configure-database.sh script:

opencog@fa93844c7bf9:~$ ~/configure-database.sh
psql: could not translate host name "db" to address: Name or service not known
psql: could not translate host name "db" to address: Name or service not known
cat: /opencog/opencog/persist/sql/atom.sql: No such file or directory
psql: could not translate host name "db" to address: Name or service not known
psql: could not translate host name "db" to address: Name or service not known
psql: could not translate host name "db" to address: Name or service not known
cat: /opencog/opencog/persist/sql/atom.sql: No such file or directory
psql: could not translate host name "db" to address: Name or service not known

The atom.sql file is now in the atomspace project, but I don't know what causes the db address issue.

Then, after exiting the container, subsequence calls to docker-compose run fail:

cassio@opencog:~/opencog/docker/opencog$ docker-compose run --service-ports dev
Starting opencog_postgres_1...
Cannot start container 621523308b4c0f26547e18c17f9c57469463f126148dba879f806add7d01f0d0: Cannot link to a non running container: /opencog_postgres_1 AS /opencog_dev_run_2/db

problem with /etc/localtime with docker on Mac

Following the instructions in the ReadMe, the opencog container won't start. The problem is the way the MacOS virtualizes the /etc/ filesystem, and the way the OpenCog container maps /etc/localtime

This issue affects many containers, and is not OpenCog specific. Nonetheless the recommended work-around is a change to the container.

See this thread. [https://github.com/docker/for-mac/issues/2396]

The solution I implemented is from the commend by the user: “smlng” on Dec 19, 2018

Config Details
Mac OS 10.15.6
docker engine 19.03.12

Proposed Change
I changed the docker/opencog/common.yml file

diff --git a/opencog/common.yml b/opencog/common.yml
index 0b6e758..0b12426 100644
--- a/opencog/common.yml
+++ b/opencog/common.yml
@@ -13,7 +13,7 @@ workspace:
     volumes:
         - $OPENCOG_SOURCE_DIR:/opencog
         - $HOME/.gitconfig:/home/opencog/.gitconfig # for git commits,stash ...
-        - /etc/localtime:/etc/localtime:ro # for syncing with host time.
+        - ${ETC_LOCALTIME}:/etc/localtime:ro # for syncing with host time.
         - $CCACHE_DIR:/home/opencog/.ccache # for persisting ccache artifacts
     environment: # Set environment variables within the container
         - OPENCOG_SOURCE_DIR=/opencog

And then set the environment variable along with all the others from the ReadMe.

So, my .zshenv (or .bashrc for those who use bash) now specifies:

#OpenCog envs 
export ETC_LOCALTIME=$(readlink /etc/localtime)
export CCACHE_DIR=$HOME/OpenCog/ccache_output
export OPENCOG_SOURCE_DIR=$HOME/OpenCog/opencog
export ATOMSPACE_SOURCE_DIR=$HOME/OpenCog/atomspace
export COGUTIL_SOURCE_DIR=$HOME/OpenCog/cogutil
export OC2MC_SOURCE_DIR=$HOME/OpenCog/opencog-to-minecraft

Error building eva-owyl docker

Hi, I'm getting the following error when building eva-owyl docker image. Tried on two different computers. same failure:

Step 30 : RUN bash -l -c "/opt/ros/indigo/bin/catkin_make"
---> Running in 7f15c0827390
CMake Error at CMakeLists.txt:20 (message):
Search for 'catkin' in workspace failed (catkin_find_pkg catkin
/catkin_ws/src): Traceback (most recent call last):

File "/usr/local/bin/catkin_find_pkg", line 33, in
main()
File "/usr/local/bin/catkin_find_pkg", line 21, in main
packages = find_packages(args.base_path)
File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/packages.py", line 83, in find_packages
packages = find_packages_allowing_duplicates(basepath, exclude_paths=exclude_paths, exclude_subspaces=exclude_subspaces)
File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/packages.py", line 109, in find_packages_allowing_duplicates
packages[path] = parse_package(os.path.join(basepath, path))
File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/package.py", line 356, in parse_package
return parse_package_string(f.read(), filename)
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 273:
ordinal not in range(128)

-- Configuring incomplete, errors occurred!
See also "/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
Base path: /catkin_ws
Source space: /catkin_ws/src
Build space: /catkin_ws/build
Devel space: /catkin_ws/devel
Install space: /catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/catkin_ws/build"
####
The command '/bin/sh -c bash -l -c "/opt/ros/indigo/bin/catkin_make"' returned a non-zero code: 1

Error building opencog/ros-noetic-opencog docker image

Steps to reproduce

  1. Clone opencog docker repo (the latest cloned commit at the time of checking is 2369f9a):
    $ git clone https://github.com/opencog/docker.git
  2. Navigate to noetic/ros-base folder.
    $ cd docker/noetic/ros-base/
  3. Run build.sh:
    $ ./build.sh
  4. Test container:
$ ./run.sh
# roscore
...
ros_comm version 1.15.15
...
  1. Navigate to ros-opencog folder:
    $ cd ../ros-opencog/
  2. Run build.sh:
    $ ./build.sh
  3. Build fails at step 40/49:
Step 40/49 : RUN (mkdir /opencog/lg-atomese/build; cd /opencog/lg-atomese/build;     cmake ..; make -j12; make install)
 ---> Running in ae05bdd92f11
CMake Deprecation Warning at CMakeLists.txt:19 (CMAKE_POLICY):
  The OLD behavior for policy CMP0037 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type: Release
-- CogUtil found.
-- AtomSpace found.
-- Found PythonInterp: /usr/bin/python (found version "2.7.18") 
-- link-grammar( >= 5.6.2) was not found. Make sure LINK_GRAMMAR_LIBRARY, LINK_GRAMMAR_INCLUDE_DIR and LINK_GRAMMAR_DATA_DIR are set.
-- Link Grammar missing: needed for NLP.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found UUID: /usr/lib/x86_64-linux-gnu/libuuid.so  
-- Guile (2.2.7 >= 2.2.2) was found.
-- Looking for secure_getenv
-- Looking for secure_getenv - not found
-- Found Python3Interp: /usr/bin/python3  
-- Python 3.8.10 interpreter found.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8.10") 
-- Python 3.8.10 libraries found.
-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.10") 
-- Found Cython: /usr/bin/cython (Required is at least version "0.24.0") 
-- Cython ( 0.29.1 >= 0.24.0) found.
-- Python destination dir found: /usr/local/lib/python3.8/dist-packages
-- Python install dir: /usr/local/lib/python3.8/dist-packages/opencog
-- Using nosetests executable /usr/bin/nosetests3
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 

Building for Ubuntu 20.04.5 LTS

The following components will be built:
-----------------------------------------------
   Python bindings  - Python (cython) bindings.
   Unit tests       - Unit tests.

The following components WILL NOT be built:
-----------------------------------------------
   LG-Atomese       - Atomese for Link Grammar.
   Doxygen          - Code documentation.

-- Configuring incomplete, errors occurred!
See also "/opencog/lg-atomese/build/CMakeFiles/CMakeOutput.log".
See also "/opencog/lg-atomese/build/CMakeFiles/CMakeError.log".
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LINK_GRAMMAR_LIBRARY (ADVANCED)
    linked by target "lg-dict-entry" in directory /opencog/lg-atomese/opencog/nlp/lg-dict
    linked by target "lg-parse" in directory /opencog/lg-atomese/opencog/nlp/lg-parse

make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
The command '/bin/sh -c (mkdir /opencog/lg-atomese/build; cd /opencog/lg-atomese/build;     cmake ..; make -j12; make install)' returned a non-zero code: 2

Notes

  • Any help in resolution or suggestions in what direction to look to get it fixed are very much appreciated.

Cannot create conatiner for service dev.

Hello,

I am trying to set environment for opencog in linux.

No LSB modules are available.
Distributor ID:LinuxMint
Description:Linux Mint 17.3 Rosa
Release: 17.3
Codename: rosa

When i tried to start the docker container, it shows
ERROR: Cannot create container for service dev: create .: "." includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed

What can i do now?

Error building noetic/ros-opencog docker image

This is in the same vain of #173. I can't seem to get ros-opencog to build and I'm not sure how to proceed to do so. I'll post the error below and hopefully redirect the effort @linas would have put towards #173 into this issue.

As before building the ros-base image produces no errors. However building ros-opencog image appears to fail at the point of compiling matrix.scm. This is with leaving the current date (2022-03-05) as is for the opencog source, but rolling it back does not change anything in this case.

Thanks again for any help that is provided with this.

[100%] Built target opencog_exec_go
[100%] Built target opencog_persist-file_go
[100%] Built target opencog_uuid_go
wrote `/opencog/atomspace/build/opencog/scm/opencog/query.go'
[100%] Built target opencog_query_go
wrote `/opencog/atomspace/build/opencog/scm/opencog/test-runner.go'
[100%] Built target opencog_test-runner_go
ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
Syntax error:
opencog/matrix/group-similarity.scm:112:16: definition in expression context, where definitions are not allowed, in form (define list-of-all-co-idx (insert-into-set-of-all-co-idx #f))
make[2]: *** [opencog/matrix/CMakeFiles/matrix_go.dir/build.make:84: opencog/scm/matrix.go] Error 1
make[1]: *** [CMakeFiles/Makefile2:3726: opencog/matrix/CMakeFiles/matrix_go.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
wrote `/opencog/atomspace/build/opencog/scm/opencog/logger.go'
[100%] Built target opencog_logger_go
wrote `/opencog/atomspace/build/opencog/scm/opencog/persist.go'
[100%] Built target opencog_persist_go
wrote `/opencog/atomspace/build/opencog/scm/sheaf.go'
[100%] Built target sheaf_go
make: *** [Makefile:152: all] Error 2
[  0%] Built target SCM_CONFIG
[  0%] Built target opencog_atom_types
[  0%] Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__opencog_atomspace_opencog_atoms_atom_types
[  0%] Built target atom_types
[  5%] Built target value
[  8%] Built target truthvalue
[ 11%] Built target atombase
[ 29%] Built target atomcore
[ 32%] Built target atomflow
[ 32%] Built target parallel
[ 38%] Built target clearbox
[ 38%] Built target execution
[ 38%] Built target foreign
[ 41%] Built target grounded
[ 41%] Built target join
[ 44%] Built target query-engine
[ 50%] Built target pattern
[ 50%] Built target atomspace
[ 52%] Built target storage_types
[ 52%] Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__opencog_atomspace_opencog_persist_storage
[ 52%] Built target storage-types
[ 58%] Built target smob
[ 61%] Built target persist
[ 64%] Built target sexpr
[ 64%] Built target load_scm
[ 64%] Built target persist-file
[ 67%] Built target json
[ 67%] Built target tlb
[ 67%] Built target exec
[ 70%] Built target guile-uuid
[ 73%] Built target type-utils
[ 73%] Built target randgen
[ 73%] Built target logger
[ 73%] Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__opencog_atomspace_opencog_scm
[ 76%] Built target opencog_go
[ 76%] Built target opencog_type-utils_go
[ 76%] Built target opencog_randgen_go
[ 76%] Built target opencog_query_go
[ 76%] Built target opencog_persist-file_go
[ 76%] Built target opencog_extension_go
[ 79%] Built target executioncontext
[ 79%] Built target py_atomspace_header
[ 79%] Built target PythonEval
[ 82%] Built target PythonSCM
[ 82%] Built target opencog_python_go
[ 85%] Built target opencog_test-runner_go
[ 85%] Built target opencog_exec_go
[ 85%] Built target opencog_uuid_go
[ 85%] Built target opencog_logger_go
[ 85%] Built target opencog_persist_go
[ 85%] Compiling matrix.scm
ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
Syntax error:
opencog/matrix/group-similarity.scm:112:16: definition in expression context, where definitions are not allowed, in form (define list-of-all-co-idx (insert-into-set-of-all-co-idx #f))
make[2]: *** [opencog/matrix/CMakeFiles/matrix_go.dir/build.make:84: opencog/scm/matrix.go] Error 1
make[1]: *** [CMakeFiles/Makefile2:3726: opencog/matrix/CMakeFiles/matrix_go.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
The command '/bin/sh -c (mkdir /opencog/atomspace/build; cd /opencog/atomspace/build; 	cmake ..; make -j12; make install)' returned a non-zero code: 2

build-all.sh fails at eva-opencog image

on a current ubuntu 14.04 system, error message after ./build-all.sh is

CMake Error at /opt/ros/indigo/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/catkin_ws/build/catkin_generated/env_cached.sh
  "/usr/bin/python" "/usr/bin/empy" "--raw-errors" "-F"
  "/catkin_ws/build/catkin_generated/order_packages.py" "-o"
  "/catkin_ws/build/catkin_generated/order_packages.cmake"
  "/opt/ros/indigo/share/catkin/cmake/em/order_packages.cmake.em") returned
  error code Text file busy
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
  /opt/ros/indigo/share/catkin/cmake/catkin_workspace.cmake:35 (em_expand)
  CMakeLists.txt:63 (catkin_workspace)


-- Configuring incomplete, errors occurred!
See also "/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Base path: /catkin_ws
Source space: /catkin_ws/src
Build space: /catkin_ws/build
Devel space: /catkin_ws/devel
Install space: /catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/catkin_ws/build"
####
Invoking "make cmake_check_build_system" failed
The command '/bin/sh -c bash -l -c "/opt/ros/indigo/bin/catkin_make"' returned a non-zero code: 1

output of docker images is

REPOSITORY                   TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
hrdi/chatbot                 latest              90cc20db7eb4        6 hours ago         396.8 MB
<none>                       <none>              6afe8cccaaa9        16 hours ago        3.459 GB
opencog/ros-incog-blender    latest              7af6d832cf4b        16 hours ago        2.958 GB
opencog/ros-indigo-opencog   latest              18ac7228dd56        16 hours ago        2.669 GB
opencog/ros-indigo-base      latest              a72bf67c1545        16 hours ago        1.018 GB
<none>                       <none>              f83bb3c92529        5 months ago        395.9 MB
biocog/opencog               latest              41f69d5fd1d8        5 months ago        1.281 GB
opencog/opencog-dev          cli                 96657a3c15ee        5 months ago        3.502 GB
opencog/cogutils             latest              36c673edd822        5 months ago        2.964 GB
opencog/opencog-deps         latest              aa16f8af06ef        5 months ago        2.959 GB
ubuntu                       14.04               e9ae3c220b23        5 months ago        187.9 MB

relationship to circle-ci?

Are these files being used for circle-ci? Because the atomsapce circle-ci is very unhappy these days.

The latest version of relex image fails to run

After deleting my old opencog/relex image and pull the latest one, I can't start the relex container based on the image. It throws the following exception:

relex_1 | Error: Could not find or load main class relex.Server

I am using the relex container along with other ones with docker-compose. Here is my docker-compose.yaml

indigo/ros-opencog fails to build because CMake is out of date

Hey guys, I"m not yet understanding how I might upgrade the version of CMake used. If I run the build.sh I see this error:

CMake Error at CMakeLists.txt:19 (CMAKE_MINIMUM_REQUIRED):
CMake 3.0 or higher is required. You are running version 2.8.12.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.