Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gionapaolini committed Apr 13, 2021
1 parent 602b561 commit 5134360
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 29 deletions.
10 changes: 5 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Attach to IntentEditor",
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Source",
"port": 9000,
"port": 8000,
"remoteRoot": "/app",
"request": "attach",
"skipFiles": [
Expand Down Expand Up @@ -33,12 +33,12 @@
}
},
{
"name": "Attach to QAService",
"name": "Attach to IntentClassifier",
"type": "python",
"request": "attach",
"connect": {
"host": "127.0.0.1",
"port": 8000
"port": 9000
},
"pathMappings": [
{
Expand All @@ -48,12 +48,12 @@
]
},
{
"name": "Attach to IntentClassifier",
"name": "Attach to QAService",
"type": "python",
"request": "attach",
"connect": {
"host": "127.0.0.1",
"port": 8001
"port": 9001
},
"pathMappings": [
{
Expand Down
4 changes: 2 additions & 2 deletions Scripts/ForwardPorts.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
i=8000
for dir in ./Source/Python/Services/*/
for dir in ./Source/NodeJS/Services/*/
do
dir_name=$(basename $dir)
service_name=$(echo $dir_name | tr '[:upper:]' '[:lower:]')
Expand All @@ -8,7 +8,7 @@ do
done

i=9000
for dir in ./Source/NodeJS/Services/*/
for dir in ./Source/Python/Services/*/
do
dir_name=$(basename $dir)
service_name=$(echo $dir_name | tr '[:upper:]' '[:lower:]')
Expand Down
2 changes: 1 addition & 1 deletion Source/NodeJS/Services/IntentEditor/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ app.post('/:projectId', async (req, res) => {
const { data } = req.body;
await IntentProjectData.updateOne({projectId}, {data}, { upsert: true });
KafkaProducer.produceMessage("intents-updated", { projectId });
res.status(200).json();
res.status(200).json("Data was updated!!!!!!!!!!!!!!!!!!!");
})

app.get('/:projectId', async (req, res) => {
Expand Down
23 changes: 2 additions & 21 deletions SystemCharts/ServiceChart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,12 @@ spec:
- name: app-storage
persistentVolumeClaim:
claimName: app-volume-claim
{{ if .Values.commandTextInit }}
initContainers:
- name: install-modules
containers:
- name: {{ lower .Values.serviceName }}
image: {{ .Values.image }}
imagePullPolicy: IfNotPresent
workingDir: "/app/{{ .Values.framework }}/Services/{{ .Values.serviceName }}"
command:
- "sh"
args:
- "-c"
- {{ .Values.commandTextInit }}
volumeMounts:
- mountPath: "/app"
name: app-storage
{{ end }}
containers:
- name: {{ lower .Values.serviceName }}
image: {{ .Values.image }}
workingDir: "/app/{{ .Values.framework }}/Services/{{ .Values.serviceName }}"
command:
- "sh"
Expand All @@ -44,18 +32,11 @@ spec:
- {{ .Values.commandText }}
ports:
- containerPort: 80
volumeMounts:
- mountPath: "/app"
name: app-storage
imagePullPolicy: IfNotPresent
env:
- name: SERVICE_NAME
value: {{ .Values.serviceName }}
{{- range .Values.env }}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
{{- range .Values.envRuntime }}
- name: {{ .name }}
value: {{ .value }}
{{- end }}

0 comments on commit 5134360

Please sign in to comment.