From 41c372d1e8bcc49777d00dba54c47971afe6ea30 Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Tue, 19 Sep 2023 11:48:13 +0200 Subject: [PATCH 01/10] Split Java documentation from general documentation --- README.md | 61 ++++++++++-------- {listing => java/listing}/overview.html | 0 .../listing}/system-requirements.html | 0 .../listing}/usage-information.html | 0 .../screenshots}/10_ContainerInstance.png | Bin .../screenshots}/1_GeneralConfiguration.png | Bin .../screenshots}/2_Application.png | Bin {screenshots => java/screenshots}/3_APM.png | Bin .../screenshots}/4_Database.png | Bin .../screenshots}/5_OtherParams.png | Bin .../screenshots}/6_LB_SSL.png | Bin {screenshots => java/screenshots}/7_Vault.png | Bin .../screenshots}/8_ApplicationURL.png | Bin .../screenshots}/9_Network.png | Bin .../screenshots/1_statefailed.png | Bin .../screenshots/2_logerror.png | Bin .../screenshots/3_buildpipelinelog.png | Bin .../screenshots/4_artifactalreadyexists.png | Bin .../screenshots/5_deleteartifact.png | Bin .../troubleshooting}/troubleshooting.md | 0 .../screenshots/10_devopslogging.png | Bin .../screenshots/11_externalconnection.png | Bin .../12_validateexternalconnection.png | Bin .../mytodolist/screenshots/13_createrepo.png | Bin .../mytodolist/screenshots/14_mirrorrepo.png | Bin .../mytodolist/screenshots/15_repo.png | Bin .../mytodolist/screenshots/16_stackbutton.png | Bin .../mytodolist/screenshots/17_createstack.png | Bin .../screenshots/18_generalconfig.png | Bin .../mytodolist/screenshots/19_appconfig.png | Bin .../screenshots/1_springbootrepo.png | Bin .../mytodolist/screenshots/20_apm.png | Bin .../mytodolist/screenshots/21_db.png | Bin .../mytodolist/screenshots/22_vault.png | Bin .../mytodolist/screenshots/23_url.png | Bin .../mytodolist/screenshots/24_network.png | Bin .../mytodolist/screenshots/25_applystack.png | Bin .../screenshots/26_stacksuccess.png | Bin .../screenshots/27_appinformation.png | Bin .../mytodolist/screenshots/28_iamalive.png | Bin .../screenshots/29_containerinstances.png | Bin .../mytodolist/screenshots/2_githubtoken.png | Bin .../mytodolist/screenshots/30_ciinstanc.png | Bin .../mytodolist/screenshots/31_viewlogs.png | Bin .../mytodolist/screenshots/32_logs.png | Bin .../mytodolist/screenshots/3_compartment.png | Bin .../mytodolist/screenshots/4_vault.png | Bin .../screenshots/5_vault_createkey.png | Bin .../screenshots/6_vault_createsecret.png | Bin .../mytodolist/screenshots/7_dynamicgroup.png | Bin .../mytodolist/screenshots/8_policy.png | Bin .../screenshots/9_devopsproject.png | Bin .../tutorials}/mytodolist/tutorial.md | 0 .../usage_instructions.md | 0 54 files changed, 33 insertions(+), 28 deletions(-) rename {listing => java/listing}/overview.html (100%) rename {listing => java/listing}/system-requirements.html (100%) rename {listing => java/listing}/usage-information.html (100%) rename {screenshots => java/screenshots}/10_ContainerInstance.png (100%) rename {screenshots => java/screenshots}/1_GeneralConfiguration.png (100%) rename {screenshots => java/screenshots}/2_Application.png (100%) rename {screenshots => java/screenshots}/3_APM.png (100%) rename {screenshots => java/screenshots}/4_Database.png (100%) rename {screenshots => java/screenshots}/5_OtherParams.png (100%) rename {screenshots => java/screenshots}/6_LB_SSL.png (100%) rename {screenshots => java/screenshots}/7_Vault.png (100%) rename {screenshots => java/screenshots}/8_ApplicationURL.png (100%) rename {screenshots => java/screenshots}/9_Network.png (100%) rename {troubleshooting => java/troubleshooting}/screenshots/1_statefailed.png (100%) rename {troubleshooting => java/troubleshooting}/screenshots/2_logerror.png (100%) rename {troubleshooting => java/troubleshooting}/screenshots/3_buildpipelinelog.png (100%) rename {troubleshooting => java/troubleshooting}/screenshots/4_artifactalreadyexists.png (100%) rename {troubleshooting => java/troubleshooting}/screenshots/5_deleteartifact.png (100%) rename {troubleshooting => java/troubleshooting}/troubleshooting.md (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/10_devopslogging.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/11_externalconnection.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/12_validateexternalconnection.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/13_createrepo.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/14_mirrorrepo.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/15_repo.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/16_stackbutton.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/17_createstack.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/18_generalconfig.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/19_appconfig.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/1_springbootrepo.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/20_apm.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/21_db.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/22_vault.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/23_url.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/24_network.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/25_applystack.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/26_stacksuccess.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/27_appinformation.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/28_iamalive.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/29_containerinstances.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/2_githubtoken.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/30_ciinstanc.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/31_viewlogs.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/32_logs.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/3_compartment.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/4_vault.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/5_vault_createkey.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/6_vault_createsecret.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/7_dynamicgroup.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/8_policy.png (100%) rename {tutorials => java/tutorials}/mytodolist/screenshots/9_devopsproject.png (100%) rename {tutorials => java/tutorials}/mytodolist/tutorial.md (100%) rename usage_instructions.md => java/usage_instructions.md (100%) diff --git a/README.md b/README.md index e93fb36..7319068 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ App Stack ========= -This repository has automation for various application deployments on the Oracle Cloud Infrastructure (OCI) using serverless resources such as Container Instances and Autonomous Database. In the current version only Java applications are supported. +This repository has automation for various application deployments on the Oracle Cloud Infrastructure (OCI) using serverless resources such as Container Instances and Autonomous Database. The Container Instances service is an ideal deployment platform as it is serverless and cost effective. + +**App Stack** is a customizable Terraform Stack designed to automate the deployment of applications (the backend only) in a serverless infrastructure. Follow the instructions below to learn how to utilize the stack to seamlessly deploy Java applications to Container Instances, creating a production-ready environment. + +![Blueprint architecture](https://github.com/oracle-quickstart/appstack/blob/main/images/blueprintarchitecture.svg) + # Target Applications **Web applications** Server-side HTML applications, a.k.a. servlets or Java Server Pages **Back-end servers** REST APIs -# App Stack for Java - -**App Stack for Java** is a customizable Terraform Stack designed to automate the deployment of Java applications (the backend only) in a serverless infrastructure. Follow the instructions below to learn how to utilize the stack to seamlessly deploy Java applications to Container Instances, creating a production-ready environment. - -[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-quickstart/appstack/releases/download/v0.1.4/appstackforjava.zip) -![Blueprint architecture](https://github.com/oracle-quickstart/appstack/blob/main/images/blueprintarchitecture.svg) +# App Stack for Java Your Java application can be packaged in 3 ways: 1. As **source code**: this is the most valuable use case. Your source code can be in a github repo and mirrored in OCI DevOps (see details below). The stack will create a build pipeline that: @@ -27,14 +27,28 @@ Your Java application can be packaged in 3 ways: In all cases the deployment is done on Container Instances behind a load balancer. -## Release and status +[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-quickstart/appstack/releases/download/v0.1.4/appstackforjava.zip) + +## Usage Instructions + +Please refer to the [usage instructions](./java/usage_instructions.md) for details about each field of the stack form. + +## Tutorial + +[MyTodoList SpringBoot application tutorial](./tutorials/mytodolist/tutorial.md). + + +# App Stack for .Net +TODO : write .Net specific description + +# Release and status - This is v0.1.4: initial release as a preview. -## Prerequisites +# Prerequisites -For deploying your Java App with the App Stack, here is the list of OCI prerequisites. +For deploying your application with the App Stack, here is the list of OCI prerequisites. -- **DevOps project (optional):** A Java application in an OCI DevOps project (can be a mirror of an existing GitHub repo). This isn't required if the application is provided as a container image. +- **DevOps project (optional):** An application in an OCI DevOps project (can be a mirror of an existing GitHub repo). This isn't required if the application is provided as a container image. - **Database:** an existing Autonomous Database - Shared Infrastructure (ADB-S) can be used with the stack. The stack may create a new one, if specified during the Stack configuration. - **Vault (optional):** An authentication token can either be provided or created by the stack. It is used for connecting to the DevOps repos. A Vault is necessary to store this token, the Vault isn't required if the application is provided as a container image. - **DNS (optional):** A DNS zone for creating the application URL (for example https://myapp.domain.com). If not provided during the stack configuration, the application will be available through the load balancer's public IP. You can then configure your third-party DNS provider to point to this IP address. @@ -55,7 +69,7 @@ For deploying your Java App with the App Stack, here is the list of OCI prerequi Allow dynamic-group 'appstack-devops' to manage devops-family in tenancy ``` -## Which Cloud Resources will be used? +# Which Cloud Resources will be used? The [Oracle Cloud Free Tier service](https://www.oracle.com/cloud/free/) allows you to build, test, and deploy your applications on Oracle Cloud for free. Upon signing up, the service comes with a $300 credit with 30 days expiration; following the expiration or the exhaustion of the credit, most of the provisioned services remain available as [Always Free](https://www.oracle.com/cloud/free/#always-free). You may add additional credit for services that do not fall under Always-Free. - **Container Instances** for building and running the app. This service is part of Free-Tier but not an Always-Free resource. @@ -67,12 +81,7 @@ The [Oracle Cloud Free Tier service](https://www.oracle.com/cloud/free/) allows - **HTTPS Certificates**. This service is part of Always-Free with some limits. - **DNS** for application URL. This service is part of Free-Tier but not an Always-Free resource. - -## Usage Instructions - -Please refer to the [usage instructions](./usage_instructions.md) for details about each field of the stack form. - -### What will the stack do? +## What will the stack do? - Create a new repository called "_config" that includes: - **wallet.zip:** The database wallet (the zip that includes tnsnames.ora, cwallet.sso and ojdbc.properties) If the database wallet is rotated this zip file needs to be updated. @@ -87,34 +96,30 @@ Please refer to the [usage instructions](./usage_instructions.md) for details ab - Terraform script for provisioning the Autonomous Database - Dependencies to pull JDBC, UCP, R2DBC, and so on from Maven Central. -## Destroying the stack +# Destroying the stack Before you can destroy the stack and all the resources that have been created you must manually delete the artifact that the stack has created under the "Artifact Registry". -## Tutorial - -[MyTodoList SpringBoot application tutorial](./tutorials/mytodolist/tutorial.md). - -## Contributing +# Contributing This project welcomes contributions from the community. Before submitting a pull request, see [CONTRIBUTING](./CONTRIBUTING.md) for details. -## License +# License Copyright (c) 2023, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. See [LICENSE](./LICENSE) for more details. -## Support +# Support Please review the [troubleshooting document](./troubleshooting/troubleshooting.md). For support you can [file issues on GitHub](https://github.com/oracle-quickstart/appstack/issues). You can also send an email to the product team at "appstack_ww at oracle.com". -## Appendix +# Appendix -### Build instructions +## Build instructions To build the zip on a mac from this directory: ``` zip -r ../appstackforjava.zip . -x "*.git*" -x "*.DS_Store" -x "images/*" -x "listing/*" -x "*.md" -x "troubleshooting/*" -x "tutorials/*" -x "screenshots/*" -x "*.md" diff --git a/listing/overview.html b/java/listing/overview.html similarity index 100% rename from listing/overview.html rename to java/listing/overview.html diff --git a/listing/system-requirements.html b/java/listing/system-requirements.html similarity index 100% rename from listing/system-requirements.html rename to java/listing/system-requirements.html diff --git a/listing/usage-information.html b/java/listing/usage-information.html similarity index 100% rename from listing/usage-information.html rename to java/listing/usage-information.html diff --git a/screenshots/10_ContainerInstance.png b/java/screenshots/10_ContainerInstance.png similarity index 100% rename from screenshots/10_ContainerInstance.png rename to java/screenshots/10_ContainerInstance.png diff --git a/screenshots/1_GeneralConfiguration.png b/java/screenshots/1_GeneralConfiguration.png similarity index 100% rename from screenshots/1_GeneralConfiguration.png rename to java/screenshots/1_GeneralConfiguration.png diff --git a/screenshots/2_Application.png b/java/screenshots/2_Application.png similarity index 100% rename from screenshots/2_Application.png rename to java/screenshots/2_Application.png diff --git a/screenshots/3_APM.png b/java/screenshots/3_APM.png similarity index 100% rename from screenshots/3_APM.png rename to java/screenshots/3_APM.png diff --git a/screenshots/4_Database.png b/java/screenshots/4_Database.png similarity index 100% rename from screenshots/4_Database.png rename to java/screenshots/4_Database.png diff --git a/screenshots/5_OtherParams.png b/java/screenshots/5_OtherParams.png similarity index 100% rename from screenshots/5_OtherParams.png rename to java/screenshots/5_OtherParams.png diff --git a/screenshots/6_LB_SSL.png b/java/screenshots/6_LB_SSL.png similarity index 100% rename from screenshots/6_LB_SSL.png rename to java/screenshots/6_LB_SSL.png diff --git a/screenshots/7_Vault.png b/java/screenshots/7_Vault.png similarity index 100% rename from screenshots/7_Vault.png rename to java/screenshots/7_Vault.png diff --git a/screenshots/8_ApplicationURL.png b/java/screenshots/8_ApplicationURL.png similarity index 100% rename from screenshots/8_ApplicationURL.png rename to java/screenshots/8_ApplicationURL.png diff --git a/screenshots/9_Network.png b/java/screenshots/9_Network.png similarity index 100% rename from screenshots/9_Network.png rename to java/screenshots/9_Network.png diff --git a/troubleshooting/screenshots/1_statefailed.png b/java/troubleshooting/screenshots/1_statefailed.png similarity index 100% rename from troubleshooting/screenshots/1_statefailed.png rename to java/troubleshooting/screenshots/1_statefailed.png diff --git a/troubleshooting/screenshots/2_logerror.png b/java/troubleshooting/screenshots/2_logerror.png similarity index 100% rename from troubleshooting/screenshots/2_logerror.png rename to java/troubleshooting/screenshots/2_logerror.png diff --git a/troubleshooting/screenshots/3_buildpipelinelog.png b/java/troubleshooting/screenshots/3_buildpipelinelog.png similarity index 100% rename from troubleshooting/screenshots/3_buildpipelinelog.png rename to java/troubleshooting/screenshots/3_buildpipelinelog.png diff --git a/troubleshooting/screenshots/4_artifactalreadyexists.png b/java/troubleshooting/screenshots/4_artifactalreadyexists.png similarity index 100% rename from troubleshooting/screenshots/4_artifactalreadyexists.png rename to java/troubleshooting/screenshots/4_artifactalreadyexists.png diff --git a/troubleshooting/screenshots/5_deleteartifact.png b/java/troubleshooting/screenshots/5_deleteartifact.png similarity index 100% rename from troubleshooting/screenshots/5_deleteartifact.png rename to java/troubleshooting/screenshots/5_deleteartifact.png diff --git a/troubleshooting/troubleshooting.md b/java/troubleshooting/troubleshooting.md similarity index 100% rename from troubleshooting/troubleshooting.md rename to java/troubleshooting/troubleshooting.md diff --git a/tutorials/mytodolist/screenshots/10_devopslogging.png b/java/tutorials/mytodolist/screenshots/10_devopslogging.png similarity index 100% rename from tutorials/mytodolist/screenshots/10_devopslogging.png rename to java/tutorials/mytodolist/screenshots/10_devopslogging.png diff --git a/tutorials/mytodolist/screenshots/11_externalconnection.png b/java/tutorials/mytodolist/screenshots/11_externalconnection.png similarity index 100% rename from tutorials/mytodolist/screenshots/11_externalconnection.png rename to java/tutorials/mytodolist/screenshots/11_externalconnection.png diff --git a/tutorials/mytodolist/screenshots/12_validateexternalconnection.png b/java/tutorials/mytodolist/screenshots/12_validateexternalconnection.png similarity index 100% rename from tutorials/mytodolist/screenshots/12_validateexternalconnection.png rename to java/tutorials/mytodolist/screenshots/12_validateexternalconnection.png diff --git a/tutorials/mytodolist/screenshots/13_createrepo.png b/java/tutorials/mytodolist/screenshots/13_createrepo.png similarity index 100% rename from tutorials/mytodolist/screenshots/13_createrepo.png rename to java/tutorials/mytodolist/screenshots/13_createrepo.png diff --git a/tutorials/mytodolist/screenshots/14_mirrorrepo.png b/java/tutorials/mytodolist/screenshots/14_mirrorrepo.png similarity index 100% rename from tutorials/mytodolist/screenshots/14_mirrorrepo.png rename to java/tutorials/mytodolist/screenshots/14_mirrorrepo.png diff --git a/tutorials/mytodolist/screenshots/15_repo.png b/java/tutorials/mytodolist/screenshots/15_repo.png similarity index 100% rename from tutorials/mytodolist/screenshots/15_repo.png rename to java/tutorials/mytodolist/screenshots/15_repo.png diff --git a/tutorials/mytodolist/screenshots/16_stackbutton.png b/java/tutorials/mytodolist/screenshots/16_stackbutton.png similarity index 100% rename from tutorials/mytodolist/screenshots/16_stackbutton.png rename to java/tutorials/mytodolist/screenshots/16_stackbutton.png diff --git a/tutorials/mytodolist/screenshots/17_createstack.png b/java/tutorials/mytodolist/screenshots/17_createstack.png similarity index 100% rename from tutorials/mytodolist/screenshots/17_createstack.png rename to java/tutorials/mytodolist/screenshots/17_createstack.png diff --git a/tutorials/mytodolist/screenshots/18_generalconfig.png b/java/tutorials/mytodolist/screenshots/18_generalconfig.png similarity index 100% rename from tutorials/mytodolist/screenshots/18_generalconfig.png rename to java/tutorials/mytodolist/screenshots/18_generalconfig.png diff --git a/tutorials/mytodolist/screenshots/19_appconfig.png b/java/tutorials/mytodolist/screenshots/19_appconfig.png similarity index 100% rename from tutorials/mytodolist/screenshots/19_appconfig.png rename to java/tutorials/mytodolist/screenshots/19_appconfig.png diff --git a/tutorials/mytodolist/screenshots/1_springbootrepo.png b/java/tutorials/mytodolist/screenshots/1_springbootrepo.png similarity index 100% rename from tutorials/mytodolist/screenshots/1_springbootrepo.png rename to java/tutorials/mytodolist/screenshots/1_springbootrepo.png diff --git a/tutorials/mytodolist/screenshots/20_apm.png b/java/tutorials/mytodolist/screenshots/20_apm.png similarity index 100% rename from tutorials/mytodolist/screenshots/20_apm.png rename to java/tutorials/mytodolist/screenshots/20_apm.png diff --git a/tutorials/mytodolist/screenshots/21_db.png b/java/tutorials/mytodolist/screenshots/21_db.png similarity index 100% rename from tutorials/mytodolist/screenshots/21_db.png rename to java/tutorials/mytodolist/screenshots/21_db.png diff --git a/tutorials/mytodolist/screenshots/22_vault.png b/java/tutorials/mytodolist/screenshots/22_vault.png similarity index 100% rename from tutorials/mytodolist/screenshots/22_vault.png rename to java/tutorials/mytodolist/screenshots/22_vault.png diff --git a/tutorials/mytodolist/screenshots/23_url.png b/java/tutorials/mytodolist/screenshots/23_url.png similarity index 100% rename from tutorials/mytodolist/screenshots/23_url.png rename to java/tutorials/mytodolist/screenshots/23_url.png diff --git a/tutorials/mytodolist/screenshots/24_network.png b/java/tutorials/mytodolist/screenshots/24_network.png similarity index 100% rename from tutorials/mytodolist/screenshots/24_network.png rename to java/tutorials/mytodolist/screenshots/24_network.png diff --git a/tutorials/mytodolist/screenshots/25_applystack.png b/java/tutorials/mytodolist/screenshots/25_applystack.png similarity index 100% rename from tutorials/mytodolist/screenshots/25_applystack.png rename to java/tutorials/mytodolist/screenshots/25_applystack.png diff --git a/tutorials/mytodolist/screenshots/26_stacksuccess.png b/java/tutorials/mytodolist/screenshots/26_stacksuccess.png similarity index 100% rename from tutorials/mytodolist/screenshots/26_stacksuccess.png rename to java/tutorials/mytodolist/screenshots/26_stacksuccess.png diff --git a/tutorials/mytodolist/screenshots/27_appinformation.png b/java/tutorials/mytodolist/screenshots/27_appinformation.png similarity index 100% rename from tutorials/mytodolist/screenshots/27_appinformation.png rename to java/tutorials/mytodolist/screenshots/27_appinformation.png diff --git a/tutorials/mytodolist/screenshots/28_iamalive.png b/java/tutorials/mytodolist/screenshots/28_iamalive.png similarity index 100% rename from tutorials/mytodolist/screenshots/28_iamalive.png rename to java/tutorials/mytodolist/screenshots/28_iamalive.png diff --git a/tutorials/mytodolist/screenshots/29_containerinstances.png b/java/tutorials/mytodolist/screenshots/29_containerinstances.png similarity index 100% rename from tutorials/mytodolist/screenshots/29_containerinstances.png rename to java/tutorials/mytodolist/screenshots/29_containerinstances.png diff --git a/tutorials/mytodolist/screenshots/2_githubtoken.png b/java/tutorials/mytodolist/screenshots/2_githubtoken.png similarity index 100% rename from tutorials/mytodolist/screenshots/2_githubtoken.png rename to java/tutorials/mytodolist/screenshots/2_githubtoken.png diff --git a/tutorials/mytodolist/screenshots/30_ciinstanc.png b/java/tutorials/mytodolist/screenshots/30_ciinstanc.png similarity index 100% rename from tutorials/mytodolist/screenshots/30_ciinstanc.png rename to java/tutorials/mytodolist/screenshots/30_ciinstanc.png diff --git a/tutorials/mytodolist/screenshots/31_viewlogs.png b/java/tutorials/mytodolist/screenshots/31_viewlogs.png similarity index 100% rename from tutorials/mytodolist/screenshots/31_viewlogs.png rename to java/tutorials/mytodolist/screenshots/31_viewlogs.png diff --git a/tutorials/mytodolist/screenshots/32_logs.png b/java/tutorials/mytodolist/screenshots/32_logs.png similarity index 100% rename from tutorials/mytodolist/screenshots/32_logs.png rename to java/tutorials/mytodolist/screenshots/32_logs.png diff --git a/tutorials/mytodolist/screenshots/3_compartment.png b/java/tutorials/mytodolist/screenshots/3_compartment.png similarity index 100% rename from tutorials/mytodolist/screenshots/3_compartment.png rename to java/tutorials/mytodolist/screenshots/3_compartment.png diff --git a/tutorials/mytodolist/screenshots/4_vault.png b/java/tutorials/mytodolist/screenshots/4_vault.png similarity index 100% rename from tutorials/mytodolist/screenshots/4_vault.png rename to java/tutorials/mytodolist/screenshots/4_vault.png diff --git a/tutorials/mytodolist/screenshots/5_vault_createkey.png b/java/tutorials/mytodolist/screenshots/5_vault_createkey.png similarity index 100% rename from tutorials/mytodolist/screenshots/5_vault_createkey.png rename to java/tutorials/mytodolist/screenshots/5_vault_createkey.png diff --git a/tutorials/mytodolist/screenshots/6_vault_createsecret.png b/java/tutorials/mytodolist/screenshots/6_vault_createsecret.png similarity index 100% rename from tutorials/mytodolist/screenshots/6_vault_createsecret.png rename to java/tutorials/mytodolist/screenshots/6_vault_createsecret.png diff --git a/tutorials/mytodolist/screenshots/7_dynamicgroup.png b/java/tutorials/mytodolist/screenshots/7_dynamicgroup.png similarity index 100% rename from tutorials/mytodolist/screenshots/7_dynamicgroup.png rename to java/tutorials/mytodolist/screenshots/7_dynamicgroup.png diff --git a/tutorials/mytodolist/screenshots/8_policy.png b/java/tutorials/mytodolist/screenshots/8_policy.png similarity index 100% rename from tutorials/mytodolist/screenshots/8_policy.png rename to java/tutorials/mytodolist/screenshots/8_policy.png diff --git a/tutorials/mytodolist/screenshots/9_devopsproject.png b/java/tutorials/mytodolist/screenshots/9_devopsproject.png similarity index 100% rename from tutorials/mytodolist/screenshots/9_devopsproject.png rename to java/tutorials/mytodolist/screenshots/9_devopsproject.png diff --git a/tutorials/mytodolist/tutorial.md b/java/tutorials/mytodolist/tutorial.md similarity index 100% rename from tutorials/mytodolist/tutorial.md rename to java/tutorials/mytodolist/tutorial.md diff --git a/usage_instructions.md b/java/usage_instructions.md similarity index 100% rename from usage_instructions.md rename to java/usage_instructions.md From 435dd0b8e6d798633510e6cefa6c1d0694bca2f4 Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Tue, 19 Sep 2023 11:50:39 +0200 Subject: [PATCH 02/10] Updated tutorial link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7319068..eabbd61 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Please refer to the [usage instructions](./java/usage_instructions.md) for detai ## Tutorial -[MyTodoList SpringBoot application tutorial](./tutorials/mytodolist/tutorial.md). +[MyTodoList SpringBoot application tutorial](./java/tutorials/mytodolist/tutorial.md). # App Stack for .Net From 074b9cbb5c75d6c461bea4f58d352415ab1a706f Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 14:58:47 +0200 Subject: [PATCH 03/10] Shared usage instructions --- java/usage_instructions.md => usage_instructions.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) rename java/usage_instructions.md => usage_instructions.md (99%) diff --git a/java/usage_instructions.md b/usage_instructions.md similarity index 99% rename from java/usage_instructions.md rename to usage_instructions.md index 265f216..b10e404 100644 --- a/java/usage_instructions.md +++ b/usage_instructions.md @@ -10,7 +10,10 @@ Choose the **compute compartment** and **availability domain** where will all re ## Your Application -This section describes the packaging and deployment of your application. +This section describes the packaging and deployment of your application for the different programming languages : + +
+ Java ![](./screenshots/2_Application.png) @@ -38,6 +41,12 @@ The stack supports different kinds of deployments: *source code* deployment, jav - **Full path to the image in the container registry** - **Exposed port:** port exposed by the container image +
+
+ .Net + TODO : complete +
+ ## Stack authentication ![](./screenshots/7_Vault.png) From 48a1065206c4bf852e3aacefcae0661920af7005 Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 15:00:44 +0200 Subject: [PATCH 04/10] Updated image url --- usage_instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usage_instructions.md b/usage_instructions.md index b10e404..4f51bad 100644 --- a/usage_instructions.md +++ b/usage_instructions.md @@ -15,7 +15,7 @@ This section describes the packaging and deployment of your application for the
Java -![](./screenshots/2_Application.png) +![](./java/screenshots/2_Application.png) The stack supports different kinds of deployments: *source code* deployment, java *artifact* deployment or *container image* deployment. Each type of deployment has different prerequisites and requires different parameters. *Source code* deployment is possible if the *source code* of the application is stored in OCI DevOps (mirrored repositories from other sources like GitHub to OCI DevOps); Java *artifact* deployment requires a Java *artifact* to be present if the OCI *artifact* Registry; and *container image* deployment requires the *container image* to the present in an OCI Container Registry accessible by the Stack, the image must be configured to respond to HTTPS requests through the exposed port. From f939227b479de384d7fe233d60df4ff903bf3a58 Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 15:02:02 +0200 Subject: [PATCH 05/10] Updated images --- .../10_ContainerInstance.png | Bin .../1_GeneralConfiguration.png | Bin {java/screenshots => screenshots}/3_APM.png | Bin {java/screenshots => screenshots}/4_Database.png | Bin {java/screenshots => screenshots}/5_OtherParams.png | Bin {java/screenshots => screenshots}/6_LB_SSL.png | Bin {java/screenshots => screenshots}/7_Vault.png | Bin .../8_ApplicationURL.png | Bin {java/screenshots => screenshots}/9_Network.png | Bin 9 files changed, 0 insertions(+), 0 deletions(-) rename {java/screenshots => screenshots}/10_ContainerInstance.png (100%) rename {java/screenshots => screenshots}/1_GeneralConfiguration.png (100%) rename {java/screenshots => screenshots}/3_APM.png (100%) rename {java/screenshots => screenshots}/4_Database.png (100%) rename {java/screenshots => screenshots}/5_OtherParams.png (100%) rename {java/screenshots => screenshots}/6_LB_SSL.png (100%) rename {java/screenshots => screenshots}/7_Vault.png (100%) rename {java/screenshots => screenshots}/8_ApplicationURL.png (100%) rename {java/screenshots => screenshots}/9_Network.png (100%) diff --git a/java/screenshots/10_ContainerInstance.png b/screenshots/10_ContainerInstance.png similarity index 100% rename from java/screenshots/10_ContainerInstance.png rename to screenshots/10_ContainerInstance.png diff --git a/java/screenshots/1_GeneralConfiguration.png b/screenshots/1_GeneralConfiguration.png similarity index 100% rename from java/screenshots/1_GeneralConfiguration.png rename to screenshots/1_GeneralConfiguration.png diff --git a/java/screenshots/3_APM.png b/screenshots/3_APM.png similarity index 100% rename from java/screenshots/3_APM.png rename to screenshots/3_APM.png diff --git a/java/screenshots/4_Database.png b/screenshots/4_Database.png similarity index 100% rename from java/screenshots/4_Database.png rename to screenshots/4_Database.png diff --git a/java/screenshots/5_OtherParams.png b/screenshots/5_OtherParams.png similarity index 100% rename from java/screenshots/5_OtherParams.png rename to screenshots/5_OtherParams.png diff --git a/java/screenshots/6_LB_SSL.png b/screenshots/6_LB_SSL.png similarity index 100% rename from java/screenshots/6_LB_SSL.png rename to screenshots/6_LB_SSL.png diff --git a/java/screenshots/7_Vault.png b/screenshots/7_Vault.png similarity index 100% rename from java/screenshots/7_Vault.png rename to screenshots/7_Vault.png diff --git a/java/screenshots/8_ApplicationURL.png b/screenshots/8_ApplicationURL.png similarity index 100% rename from java/screenshots/8_ApplicationURL.png rename to screenshots/8_ApplicationURL.png diff --git a/java/screenshots/9_Network.png b/screenshots/9_Network.png similarity index 100% rename from java/screenshots/9_Network.png rename to screenshots/9_Network.png From 9321aa4d9cca73b43b47145594087423e58e0d6f Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 15:09:38 +0200 Subject: [PATCH 06/10] Updated build script --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b15f649..d39ed43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: create-artifact run: | ls -lai - mv ${{ inputs.type }}/* . + find ./${{ inputs.type }} -maxdepth 1 -type f | xargs mv -t . sed -i -e "/###HEADER###/r interface-header.yaml" -e "//d" interface.yaml rm interface-header.yaml sed -i -e "/###APPLICATION_GROUP###/r interface-application-group.yaml" -e "//d" interface.yaml From 2a9a8b756a723371049988e36590e4e9ebe8df1f Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 15:11:22 +0200 Subject: [PATCH 07/10] updated build scripts --- .github/workflows/main.yml | 2 +- .github/workflows/on-push.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a91c6f5..26d3626 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ on: - dotnet jobs: call-workflow-passing-data: - uses: oracle-quickstart/appstack/.github/workflows/build.yml@main + uses: oracle-quickstart/appstack/.github/workflows/build.yml@$${{ github.event.inputs.branch }} with: branch: ${{ github.event.inputs.branch }} type: ${{ github.event.inputs.type }} diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 7d444ae..0f97673 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -2,7 +2,7 @@ name: 'Build on push' on: push jobs: call-workflow-passing-data: - uses: oracle-quickstart/appstack/.github/workflows/build.yml@main + uses: oracle-quickstart/appstack/.github/workflows/build.yml@${{github.ref_name}} with: branch: ${{github.ref_name}} type: 'java' From b8ddbf3a42ec902c6570236d87c8fc89d1e0f0ff Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 15:33:32 +0200 Subject: [PATCH 08/10] Trying on push workflow --- .github/workflows/on-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 0f97673..d189231 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -2,7 +2,7 @@ name: 'Build on push' on: push jobs: call-workflow-passing-data: - uses: oracle-quickstart/appstack/.github/workflows/build.yml@${{github.ref_name}} + uses: oracle-quickstart/appstack/.github/workflows/build.yml with: branch: ${{github.ref_name}} type: 'java' From 9c8b43d0dec283384243012536157c41438b5258 Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 15:34:54 +0200 Subject: [PATCH 09/10] removed branch name --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26d3626..b3006cc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ on: - dotnet jobs: call-workflow-passing-data: - uses: oracle-quickstart/appstack/.github/workflows/build.yml@$${{ github.event.inputs.branch }} + uses: oracle-quickstart/appstack/.github/workflows/build.yml with: branch: ${{ github.event.inputs.branch }} type: ${{ github.event.inputs.type }} From 14f454c117098f7de235e65046d4ce6389ef12de Mon Sep 17 00:00:00 2001 From: Fernanda Meheust Date: Wed, 20 Sep 2023 15:40:22 +0200 Subject: [PATCH 10/10] Use local actions --- .github/workflows/main.yml | 2 +- .github/workflows/on-push.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3006cc..543cd19 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ on: - dotnet jobs: call-workflow-passing-data: - uses: oracle-quickstart/appstack/.github/workflows/build.yml + uses: ./.github/workflows/build.yml with: branch: ${{ github.event.inputs.branch }} type: ${{ github.event.inputs.type }} diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index d189231..8ee43c4 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -2,7 +2,7 @@ name: 'Build on push' on: push jobs: call-workflow-passing-data: - uses: oracle-quickstart/appstack/.github/workflows/build.yml + uses: ./.github/workflows/build.yml with: branch: ${{github.ref_name}} type: 'java'