Some cleanup: code editor instead of IDE, remove Eclipse for more generic documentation

This commit is contained in:
Pierre Malarme 2023-03-22 13:49:41 +01:00
Родитель 4996e244fc
Коммит 9be4ff27ae
8 изменённых файлов: 31 добавлений и 31 удалений

Просмотреть файл

@ -30,13 +30,13 @@ This command will read the docker-compose.yml file located within the root folde
## Step 2. Run the VehicleRegistration service
1. Open the source code folder in Eclipse. This guide assumes Eclipse, but feel free to use an editor or IDE you're comfortable with.
1. Open the source code folder in your code editor.
1. Open a terminal window.
2. Open a terminal window.
1. Make sure the current folder is `VehicleRegistrationService`.
3. Make sure the current folder is `VehicleRegistrationService`.
1. Start the service using `mvn spring-boot:run`.
4. Start the service using `mvn spring-boot:run`.
> If you receive an error here, please double-check whether or not you have installed all the [prerequisites](../Module0/index.md) for the workshop!
@ -54,19 +54,19 @@ This command will read the docker-compose.yml file located within the root folde
1. Make sure the VehicleRegistrationService and FineCollectionService are running (results of step 1 and 2).
1. Open a **new** terminal window in Eclipse and make sure the current folder is `TrafficControlService`.
2. Open a **new** terminal window and make sure the current folder is `TrafficControlService`.
1. Start the service using `mvn spring-boot:run`.
3. Start the service using `mvn spring-boot:run`.
## Step 5. Run the simulation
Now you're going to run the simulation that actually simulates cars driving on the highway. The simulation will simulate 3 entry- and exit-cameras (one for each lane).
1. Open a new terminal window in Eclipse and make sure the current folder is `Simulation`.
1. Open a new terminal window and make sure the current folder is `Simulation`.
1. Start the service using `mvn spring-boot:run`.
2. Start the simulation using `mvn spring-boot:run`.
1. In the simulation window you should see something like this:
3. In the simulation window you should see something like this:
```bash
2021-09-15 13:47:59.599 INFO 22875 --- [ main] dapr.simulation.SimulationApplication : Started SimulationApplication in 0.98 seconds (JVM running for 1.289)
@ -80,10 +80,10 @@ Now you're going to run the simulation that actually simulates cars driving on t
2021-09-15 13:48:04.894 INFO 22875 --- [pool-1-thread-3] dapr.simulation.Simulation : Simulated EXIT of vehicle with license number LF-613-D in lane 0
```
1. Also check the logging in all the other Terminal windows. You should see all entry- and exit events and any speeding-violations that were detected in the logging.
4. Also check the logging in all the other Terminal windows. You should see all entry- and exit events and any speeding-violations that were detected in the logging.
Now we know the application runs correctly. It's time to start adding Dapr to the application.
## Next assignment
Make sure you stop all running processes and close all the terminal windows in Eclipse before proceeding to the next assignment. Stopping a service or the simulation is done by pressing `Ctrl-C` in the terminal window.
Make sure you stop all running processes and close all the terminal windows before proceeding to the next assignment. Stopping a service or the simulation is done by pressing `Ctrl-C` in the terminal window.

Просмотреть файл

@ -52,7 +52,7 @@ In the example, you will use Azure Service Bus as the message broker with the Da
## Step 2: Configure the pub/sub component
1. Open the file `dapr/azure-servicebus-pubsub.yaml` in your IDE.
1. Open the file `dapr/azure-servicebus-pubsub.yaml` in your code editor.
```yaml
apiVersion: dapr.io/v1alpha1

Просмотреть файл

@ -67,7 +67,7 @@ In the example, you will use Azure Cache for Redis as the message broker with th
## Step 2: Configure the pub/sub component
1. Open the file `dapr/azure-redis-pubsub.yaml` in your IDE.
1. Open the file `dapr/azure-redis-pubsub.yaml` in your code editor.
```yaml
apiVersion: dapr.io/v1alpha1

Просмотреть файл

@ -88,7 +88,7 @@ kubectl apply -f kafka-pubsub.yaml
az acr login --name daprworkshopjava
```
2. In the root folder/directory of each of the TravelRegistrationService microservice, run the following command
1. In the root folder of TravelRegistrationService microservice, run the following command
```bash
mvn spring-boot:build-image
@ -96,14 +96,14 @@ docker tag vehicle-registration-service:1.0-SNAPSHOT daprworkshopjava.azurecr.io
docker push daprworkshopjava.azurecr.io/vehicle-registration-service:latest
```
3. In the root folder/directory of each of the FineCollectionService microservice, run the following command
1. In the root folder of FineCollectionService microservice, run the following command
```bash
mvn spring-boot:build-image
docker tag fine-collection-service:1.0-SNAPSHOT daprworkshopjava.azurecr.io/fine-collection-service:latest
docker push daprworkshopjava.azurecr.io/fine-collection-service:latest
```
4. In the root folder/directory of each of the TrafficControlService microservice, run the following command
1. In the root folder of TrafficControlService microservice, run the following command
```bash
mvn spring-boot:build-image
@ -111,7 +111,7 @@ docker tag traffic-control-service:1.0-SNAPSHOT daprworkshopjava.azurecr.io/traf
docker push daprworkshopjava.azurecr.io/traffic-control-service:latest
```
5. In the root folder/directory of each of the SimulationService microservice, run the following command
1. In the root folder of the simulation (`Simulation`), run the following command
```bash
mvn spring-boot:build-image
@ -121,7 +121,7 @@ docker push daprworkshopjava.azurecr.io/simulation:latest
## Step 3 - Deploy Kubernetes manifest files for applications to AKS
1. From the root folder/directory of the repo, run the following command.
1. From the root folder of the repo, run the following command.
Please note below the `kubectl apply` is with **-k** option, which is applying `kustomize.yaml` file in the `deploy` folder

