Giter VIP home page Giter VIP logo

includeos-docker-images's People

Contributors

ingve avatar mjbright avatar mnordsletten avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

includeos-docker-images's Issues

build failing (sudo needed) - "add bridge failed: Operation not permitted"

First outing trying to build these images, I'm getting a permissions error on the first build.

docker build -t includeos/includeos-common:0.10.0.1 -f Dockerfile.common .

Produces:
`...

Done! IncludeOS bundle downloaded and installed

Creating network bridge for IncludeOS
Using default settings
Creating bridge bridge43, netmask 255.255.0.0, gateway 10.0.0.1
Creating network bridge (requires sudo):
add bridge failed: Operation not permitted
-e >>> Sorry <<<
Could not create or configure bridge.

The command '/bin/sh -c cd ~ && pwd && cd IncludeOS && ./install.sh -n' returned a non-zero code: 1
`

I'm building this on Ubuntu 16.04.3 LTS, with docker 17.09.0-ce
(I also tried with the stock docker 1.12.6 from the Ubuntu repos).

Problems building the Common image due to something wrong with submodule for protobuf

During building it is unable to pull down the lib/protobufsubmodule.

Step 12/13 : RUN cd ~ && pwd &&   git clone https://github.com/hioa-cs/IncludeOS.git &&   cd IncludeOS &&   git checkout $TAG &&   git submodule update --init --recursive &&   git fetch --tags
 ---> Running in 30d74dc14381
