Closed dimoibiehg closed 6 months ago
When I build the hotel reservation using docker-compose build, I get the following error in building frontend service :
docker-compose build
frontend
Building frontend [+] Building 167.2s (18/18) FINISHED docker:default => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 415B 0.0s => [internal] load metadata for docker.io/library/golang:1.21 2.4s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build context 0.3s => => transferring context: 21.67MB 0.2s => [ 1/14] FROM docker.io/library/golang:1.21@sha256:d83472f1ab5712a6b 144.9s => => resolve docker.io/library/golang:1.21@sha256:d83472f1ab5712a6b2b81 0.0s => => sha256:d83472f1ab5712a6b2b816dc811e46155e844ddc02f 2.13kB / 2.13kB 0.0s => => sha256:2cf9c2b42f41b1845f3e4421b723d56146db8293 24.05MB / 24.05MB 27.6s => => sha256:c4c40c3e3cdf945721f480e1d939aac857876fdb 64.14MB / 64.14MB 88.9s => => sha256:758ddc9809127da6b2b2c143f2023a16a4636aa0e34 1.79kB / 1.79kB 0.0s => => sha256:af2d3af00e57da762d0d6e1a95ea3aa594cd6173eab 2.88kB / 2.88kB 0.0s => => sha256:1468e7ff95fcb865fbc4dee7094f8b99c4dcddd6 49.58MB / 49.58MB 77.1s => => sha256:18445a9ea386c08b9cd5a46a17c8099d961d681 92.41MB / 92.41MB 132.3s => => extracting sha256:1468e7ff95fcb865fbc4dee7094f8b99c4dcddd6eb2180cf 1.2s => => sha256:c2c9e90aed829b7387fa3fa7121b7fda009a742 67.01MB / 67.01MB 141.8s => => extracting sha256:2cf9c2b42f41b1845f3e4421b723d56146db82939dc88455 0.4s => => sha256:28752861b6df1c9aaf482c7b8dabcd98fdf77d6e722fa2 175B / 175B 91.7s => => extracting sha256:c4c40c3e3cdf945721f480e1d939aac857876fdb5c33b8fb 1.5s => => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6 32B / 32B 94.9s => => extracting sha256:18445a9ea386c08b9cd5a46a17c8099d961d6813c6f5945e 1.6s => => extracting sha256:c2c9e90aed829b7387fa3fa7121b7fda009a742719004ac5 2.6s => => extracting sha256:28752861b6df1c9aaf482c7b8dabcd98fdf77d6e722fa2dd 0.0s => => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6 0.0s => [ 2/14] WORKDIR /workspace 0.4s => [ 3/14] COPY go.sum go.sum 0.0s => [ 4/14] COPY go.mod go.mod 0.0s => [ 5/14] COPY vendor/ vendor/ 0.4s => [ 6/14] COPY cmd/ cmd/ 0.0s => [ 7/14] COPY dialer/ dialer/ 0.0s => [ 8/14] COPY registry/ registry/ 0.0s => [ 9/14] COPY services/ services/ 0.1s => [10/14] COPY tls/ tls/ 0.0s => [11/14] COPY tracing/ tracing/ 0.0s => [12/14] COPY tune/ tune/ 0.0s => [13/14] COPY config.json config.json 0.0s => ERROR [14/14] RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go install 18.5s ------ > [14/14] RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go install -ldflags="-s -w" -mod=vendor ./cmd/...: 15.00 # github.com/delimitrou/DeathStarBench/hotelreservation/services/attractions 15.00 services/attractions/server.go:31:5: undefined: pb.UnimplementedRateServer 15.00 services/attractions/server.go:88:36: cannot use s (variable of type *Server) as "github.com/delimitrou/DeathStarBench/hotelreservation/services/attractions/proto".AttractionsServer value in argument to pb.RegisterAttractionsServer: *Server does not implement "github.com/delimitrou/DeathStarBench/hotelreservation/services/attractions/proto".AttractionsServer (missing method mustEmbedUnimplementedAttractionsServer) 15.06 # github.com/delimitrou/DeathStarBench/hotelreservation/services/review 15.06 services/review/server.go:38:5: undefined: pb.UnimplementedRateServer 15.06 services/review/server.go:77:31: cannot use s (variable of type *Server) as "github.com/delimitrou/DeathStarBench/hotelreservation/services/review/proto".ReviewServer value in argument to pb.RegisterReviewServer: *Server does not implement "github.com/delimitrou/DeathStarBench/hotelreservation/services/review/proto".ReviewServer (missing method mustEmbedUnimplementedReviewServer) ------ Dockerfile:19 -------------------- 17 | COPY config.json config.json 18 | 19 | >>> RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go install -ldflags="-s -w" -mod=vendor ./cmd/... 20 | 21 | -------------------- ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=0 GOOS=linux GO111MODULE=on go install -ldflags=\"-s -w\" -mod=vendor ./cmd/..." did not complete successfully: exit code: 1 ERROR: Service 'frontend' failed to build : Build failed
When I build the hotel reservation using
docker-compose build
, I get the following error in buildingfrontend
service :