AleckDarcy / reload

MIT License
4 stars 0 forks source link

The images of hipster shop #6

Open chenhy97 opened 1 year ago

chenhy97 commented 1 year ago

Hello, I have read your paper named "3MileBeach: A Tracer with Teeth", which is an interesting work. I am very interested about this work and I want to reproduce it by myself. However, I have some troubles to build the docker images of the services in testbed application ("AleckDarcy/opencensus-microservices-demo") by myself and I cannot pull the docker images because of a permission problem.

root@cpu-10 /home# docker pull gcr.io/midyear-guild-279204/shippingservice
Using default tag: latest
Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication

I wonder if you can release the built images and make them public. Therefore, we can directly use your built images to reproduce your work! Thanks!!!

AleckDarcy commented 1 year ago

Hi! Unfortunately, my GKE account is deactivated and the images are gone. Are you able to build images and deploy the demo locally?

chenhy97 commented 1 year ago

Hi! Unfortunately, my GKE account is deactivated and the images are gone. Are you able to build images and deploy the demo locally?

No, there are no guidances in the "AleckDarcy/opencensus-microservices-demo" on how to build the images.... And I built the images of adservice and cartservice but I met some troubles in building the image of checkout service.

AleckDarcy commented 1 year ago

Please try https://github.com/AleckDarcy/opencensus-microservices-demo/blob/feature/image/RELOAD.md Commands above [RUN] help you replace some libraries that 3MileBeach requires. And you may build images through [RUN].

chenhy97 commented 1 year ago

Commands above [RUN] should be run firstly before I run the docker build command to build an image?

AleckDarcy commented 1 year ago

I believe skaffold will build, deploy and watch changes in your repo for you.

chenhy97 commented 1 year ago

Hi, I run the first command above [RUN]: gradle goBuild and I met an error.

chy@run-official:~/reload$ ~/gradle-6.1.1/bin/gradle goBuild

Welcome to Gradle 6.1.1!

Here are the highlights of this release:
 - Reusable dependency cache
 - Configurable compilation order between Groovy/Kotlin/Java/Scala
 - New sample projects in Gradle's documentation

For more details see https://docs.gradle.org/6.1.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
Found go 1.19.4 in /snap/bin/go, use it.

> Task :goPrepare
Use project GOPATH: /home/chy/reload/.gogradle/project_gopath

> Task :resolveBuildDependencies
Resolving github.com/google/flatbuffers: tag='v1.0.0', urls=[https://github.com/google/flatbuffers.git, git@github.com:google/flatbuffers.git]
Resolving github.com/google/uuid: tag='v1.1.1', urls=[https://github.com/google/uuid.git, git@github.com:google/uuid.git]
Resolving google.golang.org/grpc: tag='1.14.0', urls=[https://github.com/grpc/grpc-go]
Resolving github.com/golang/glog: commit='LATEST_COMMIT', urls=[https://github.com/golang/glog.git, git@github.com:golang/glog.git]
Resolving github.com/golang/mock: commit='LATEST_COMMIT', urls=[https://github.com/golang/mock.git, git@github.com:golang/mock.git]
Resolving github.com/golang/protobuf: commit='LATEST_COMMIT', urls=[https://github.com/golang/protobuf.git, git@github.com:golang/protobuf.git]
Resolving golang.org/x/net: commit='LATEST_COMMIT', urls=[https://go.googlesource.com/net]
Resolving golang.org/x/oauth2: commit='LATEST_COMMIT', urls=[https://go.googlesource.com/oauth2]
Resolving golang.org/x/sys: commit='LATEST_COMMIT', urls=[https://go.googlesource.com/sys]
Resolving google.golang.org/genproto: commit='LATEST_COMMIT', urls=[https://github.com/googleapis/go-genproto]
Resolving golang.org/x/exp: commit='LATEST_COMMIT', urls=[https://go.googlesource.com/exp]
Resolving golang.org/x/mod: commit='LATEST_COMMIT', urls=[https://go.googlesource.com/mod]
Resolving golang.org/x/tools: commit='LATEST_COMMIT', urls=[https://go.googlesource.com/tools]
Resolving google.golang.org/protobuf: commit='LATEST_COMMIT', urls=[https://go.googlesource.com/protobuf]

> Task :resolveBuildDependencies FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':resolveBuildDependencies'.
> Exception in resolution, message is:
  Cannot recognize package: embed
  Resolution stack is:
  +- github.com/AleckDarcy/reload
   +- google.golang.org/grpc#32fb0ac620c32ba40a4626ddf94d90d12cce3455
    +- golang.org/x/net#f8411da775a685be247bbedcb3ed2c998f895cd2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 9s
2 actionable tasks: 2 executed

How to solve this error?