/home/ubuntu
Cloning into 'IncludeOS'...
Note: checking out 'v0.12.0-rc.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e2efe3f... Merge pull request #1642 from hioa-cs/dev
Submodule 'NaCl' (https://github.com/includeos/NaCl.git) registered for path 'NaCl'
Submodule 'examples/SQlite/libsl3' (https://github.com/fwsGonzo/libsl3.git) registered for path 'examples/SQlite/libsl3'
Submodule 'examples/SQlite/sqlite3_amalgamation' (https://github.com/fwsGonzo/sqlite3_amalgamation.git) registered for path 'examples/SQlite/sqlite3_amalgamation'
Submodule 'lib/protobuf' (https://github.com/RicoAntonioFelix/protobuf.git) registered for path 'lib/protobuf'
Submodule 'mod/GSL' (https://github.com/Microsoft/GSL.git) registered for path 'mod/GSL'
Submodule 'mod/http-parser' (https://github.com/nodejs/http-parser.git) registered for path 'mod/http-parser'
Submodule 'mod/rapidjson' (https://github.com/miloyip/rapidjson.git) registered for path 'mod/rapidjson'
Submodule 'mod/uzlib' (https://github.com/AnnikaH/uzlib.git) registered for path 'mod/uzlib'
Submodule 'test/lest' (https://github.com/martinmoene/lest.git) registered for path 'test/lest'
Cloning into 'NaCl'...
Submodule path 'NaCl': checked out 'b89312d07abb4cf4986b799e564417be0dfd2484'
Cloning into 'examples/SQlite/libsl3'...
Submodule path 'examples/SQlite/libsl3': checked out '82571daf7f57e85aeaac3e0a6bc22b71cf635fda'
Cloning into 'examples/SQlite/sqlite3_amalgamation'...
Submodule path 'examples/SQlite/sqlite3_amalgamation': checked out '3a804caec5c6ee0a093163175beea5555012e745'
Cloning into 'lib/protobuf'...
fatal: reference is not a tree: 858eef5d12f0932ccbaa244a36dfd7c01a7d909f
Cloning into 'mod/GSL'...
Submodule path 'mod/GSL': checked out '9d13cb14c3cf6b59bd16071929f25ac5516a4d24'
Submodule 'tests/unittest-cpp' (https://github.com/Microsoft/unittest-cpp.git) registered for path 'tests/unittest-cpp'
Cloning into 'tests/unittest-cpp'...
Submodule path 'mod/GSL/tests/unittest-cpp': checked out 'dc6b90838014ab985bf3cd74ac17ad9d00e1fbcb'
Submodule 'docs' (https://github.com/unittest-cpp/unittest-cpp.wiki.git) registered for path 'docs'
Cloning into 'docs'...
Submodule path 'mod/GSL/tests/unittest-cpp/docs': checked out '0aa16abcb2d2516de4ca09c0c5d397243522e7c0'
Cloning into 'mod/http-parser'...
Submodule path 'mod/http-parser': checked out '335850f6b868d3411968cbf5a4d59fe619dee36f'
Cloning into 'mod/rapidjson'...
Submodule path 'mod/rapidjson': checked out 'b596f4e99013dcc2d15f3c71124f15e4330beb3a'
Submodule 'thirdparty/gtest' (https://github.com/google/googletest.git) registered for path 'thirdparty/gtest'
Cloning into 'thirdparty/gtest'...
Submodule path 'mod/rapidjson/thirdparty/gtest': checked out '0a439623f75c029912728d80cb7f1b8b48739ca4'
Cloning into 'mod/uzlib'...
Submodule path 'mod/uzlib': checked out '732e506a57fba99e3862fec0158beb1c9932e70c'
Cloning into 'test/lest'...
Submodule path 'test/lest': checked out 'bea252eec4bc4e0e9fbfd3d4533251d998517cb8'
Unable to checkout '858eef5d12f0932ccbaa244a36dfd7c01a7d909f' in submodule path 'lib/protobuf'
The command '/bin/sh -c cd ~ && pwd &&   git clone https://github.com/hioa-cs/IncludeOS.git &&   cd IncludeOS &&   git checkout $TAG &&   git submodule update --init --recursive &&   git fetch --tags' returned a non-zero code: 1

Unable to build demo_service

Following the instruction here:
https://github.com/includeos/includeos-docker-images#using-the-docker-image-to-build-your-service

I'm trying to build the IncludeOS demo_service:
https://github.com/hioa-cs/IncludeOS/tree/master/examples/demo_service

I've pulled and built the latest docker-images.

I've pulled the latest IncludeOS tree
I changed to the examples/demo_service/ and did mkdir build

NOTE: I needed to also do chmod 777 build so as docker could write there.

I then cd build and run

docker run --rm -v $(dirname $PWD):/service includeos/includeos-build:v0.11.0-rc.2.01

But I get compilation errors as below:

-- Building for arch x86_64, platform x86_pc
-- Target CPU architecture x86_64
-- Target triple x86_64-pc-linux-elf
-- Using vanilla CPU features: SSE3. CAPABS = -msse3 -mfpmath=sse
-- Looking for drivers in /home/ubuntu/IncludeOS_install/includeos/x86_64/drivers
--      * Found virtionet
-- Looking for plugins in /home/ubuntu/IncludeOS_install/includeos/x86_64/plugins
--      * Found autoconf
-- Configuring done
-- Generating done
-- Build files have been written to: /service/build
[ 40%] Built target config_json
[ 60%] Building CXX object CMakeFiles/service.dir/service.cpp.o
/service/service.cpp:128:58: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
      printf("<Service> @on_write: %u bytes written.\n", written);
                                   ~~                    ^~~~~~~
                                   %zu
In file included from /service/service.cpp:21:
In file included from /home/ubuntu/IncludeOS_install/includeos/api/os:23:
In file included from /home/ubuntu/IncludeOS_install/includeos/api/hw/devices.hpp:22:
In file included from /home/ubuntu/IncludeOS_install/includeos/api/hw/nic.hpp:21:
In file included from /home/ubuntu/IncludeOS_install/includeos/api/hw/../net/buffer_store.hpp:24:
In file included from /home/ubuntu/IncludeOS_install/includeos/api/smp:23:
In file included from /home/ubuntu/IncludeOS_install/includeos/api/delegate:23:
/home/ubuntu/IncludeOS_install/includeos/api/util/delegate.hpp:244:13: error: no matching function for call to object of type '(lambda at /service/service.cpp:105:5)'
                        { return reinterpret_cast<C&>(storage)(std::forward<Args>(args)...); }
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/IncludeOS_install/includeos/api/util/delegate.hpp:395:3: note: in instantiation of function template specialization 'spec::inplace<32, 16, void, std::__1::shared_ptr<unsigned char>, unsigned long>::inplace<(lambda at /service/service.cpp:105:5), (lambda at /service/service.cpp:105:5)>' requested here
                storage_{ std::forward<T>(val) }
                ^
/service/service.cpp:105:5: note: in instantiation of function template specialization 'delegate<void (std::__1::shared_ptr<unsigned char>, unsigned long), spec::inplace, 32, 16>::delegate<(lambda at /service/service.cpp:105:5), void>' requested here
    [conn] (auto buf)
    ^
/service/service.cpp:105:5: note: candidate function template not viable: requires single argument 'buf', but 2 arguments were provided
1 warning and 1 error generated.
make[2]: *** [CMakeFiles/service.dir/service.cpp.o] Error 1
CMakeFiles/service.dir/build.make:62: recipe for target 'CMakeFiles/service.dir/service.cpp.o' failed
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/service.dir/all' failed
Makefile:127: recipe for target 'all' failed
make[1]: *** [CMakeFiles/service.dir/all] Error 2
make: *** [all] Error 2

Creating the issue here (builder not in sync with current IncludeOS?) but maybe should have filed against hioa-cs/IncludeOS (maybe example code is not up to date?).

install.sh: not found

Hi,

I've tried to build the image on my Windows 10 with Docker v17.03.1-ce

The initial command docker build -t includeos/includeos-common:0.10.0.1 -f Dockerfile.common . starts very promising by getting several packages and installing them. However, it always ends up with this error message:

Submodule path 'mod/rapidjson/thirdparty/gtest': checked out '0476e154db5fab1721c2a0f32abf4aa773679b52'                                                  
Cloning into 'mod/uzlib'...                                                                                                                              
Submodule path 'mod/uzlib': checked out '732e506a57fba99e3862fec0158beb1c9932e70c'                                                                       
Cloning into 'test/lest'...                                                                                                                              
Submodule path 'test/lest': checked out 'bea252eec4bc4e0e9fbfd3d4533251d998517cb8'                                                                       
 ---> c40f1e6f8112                                                                                                                                       
Removing intermediate container 911d7b101f79                                                                                                             
Step 9/10 : COPY ./patches/install.sh /home/ubuntu/IncludeOS/install.sh                                                                                  
 ---> b81bd7c046bd                                                                                                                                       
Removing intermediate container 44ce41968452                                                                                                             
Step 10/10 : RUN cd ~ && pwd &&   cd IncludeOS &&   INCLUDEOS_PREFIX=/home/ubuntu/IncludeOS_install ./install.sh                                         
 ---> Running in 9b35b942da66                                                                                                                            
/home/ubuntu                                                                                                                                             
/bin/sh: 1: ./install.sh: not found                                                                                                                      
The command '/bin/sh -c cd ~ && pwd &&   cd IncludeOS &&   INCLUDEOS_PREFIX=/home/ubuntu/IncludeOS_install ./install.sh' returned a non-zero code: 127   

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.