Skip to content

Commit

Permalink
fix: prevent permissions issue by adding dir structure, cache, temp (#10
Browse files Browse the repository at this point in the history
)

* fix: prevent permissions issue by creating dir structure and including cache and temp

Signed-off-by: Bryce McMath <[email protected]>

* docs: fix chart readme

Signed-off-by: Bryce McMath <[email protected]>

---------

Signed-off-by: Bryce McMath <[email protected]>
  • Loading branch information
bryce-mcmath authored Jul 18, 2024
1 parent 06865c4 commit 5697e60
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/dist
/node_modules
/build
/.afj

# Logs
logs
Expand Down
2 changes: 2 additions & 0 deletions credo/cache/.afj/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions credo/data/.afj/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions credo/temp/.afj/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
4 changes: 3 additions & 1 deletion devops/charts/server/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Initial:
```console
helm install vdr-proxy ./devops/charts/server -f ./devops/charts/server/values_dev.yaml
```

Afterwards:
```console
helm template vdr-proxy ./devops/charts/server -f ./devops/charts/server values_dev.yaml | oc apply -n c2a2c4-dev -f -
helm upgrade vdr-proxy ./devops/charts/server -f ./devops/charts/server/values_dev.yaml
```
2 changes: 1 addition & 1 deletion devops/charts/server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
periodSeconds: 10
volumeMounts:
- name: cache-volume
mountPath: /app/cache
mountPath: /app/credo
env:
- name: PORT
value: {{.Values.env.PORT | quote}}
Expand Down
4 changes: 3 additions & 1 deletion src/helpers/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ import { WebSocket } from 'ws'
class CustomFileSystem extends NodeFileSystem {
public constructor() {
super({
baseDataPath: `${process.cwd()}/cache`,
baseDataPath: `${process.cwd()}/credo/data`,
baseCachePath: `${process.cwd()}/credo/cache`,
baseTempPath: `${process.cwd()}/credo/tmp`,
})
}
}
Expand Down

0 comments on commit 5697e60

Please sign in to comment.