SemenMartynov / Software-Engineering-2022

Peter the Great St. Petersburg Polytechnic University: Software Engineering course 2022
MIT License
4 stars 1 forks source link

SimpleBlockchain #322

Closed Br0mm closed 1 year ago

Br0mm commented 1 year ago

Student, group: Ostapchuk Andrey, 3530901/90203 URL: https://github.com/Br0mm/SimpleBlockchain Any comments: Kotlin, TBD

SemenMartynov commented 1 year ago

Добавь, плиз, в дебаг номер блока и его хеш, чтобы было видно что именно пришло...

Br0mm commented 1 year ago

Добавил

SemenMartynov commented 1 year ago

Сборка завершилась с ошибкой

...
 => => extracting sha256:db38d58ec8ab4111b072f6700f978a51985acd252aabce3be377f25162e68301                                        3.9s
 => [internal] load build context                                                                                                0.1s
 => => transferring context: 733.47kB                                                                                            0.0s
 => [stage-1 2/3] RUN mkdir /app                                                                                                 0.3s
 => [build 2/4] COPY --chown=gradle:gradle . /home/gradle/src                                                                    0.1s
 => [build 3/4] WORKDIR /home/gradle/src                                                                                         0.1s
 => [build 4/4] RUN gradle MyFatJar                                                                                            139.4s
 => ERROR [stage-1 3/3] COPY --from=build /home/gradle/src/build/libs/SimpleBlockchain-1.0.jar /app/SimpleBlockchain-1.0.jar     0.0s
------                                                                                                                                
 > [stage-1 3/3] COPY --from=build /home/gradle/src/build/libs/SimpleBlockchain-1.0.jar /app/SimpleBlockchain-1.0.jar:                
------                                                                                                                                
DEBU[0000] serving grpc connection                                                                                                    
DEBU[0000] stopping session                              span="load buildkit capabilities"
DEBU[0000] serving grpc connection                      
DEBU[0000] stopping session                              span="load buildkit capabilities"
DEBU[0000] serving grpc connection                      
DEBU[0000] stopping session                              span="load buildkit capabilities"
DEBU[0000] serving grpc connection                      
DEBU[0000] serving grpc connection                      
DEBU[0000] serving grpc connection                      
DEBU[0538] stopping session                             
DEBU[0538] stopping session                             
DEBU[0538] stopping session                             
failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::jov0agaxdus607c8rg1uwqkuy: "/home/gradle/src/build/libs/SimpleBlockchain-1.0.jar": not found

Подобный подход к организации образов приводит к тому, что докер собирает три независимых образа, вместо того, чтоб сделать один и использовать три инстанса. Ещё непонятно зачем ноды вешать на разные порты.

Br0mm commented 1 year ago

Поправил

SemenMartynov commented 1 year ago

+