GithubHelp home page GithubHelp logo

felipegutierrez / bidding-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 86 KB

This is a bidding system implemented using Scala with the libraries: akka-actor, akka-http, and akka-streams. Its docker image is created using abt-native-packager and it is tested on minikube.

Shell 3.76% Scala 96.24%
scala akka-actors akka-http akka-streams sbt-native-packager kubernetes minikube

bidding-system's People

Contributors

codacy-badger avatar felipegutierrez avatar

Watchers

 avatar  avatar

bidding-system's Issues

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

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.