includeos / includeos-docker-images

Docker images for people who want to try out building IncludeOS unikernels without having to install the development environment locally on their machines
Apache License 2.0
17 stars 6 forks source link

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

Closed einari closed 6 years ago

einari commented 6 years ago

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
mnordsletten commented 6 years ago

Hi. The problem with this building is as you say due to protobuf. We have recently moved the protobuf repository and the tag that you are attempting to build from does not contain this update. Please build the docker container again with: --build-arg TAG=v0.12.0-rc.2 and you should be good to go.

Let me know if there are still any issues after that.

einari commented 6 years ago

Excellent.. Thanks - that works.