@@ -8,7 +8,6 @@ Estimated time: ~25-minutes.
88
99### Objectives
1010
11- * Set values for environment variables
1211* Build and deploy the Docker image of the application
1312* Deploy the image on the Oracle Kubernetes Engine (OKE)
1413* Describe the steps for Undeploying
@@ -38,71 +37,31 @@ The backend is implemented using the following Java classes (under ./backend/src
3837
3938 ![ ] ( images/Backend-APIs.png " ")
4039
40+ ## ** Task 1** : Build and push the Docker images to the OCI Registry
4141
42- ## ** STEP 1 ** : Set values for workshop environment variables
42+ 1 . Edit ./backend/src/main/java/com/oracle/todoapp/Main.java
4343
44- 1 . Set the root directory of the workshop
45- ```
46- <copy>export MTDRWORKSHOP_LOCATION=~/mtdrworkshop</copy>
47- ```
48- 2 . Run source addAndSourcePropertiesInBashrc.sh
49-
50- The following command will set the values of environment variables in mtdrworkshop.properties and source ~ /.bashrc
51-
52- ```
53- <copy>cd $MTDRWORKSHOP_LOCATION; source addAndSourcePropertiesInBashrc.sh
54- </copy>
55- ```
56-
57- ## ** STEP 2** : Build and push the Docker images to the OCI Registry
58-
59- 1 . Ensure that the "DOCKER_REGISTRY" variable is set
60-
61- Example: ` <region-key>.ocir.io/<object-storage-namespace>/<firstname.lastname>/<repo-name> `
62- If the variable is not set or is an empty string, the push will fail (but the docker image will be built).
63-
64- 2 . Make sure to be in backend/target/classes/wallet directory then execute
65- ```
66- <copy>unzip ~/mtdrworkshop/setup-dev-environment/wallet.zip</copy>
67- ```
68-
69- 3 . Pick mtdrb_tp service alias (see the list of aliases in
70- ./backend/target/classes/wallet/tnsnames.ora)
71-
72- ![ ] ( images/tnsnames-ora.png " ")
73-
74- 4 . Edit ./backend/target/classes/application.yaml to set the database service and user password
75- ![ ] ( images/application-yaml.png " ")
76-
77- 5 . Copy the edited ./backend/target/classes/application.yaml to ./backend/src/main/resources/application.yaml
78-
79- 6 . Edit ./backend/src/main/java/com/oracle/todoapp/Main.java
8044 - Locate the following code fragment
45+
8146 ![ ] ( images/CORS-Main.png " ")
8247 - Replace ` eu-frankfurt-1 ` in ` "https://objectstorage.eu-frankfurt-1.oraclecloud.com" ` by your region
8348
8449 - Save the file
8550
86- 7 . Run ` build.sh ` script to build and push the
87- microservices images into the repository
51+ 2 . Run ` build.sh ` script to build and push the helidon-se image into the repository
8852
8953 ```
9054 <copy>cd $MTDRWORKSHOP_LOCATION/backend; ./build.sh</copy>
9155 ```
9256 In a couple of minutes, you should have successfully built and pushed the images into the OCIR repository.
9357
94- 8 . Check your container registry from the root compartment
58+ 3 . Check your container registry in your compartment
9559 - Go to the Console, click the hamburger menu in the top-left corner and open
9660 **Developer Services > Container Registry**.
61+
62+ 
9763
98- 
99-
100- 9. Mark Access as Public (if Private)
101- (**Actions** > **Change to Public**):
102-
103- 
104-
105- ## **STEP 3**: Deploy on Kubernetes and Check the Status
64+ ## **STEP 2**: Deploy on Kubernetes and Check the Status
10665
107661. Run the `deploy.sh` script
10867
0 commit comments