Просмотреть файл

@ -13,11 +13,11 @@ layout: default
With Dapr, services can invoke other services using their application id. This is done by using the Dapr client to make calls to the Dapr sidecar. The Vehicle Registration Service will be started with a Dapr sidecar.
1. Open the `FineCollectionService` project in your IDE and navigate to the `DaprVehicleRegistrationClient` class. This class implements the `VehicleRegistrationClient` interface and uses the Dapr client to invoke the Vehicle Registration Service. Inspect the implementation of this class.
1. Open the `FineCollectionService` project in your code editor and navigate to the `DaprVehicleRegistrationClient` class. This class implements the `VehicleRegistrationClient` interface and uses the Dapr client to invoke the Vehicle Registration Service. Inspect the implementation of this class.
1. Navigate to the `FineCollectionConfiguration` class to switch between the default and Dapr implementation of the `VehicleRegistrationClient`.
2. Navigate to the `FineCollectionConfiguration` class to switch between the default and Dapr implementation of the `VehicleRegistrationClient`.
1. **Uncomment** following @Bean method
3. **Uncomment** following @Bean method
```java
// @Bean
@ -26,7 +26,7 @@ With Dapr, services can invoke other services using their application id. This i
// }
```
1. **Uncomment** following @Bean method
4. **Uncomment** following @Bean method
```java
// @Bean
@ -35,7 +35,7 @@ With Dapr, services can invoke other services using their application id. This i
// }
```
1. **Comment out** following @Bean method
5. **Comment out** following @Bean method
```java
@Bean
@ -44,7 +44,7 @@ With Dapr, services can invoke other services using their application id. This i
}
```
1. Check all your code-changes are correct by building the code. Execute the following command in the terminal window:
6. Check all your code-changes are correct by building the code. Execute the following command in the terminal window:
```bash
mvn package

Просмотреть файл

@ -19,7 +19,7 @@ layout: default
## Step 1: Deploy service-to-service communication to AKS
1. Open `deploy/vehicleregistrationservice.yaml` in your IDE and **uncomment** the following lines:
1. Open `deploy/vehicleregistrationservice.yaml` in your code editor and **uncomment** the following lines:
```yaml
# annotations:
@ -37,7 +37,7 @@ layout: default
az acr repository delete -n daprworkshopjava --image fine-collection-service:latest
```
1. In the root folder/directory of the FineCollectionService microservice, run the following command
1. In the root folder of FineCollectionService microservice, run the following command
```bash
mvn spring-boot:build-image
@ -45,7 +45,7 @@ layout: default
docker push daprworkshopjava.azurecr.io/fine-collection-service:latest
```
1. From the root folder/directory of the repo, run the following command
1. From the root folder of the repo, run the following command
```bash
kubectl apply -k deploy

Просмотреть файл

@ -53,7 +53,7 @@ This bonus assignment is about using Azure Cosmos DB as a [state store](https://
## Step 2: Configure the Azure Cosmos DB state store component
1. Open the file `dapr/azure-cosmosdb-statestore.yaml` in your IDE.
1. Open the file `dapr/azure-cosmosdb-statestore.yaml` in your code editor.
1. **Copy or Move** this file `dapr/azure-cosmosdb-statestore.yaml` to `dapr/components` folder.
@ -66,7 +66,7 @@ This bonus assignment is about using Azure Cosmos DB as a [state store](https://
## Step 3: Add the Azure Cosmos DB state store to the `TrafficControlService`
1. Open the `TrafficControlService` project in your IDE and navigate to the `DaprVehicleStateRepository` class. This class use the Dapr client to store and retrieve the state of a vehicle. Inspect the implementation of this class.
1. Open the `TrafficControlService` project in your code editor and navigate to the `DaprVehicleStateRepository` class. This class use the Dapr client to store and retrieve the state of a vehicle. Inspect the implementation of this class.
1. Navigate to the `TrafficControlConfiguration` class to swith from the `InMemoryVehicleStateRepository` to the `DaprVehicleStateRepository`.

Просмотреть файл

@ -75,7 +75,7 @@ layout: default
az acr repository delete -n daprworkshopjava --image traffic-control-service:latest
```
1. In the root folder/directory of the TrafficControlService microservice, run the following command
1. In the root folder of TrafficControlService microservice, run the following command
```bash
mvn spring-boot:build-image
@ -83,7 +83,7 @@ layout: default
docker push daprworkshopjava.azurecr.io/traffic-control-service:latest
```
1. From the root folder/directory of the repo, run the following command
1. From the root folder of the repo, run the following command
```bash
kubectl apply -k deploy