Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The docker image of the bidders are not accepting arguments from a hube file #2

Open
felipegutierrez opened this issue Feb 24, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@felipegutierrez
Copy link
Owner

The file k8s/bidders-pod.yaml is used to launch the bidders to the minikube cluster. We use the same command of the file test-setup.sh:

docker run --rm -e server.port=8081 -e biddingTrigger=a -e initial=150 -p 8081:8081 yieldlab/recruiting-test-bidder &
docker run --rm -e server.port=8082 -e biddingTrigger=b -e initial=250 -p 8082:8082 yieldlab/recruiting-test-bidder &
docker run --rm -e server.port=8083 -e biddingTrigger=c -e initial=500 -p 8083:8083 yieldlab/recruiting-test-bidder &

But the docker image is not accepting the arguments -e server.port=8082 -e biddingTrigger=b -e initial=250 -p 8082:8082 that are necessary to launch the bidders on different ports: 8081, 8082, and 8083. The error is: No active profile set, falling back to default profiles: default

The full stack trace error is:

$ kubectl -n bidding-system logs -f bidder-02-0

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.3.2.RELEASE)

2021-02-24 14:31:55.979  INFO 1 --- [           main] d.yieldlab.recruiting.rtb.bidder.Bidder  : Starting Bidder on bidder-02-0.bidder-02-service.bidding-system.svc.cluster.local with PID 1 (/bidder-1.0-SNAPSHOT.jar started by root in /)
2021-02-24 14:31:55.984  INFO 1 --- [           main] d.yieldlab.recruiting.rtb.bidder.Bidder  : No active profile set, falling back to default profiles: default
2021-02-24 14:31:56.081  INFO 1 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@20f6f473: startup date [Wed Feb 24 14:31:56 UTC 2021]; root of context hierarchy
2021-02-24 14:31:57.439  INFO 1 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2021-02-24 14:32:00.001  INFO 1 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8081 (http)
2021-02-24 14:32:00.072  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2021-02-24 14:32:00.074  INFO 1 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.0.30
2021-02-24 14:32:00.466  INFO 1 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-02-24 14:32:01.412  INFO 1 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean        : Mapping servlet: 'dispatcherServlet' to [/]
2021-02-24 14:32:01.418  INFO 1 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'characterEncodingFilter' to: [/*]
2021-02-24 14:32:01.419  INFO 1 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2021-02-24 14:32:01.419  INFO 1 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2021-02-24 14:32:01.420  INFO 1 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'requestContextFilter' to: [/*]
2021-02-24 14:32:03.358  INFO 1 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2021-02-24 14:32:03.693  INFO 1 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8081 (http)
2021-02-24 14:32:03.704  INFO 1 --- [           main] d.yieldlab.recruiting.rtb.bidder.Bidder  : Started Bidder in 8.266 seconds (JVM running for 8.764)
@felipegutierrez felipegutierrez added the bug Something isn't working label Feb 24, 2021
@felipegutierrez felipegutierrez self-assigned this Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant