Open Julia-Chekulaeva opened 1 year ago
Начало положено. Теперь нужно это засунуть в компоуз, для демонстрации работоспособности.
К сожалению, забыла запушить ветки с Dockerfile и docker-compose в ветку main. Исправила.
Не билдится. Ну и такой подход к организации контейнеров приведёт к тому, что у нас будет три образа, а не один.
smart@thinkpad$ docker compose build
[+] Building 1064.9s (22/26)
=> [node3 internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 317B 0.0s
=> [node3 internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [node2 internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 317B 0.0s
=> [node2 internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [node1 internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 317B 0.0s
=> [node1 internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [node2 internal] load metadata for docker.io/library/eclipse-temurin:17-jdk-alpine 4.9s
=> [node3 internal] load metadata for docker.io/library/gradle:7.4.2-jdk17-alpine 5.0s
=> [node1 blockchain-run 1/2] FROM docker.io/library/eclipse-temurin:17-jdk-alpine@sha256:58b8b3ed1ea3538babaf4438811ed3481294a4df852b1de093791c378f85f69b 747.7s
=> => resolve docker.io/library/eclipse-temurin:17-jdk-alpine@sha256:58b8b3ed1ea3538babaf4438811ed3481294a4df852b1de093791c378f85f69b 0.1s
=> => sha256:2dfbdc7f3eb740ed1e0b20ddcad0dbd98fe3845d43f8da9a609b58321b3f2d11 191.93MB / 191.93MB 740.2s
=> => sha256:58b8b3ed1ea3538babaf4438811ed3481294a4df852b1de093791c378f85f69b 320B / 320B 0.0s
=> => sha256:4f6f61ededa179586bd6679bb23c448bad317ca352ee253b6359650923e86c9a 1.16kB / 1.16kB 0.0s
=> => sha256:8adef1056d0c9d56fb81fd2167a43cca6ec9127ee6841e72f4e9755492d3e49e 4.16kB / 4.16kB 0.0s
=> => sha256:8a49fdb3b6a5ff2bd8ec6a86c05b2922a0f7454579ecc07637e94dfd1d0639b6 3.40MB / 3.40MB 27.5s
=> => sha256:fdde4a302e0d0ee2ef6760bf84344d762835ef2d38d2a1a1062c7d038fe2615b 7.65MB / 7.65MB 41.6s
=> => extracting sha256:8a49fdb3b6a5ff2bd8ec6a86c05b2922a0f7454579ecc07637e94dfd1d0639b6 0.2s
=> => sha256:f28ac9cf7633d0362aff771f25b0f533a500ec7682931a30c75deab7d058cb73 176B / 176B 27.9s
=> => extracting sha256:fdde4a302e0d0ee2ef6760bf84344d762835ef2d38d2a1a1062c7d038fe2615b 0.4s
=> => extracting sha256:2dfbdc7f3eb740ed1e0b20ddcad0dbd98fe3845d43f8da9a609b58321b3f2d11 7.0s
=> => extracting sha256:f28ac9cf7633d0362aff771f25b0f533a500ec7682931a30c75deab7d058cb73 0.0s
=> [node2 internal] load build context 0.1s
=> => transferring context: 180.13kB 0.0s
=> [node3 internal] load build context 0.1s
=> => transferring context: 180.13kB 0.0s
=> [node2 build 1/5] FROM docker.io/library/gradle:7.4.2-jdk17-alpine@sha256:a070f18d41a2d53cbb40178341c89b54a92e6e490b3e8122e084ac0314724413 777.3s
=> => resolve docker.io/library/gradle:7.4.2-jdk17-alpine@sha256:a070f18d41a2d53cbb40178341c89b54a92e6e490b3e8122e084ac0314724413 0.1s
=> => sha256:f060460550f9f6f29c39104e896452022e837e7e0576b86268a1991ffbfab4fa 1.79kB / 1.79kB 0.0s
=> => sha256:71c52caf92778ed9fcc46aa6e995ae8a37d0c1e4a4eba9077ae57715918c0c6f 7.57kB / 7.57kB 0.0s
=> => sha256:a070f18d41a2d53cbb40178341c89b54a92e6e490b3e8122e084ac0314724413 320B / 320B 0.0s
=> => sha256:2408cc74d12b6cd092bb8b516ba7d5e290f485d3eb9672efc00f0583730179e8 2.80MB / 2.80MB 43.0s
=> => sha256:3d4177d2591259bff2bae6f43f12721dbe4ed5aac24fb0991377a3d27cdd534e 477.75kB / 477.75kB 45.8s
=> => extracting sha256:2408cc74d12b6cd092bb8b516ba7d5e290f485d3eb9672efc00f0583730179e8 0.2s
=> => sha256:192e69d5289dec2e5bbf3ed1456166acafdc67b3e657981604fa21df9ae64084 191.81MB / 191.81MB 763.2s
=> => extracting sha256:3d4177d2591259bff2bae6f43f12721dbe4ed5aac24fb0991377a3d27cdd534e 0.2s
=> => sha256:2fbdc495bee83415cd6c7ddec5b7a12d388962b684278496d8d5798a5a13cd90 160B / 160B 46.3s
=> => sha256:0552d85672b29146e15bdc19760dc85493ebd6ac3e80af037798d8b056ab02fa 1.33kB / 1.33kB 46.8s
=> => sha256:336f20103a0e745f28d9fb6461bb45e0535b38852f353e852128265a638cf3df 37.04MB / 37.04MB 267.5s
=> => sha256:32957fd24553b90f093ab2d601a4ba20365933a3cf80b7b5ffb1dff3cfa844c6 115.87MB / 115.87MB 712.0s
=> => extracting sha256:192e69d5289dec2e5bbf3ed1456166acafdc67b3e657981604fa21df9ae64084 7.5s
=> => extracting sha256:2fbdc495bee83415cd6c7ddec5b7a12d388962b684278496d8d5798a5a13cd90 0.0s
=> => extracting sha256:0552d85672b29146e15bdc19760dc85493ebd6ac3e80af037798d8b056ab02fa 0.0s
=> => extracting sha256:336f20103a0e745f28d9fb6461bb45e0535b38852f353e852128265a638cf3df 2.7s
=> => extracting sha256:32957fd24553b90f093ab2d601a4ba20365933a3cf80b7b5ffb1dff3cfa844c6 3.0s
=> [node1 internal] load build context 0.1s
=> => transferring context: 180.13kB 0.0s
=> [node1 build 2/5] WORKDIR /app 0.0s
=> [node1 build 3/5] COPY build.gradle.kts settings.gradle.kts gradlew gradle.properties ./ 0.1s
=> [node1 build 4/5] COPY src src 0.1s
=> [node1 build 5/5] RUN gradle build 282.1s
=> CACHED [node3 build 3/5] COPY build.gradle.kts settings.gradle.kts gradlew gradle.properties ./ 0.0s
=> CACHED [node3 build 4/5] COPY src src 0.0s
=> CACHED [node3 build 5/5] RUN gradle build 0.0s
=> ERROR [node3 blockchain-run 2/2] COPY --from=build /app/build/libs/blockchain.jar ./app/ 0.0s
=> ERROR [node1 blockchain-run 2/2] COPY --from=build /app/build/libs/blockchain.jar ./app/ 0.0s
------
> [node3 blockchain-run 2/2] COPY --from=build /app/build/libs/blockchain.jar ./app/:
------
------
> [node1 blockchain-run 2/2] COPY --from=build /app/build/libs/blockchain.jar ./app/:
------
failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::pz52p9u2pxkq2csj0mpt3fya9: "/app/build/libs/blockchain.jar": not found
@Julia-Chekulaeva ping
Постаралась исправить замечание, вроде бы теперь docker-compose собирается.
Student, group: Chekulaeva Julia, 3530901/90203 URL: https://github.com/Julia-Chekulaeva/BlockchainPoly Any comments: