https://github.com/jewel-cse/microservices-architecture
https://github.com/jewel-cse/microservices-architecture
bulkhead circuit-breaker docker-compose docker-container docker-image feign-client feign-service microservices netflix-eureka rate-limiter resilience4j retry spring-cloud spring-cloud-config spring-cloud-gateway zipkin
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jewel-cse/microservices-architecture
- Owner: Jewel-cse
- Created: 2024-05-19T05:58:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-01T17:24:56.000Z (over 1 year ago)
- Last Synced: 2025-04-05T19:18:51.291Z (6 months ago)
- Topics: bulkhead, circuit-breaker, docker-compose, docker-container, docker-image, feign-client, feign-service, microservices, netflix-eureka, rate-limiter, resilience4j, retry, spring-cloud, spring-cloud-config, spring-cloud-gateway, zipkin
- Language: Java
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deployment using Docker and kubernetes
## Step 1:
>Create a spring boot application
>Build an image using maven plugin
```
mvn spring-boot:build-image -DskipTests
```
> -DskipTest for faster build
###Some docker image command
>To see the list of images
```
docker images
````
>Displays the history of an image, showing the commands used to create each layer
```
docker image history
```
>Provides detailed information about a specific image, including its configuration and layers
```
docker image inspect : gives the info about images
```
>Deletes the specified image from the local system
```
docker image remove : remove from local
```## Step 2:
### Container Run
>>hostPort:containerPort and when docker desktop is restart the container is run automatically
```
docker run -p 5000:5000 -d —restart=always projectName:tagName
```>Memory use maxi 512megabyts and cpu 5% = 5,000 bcz (100,000 = 100%) check it by
```
docker run -p 5001:5000 -m 512m —cpu-quota 5000 - projectname:tagename
```
## docker container related commands
>Pauses all processes within a container
```
docker container pause
```
>Resumes all processes within a paused container
```
docker container unpause
```
>Provides detailed information about a specific container
```
docker container inspect
```
>Lists all containers, including stopped ones
```
docker container ls -a
```
>Removes all stopped containers
```
docker container prune
```
>Follows and displays real-time logs from a container.
```
docker container logs -f
```
>Gracefully shutdown a running container
```
docker container stop
```
>Immediately shutdown a running container
```
docker container kill
```## Some other Docker Commands
>Displays real-time events from the Docker daemon, showing what is happening with Docker
```
docker events
```
>Lists all running processes within a specific container
```
docker top
```
>Shows a live stream of system resource usage statistics (CPU, memory, network, etc.) for running containers
```
docker stats
```
>Downloads an image from the Docker registry to the local system
```
docker pull
```
>Searches the Docker Hub for images matching the specified term
```
docker search
```