Closed nedondev closed 3 years ago
Hi, which branch are you using to build the docker image?
Also, did you update all the submodules associated with this repo? Generally, the issue above occurs when the submodules haven't been updated. This can be done by running git submodule update --init --recursive
from the top path of your local NineChronicles.Headless
repo.
I use development branch to build docker.
$ git branch
* development
When I didn't update submodules. It will become this error.
$ docker build -t 9c --build-arg COMMIT=1 .
Sending build context to Docker daemon 966.7kB
Step 1/21 : FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
---> 0c5f4737c8eb
Step 2/21 : WORKDIR /app
---> Running in d38ea991e9a1
Removing intermediate container d38ea991e9a1
---> 98c3bab685d9
Step 3/21 : ARG COMMIT
---> Running in 00ecc1290512
Removing intermediate container 00ecc1290512
---> e604c013a802
Step 4/21 : COPY ./Lib9c/Lib9c/Lib9c.csproj ./Lib9c/
COPY failed: stat /var/snap/docker/common/var-lib-docker/tmp/docker-builder435267965/Lib9c/Lib9c/Lib9c.csproj: no such file or directory
I solve this issue when change branch to rc-v100070 with recently added merge request.
I changed branch with command:
git checkout -t remotes/origin/rc-v100070
If anyone can't update submodules because not configure ssh on Github may be use HTTPS instead:
git rm Lib9c &&\
git rm NineChronicles.RPC.Shared &&\
git submodule add https://github.com/planetarium/lib9c.git Lib9c &&\
git submodule add https://github.com/planetarium/NineChronicles.RPC.Shared.git NineChronicles.RPC.Shared &&\
git submodule update --init --recursive
I use clone repository and try docker build with command:
docker build -t 9c --build-arg COMMIT=1 .
Result:
I investigate code and other project. I found that Swarm\<T>.BlockDemand have been remove from libplanet, so Code checking BlockDemand from LibplanetNodeService.cs should be removed. Currently I don't know if remove impact program.