diff --git a/K8S.md b/K8S.md index 47c45bd1..adf711d1 100644 --- a/K8S.md +++ b/K8S.md @@ -24,12 +24,34 @@ This project deploys an AI pipeline with a multipurpose front end for text gener Get troubleshoot help on the [FAQ](FAQ.md) +## Requirements + +You need to be an administrator. + +> If not should have enough privileges for OKE, Network, and Database services. Plus others like tenancy inspect. See example: +> +> ``` +> Allow group 'Default'/'GroupName' to inspect tenancies in tenancy +> ``` + ## Set Up environment +On Cloud Shell, clone the repository: + +```bash +git clone https://github.com/oracle-devrel/oci-generative-ai-jet-ui.git +``` + +Change to the new folder: + +```bash +cd oci-generative-ai-jet-ui +``` + Install Node.js 16 on Cloud Shell. ```bash -nvm install 16 && nvm use 16 +nvm install 18 && nvm use 18 ``` Install dependencies for scripts. @@ -161,19 +183,3 @@ npx zx scripts/clean.mjs ## Local deployment Run locally with these steps [Local](LOCAL.md) - -## Known Issues - -Deploying artifacts as Object Storage. - -> There is an issue in Terraform `oracle/oci` provider on version `v5.25.0`. It is not updated to the specific version of `terraform-plugin-sdk` that fix the underlying gRCP limit of 4Mb. -> -> The project would want to upload artifacts to Object Storage, like the backend jar file, which is bigger than 4Mb. -> -> ```terraform -> data "local_file" "backend_jar_tgz" { -> filename = "${path.module}/../../.artifacts/backend_jar.tar.gz" -> } -> ``` -> -> As a workaround, a `script/deliver.mjs` script and a `script/clean.mjs` script will deliver and clean the artifacts into Object Storage and make Pre-Authenticated Requests available for Terraform resources. diff --git a/scripts/clean.mjs b/scripts/clean.mjs index e5ee17d7..ca647117 100644 --- a/scripts/clean.mjs +++ b/scripts/clean.mjs @@ -2,8 +2,6 @@ import Configstore from "configstore"; import clear from "clear"; -const shell = process.env.SHELL | "/bin/zsh"; -$.shell = shell; $.verbose = false; clear(); diff --git a/scripts/kustom.mjs b/scripts/kustom.mjs index 5be7cd59..ce3a9348 100644 --- a/scripts/kustom.mjs +++ b/scripts/kustom.mjs @@ -5,8 +5,6 @@ import Mustache from "mustache"; import { getOutputValues } from "./lib/terraform.mjs"; import { exitWithError } from "./lib/utils.mjs"; -const shell = process.env.SHELL | "/bin/zsh"; -$.shell = shell; $.verbose = false; clear(); diff --git a/scripts/release.mjs b/scripts/release.mjs index 5270e330..1df861aa 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -16,8 +16,6 @@ import { } from "./lib/container.mjs"; import { getOutputValues } from "./lib/terraform.mjs"; -const shell = process.env.SHELL | "/bin/zsh"; -$.shell = shell; $.verbose = false; clear(); diff --git a/scripts/setenv.mjs b/scripts/setenv.mjs index cf6cee74..d798951d 100644 --- a/scripts/setenv.mjs +++ b/scripts/setenv.mjs @@ -12,8 +12,6 @@ import { } from "./lib/oci.mjs"; import { createSSHKeyPair, createSelfSignedCert } from "./lib/crypto.mjs"; -const shell = process.env.SHELL | "/bin/zsh"; -$.shell = shell; $.verbose = false; clear(); diff --git a/scripts/tfvars.mjs b/scripts/tfvars.mjs index a0828473..068da19d 100644 --- a/scripts/tfvars.mjs +++ b/scripts/tfvars.mjs @@ -3,8 +3,6 @@ import Mustache from "mustache"; import Configstore from "configstore"; import clear from "clear"; -const shell = process.env.SHELL | "/bin/zsh"; -$.shell = shell; $.verbose = false; clear();