Skip to content

Commit f5b7bcc

Browse files
authored
Merge pull request #15 from oracle-devrel/fix-shell-issue
fix shell scripts and improve K8S steps
2 parents a534e6e + ed40581 commit f5b7bcc

File tree

6 files changed

+23
-27
lines changed

6 files changed

+23
-27
lines changed

K8S.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,34 @@ This project deploys an AI pipeline with a multipurpose front end for text gener
2424

2525
Get troubleshoot help on the [FAQ](FAQ.md)
2626

27+
## Requirements
28+
29+
You need to be an administrator.
30+
31+
> If not should have enough privileges for OKE, Network, and Database services. Plus others like tenancy inspect. See example:
32+
>
33+
> ```
34+
> Allow group 'Default'/'GroupName' to inspect tenancies in tenancy
35+
> ```
36+
2737
## Set Up environment
2838
39+
On Cloud Shell, clone the repository:
40+
41+
```bash
42+
git clone https://github.com/oracle-devrel/oci-generative-ai-jet-ui.git
43+
```
44+
45+
Change to the new folder:
46+
47+
```bash
48+
cd oci-generative-ai-jet-ui
49+
```
50+
2951
Install Node.js 16 on Cloud Shell.
3052

3153
```bash
32-
nvm install 16 && nvm use 16
54+
nvm install 18 && nvm use 18
3355
```
3456

3557
Install dependencies for scripts.
@@ -161,19 +183,3 @@ npx zx scripts/clean.mjs
161183
## Local deployment
162184

163185
Run locally with these steps [Local](LOCAL.md)
164-
165-
## Known Issues
166-
167-
Deploying artifacts as Object Storage.
168-
169-
> 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.
170-
>
171-
> The project would want to upload artifacts to Object Storage, like the backend jar file, which is bigger than 4Mb.
172-
>
173-
> ```terraform
174-
> data "local_file" "backend_jar_tgz" {
175-
> filename = "${path.module}/../../.artifacts/backend_jar.tar.gz"
176-
> }
177-
> ```
178-
>
179-
> 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.

scripts/clean.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import Configstore from "configstore";
33
import clear from "clear";
44

5-
const shell = process.env.SHELL | "/bin/zsh";
6-
$.shell = shell;
75
$.verbose = false;
86

97
clear();

scripts/kustom.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import Mustache from "mustache";
55
import { getOutputValues } from "./lib/terraform.mjs";
66
import { exitWithError } from "./lib/utils.mjs";
77

8-
const shell = process.env.SHELL | "/bin/zsh";
9-
$.shell = shell;
108
$.verbose = false;
119

1210
clear();

scripts/release.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import {
1616
} from "./lib/container.mjs";
1717
import { getOutputValues } from "./lib/terraform.mjs";
1818

19-
const shell = process.env.SHELL | "/bin/zsh";
20-
$.shell = shell;
2119
$.verbose = false;
2220

2321
clear();

scripts/setenv.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import {
1212
} from "./lib/oci.mjs";
1313
import { createSSHKeyPair, createSelfSignedCert } from "./lib/crypto.mjs";
1414

15-
const shell = process.env.SHELL | "/bin/zsh";
16-
$.shell = shell;
1715
$.verbose = false;
1816

1917
clear();

scripts/tfvars.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import Mustache from "mustache";
33
import Configstore from "configstore";
44
import clear from "clear";
55

6-
const shell = process.env.SHELL | "/bin/zsh";
7-
$.shell = shell;
86
$.verbose = false;
97

108
clear();

0 commit comments

Comments
 (0)