Giter VIP home page Giter VIP logo

venkataravuri / e-commerce-microservices-sample Goto Github PK

View Code? Open in Web Editor NEW
246.0 246.0 168.0 1.78 MB

A fictitious cloud-native e-commerce application using microservices architecture powered by polyglot languages & databases, deployable to Kubernetes & AWS

Java 13.69% JavaScript 16.95% CSS 0.64% HTML 3.03% Dockerfile 2.89% HCL 3.96% TypeScript 51.65% Python 7.19%
cloudnative-services docker elasticsearch kubernetes microservices mongodb nodejs python redis spring-boot terraform

e-commerce-microservices-sample's Introduction

Hey, nice to see you.

I ๐Ÿ’• fine-tune Deep Neural Network models, blogging & contribute to open-source, have passion sharing knowledge with others as public as possible. You can see what I am up to here.

โšก๏ธ A Few Quick Facts

  • ๐Ÿ’ฌ Ping me about AI/ML, MLOps, Cloud-Native Apps and Cloud Computing ...
  • ๐Ÿง Learning about Multimodality, Reinforcement Learning and a bit of Yoga.
  • ๐Ÿ‘จโ€๐Ÿ’ป Most of my projects are available on Github.
  • ๐Ÿ“ I regulary write articles on my blog.
  • ๐Ÿ“™ Check out my resume.
  • ๐ŸŽ‰ Fun Fact: 70% Of The Coding Jobs Has Nothing To Do With Technology At All.

๐ŸŒฑ My Digital Garden

I write regular ๐Ÿ“• blog posts, most of which you will find on my personal blog www.UnoBOTics.com.

๐Ÿš€ Technologies I Use

python python Kubernetes aws Docker react java MongoDB mysql redis nodejs

๐Ÿ’ฌ Connect with me:

linkedin

Venkat's github stats

e-commerce-microservices-sample's People

Contributors

venkataravuri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

e-commerce-microservices-sample's Issues

Replace base image openjdk:17-alpine with amazoncorretto:17-alpine

I tried to deploy e-commerce-microservices-sample on Arm64 machines as mentioned in Readme. I have followed the below steps to deploy the application microservices to Minkube K8s cluster:


git clone https://github.com/venkataravuri/e-commerce-microservices-sample 

    

cd infra/k8s 

  

minikube start  

  

kubectl apply -k shared-services/overlays/local  

  

kubectl apply -k apps/overlays/local  

  

kubectl get pods -A -o wide   

  

Five microservices cart-deployment, products-deployment, search-deployment, store-ui-deployment and users-deployment are failing to start on Arm64 machines.

I have successfully built the docker images required for four microservices on local arm64 server as they are not present on dockerhub but the base image used in the Dockerfile of cart-deployment microservice is openjdk:17-alpine which is only available for Amd64 and also this image is deprecated. I have replaced the openjdk:17-alpine image with amazoncorretto:17-alpine and successfully built the same.

Can we replace openjdk:17-alpine base image with amazoncorretto:17-alpine as openjdk:17-alpine is deprecated and amazoncorretto:17-alpine image is available for both Amd64 and Arm64 machines?

If required, I am happy to raise PR with this change.

Error:(9, 55) java: package org.springframework.cloud.netflix.eureka.server does not exist

Building from command line does not worked, for project discovery-microservice.When run command gradlew build this following error thrown.
Error:(9, 55) java: package org.springframework.cloud.netflix.eureka.server does not exist

When I tried using spring-cloud-netflix-eureka-server , It thows following Exception

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration]; nested exception is java.lang.ClassCastException: java.lang.ClassNotFoundException cannot be cast to [Ljava.lang.Object;

What should be proper dependency for this?

build failure

Build failure is happening because of unresolved plugins in most of the modules.

build faliure

e-commerce-microservices-sample-master\discovery-microservice\src\main\java\com\nikhu\ecommerce\discovery\EurekaDiscoveryServiceApplication.java:9: error: package org.springframework.cloud.netflix.eureka.server does not exist
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
^
C:\POC\e-commerce-microservices-sample-master\discovery-microservice\src\main\java\com\nikhu\ecommerce\discovery\EurekaDiscoveryServiceApplication.java:11: error: cannot find symbol
@EnableEurekaServer
^
symbol: class EnableEurekaServer
2 errors
:discovery-microservice:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':discovery-microservice:compileJava'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.561 secs

docker-compose build error

when I run sudo docker-compose build --no-cache, it shows:

Step 3/6 : RUN apk add --update curl && rm -rf /var/cache/apk/*
---> Running in 1aebdd96abb3
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.a2e6dac0.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
curl (missing):
required by: world[curl]
ERROR: Service 'discovery-microservice' failed to build: The command '/bin/sh -c apk add --update curl && rm -rf /var/cache/apk/*' returned a non-zero code: 1

'discovery-microservice build failure

ubuntu@ip-172-31-34-221:~/e-commerce-microservices-sample$ docker-compose up
Creating network "e-commerce-microservices-sample_default" with the default driver
Building discovery-microservice
Sending build context to Docker daemon 11.26kB
Step 1/6 : FROM anapsix/alpine-java:8_jdk_unlimited
8_jdk_unlimited: Pulling from anapsix/alpine-java
169185f82c45: Pull complete
b6dbdadc155a: Pull complete
Digest: sha256:3efbada98b873839aa397df2da30242b4db882f1525b8bd05bd894eda231b1d7
Status: Downloaded newer image for anapsix/alpine-java:8_jdk_unlimited
---> cbe2edd4cf23
Step 2/6 : MAINTAINER Venkata Ravuri [email protected]
---> Running in 4045dab75d0c
Removing intermediate container 4045dab75d0c
---> 42d76ea6af53
Step 3/6 : RUN apk add --update curl && rm -rf /var/cache/apk/*
---> Running in 256c35d81f3c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/4) Installing nghttp2-libs (1.39.2-r0)
(2/4) Installing libssh2 (1.9.0-r1)
(3/4) Installing libcurl (7.61.1-r3)
(4/4) Installing curl (7.61.1-r3)
Executing busybox-1.28.4-r3.trigger
Executing glibc-bin-2.29-r0.trigger
OK: 23 MiB in 27 packages
Removing intermediate container 256c35d81f3c
---> dbaaa73b2a85
Step 4/6 : ADD ./build/libs/discovery-microservice-0.0.1-SNAPSHOT.jar /app/
ADD failed: file not found in build context or excluded by .dockerignore: stat build/libs/discovery-microservice-0.0.1-SNAPSHOT.jar: file does not exist
ERROR: Service 'discovery-microservice' failed to build : Build failed

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.