Skip to content

Commit 496a128

Browse files
authored
Merge pull request #278 from junior/catalogue_hotfix
Catalogue hotfix
2 parents 8f701b8 + ff45d62 commit 496a128

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed

deploy/complete/helm-chart/mushop/charts/catalogue/templates/catalogue-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,6 @@ spec:
5656
{{- toYaml .Values.resources | nindent 12 }}
5757
securityContext:
5858
{{- toYaml .Values.securityContext | nindent 12 }}
59-
volumes: {{- include "catalogue.volumes" . | nindent 8 }}
59+
volumes: {{- include "catalogue.volumes" . | nindent 8 }}
60+
securityContext:
61+
fsGroup: 687467

deploy/complete/helm-chart/mushop/charts/catalogue/templates/catalogue-svc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
ports:
1212
- port: {{ .Values.service.port }}
1313
name: http
14-
targetPort: 80
14+
targetPort: 8080

deploy/complete/helm-chart/mushop/charts/catalogue/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ image:
77

88
dbtools:
99
repository: iad.ocir.io/oracle/ateam/mushop-dbtools
10-
tag: 1.0.1
10+
tag: 19.10.0
1111
pullPolicy: IfNotPresent
1212

1313
osb: {}

deploy/complete/terraform/chart-values/grafana-values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ dashboards:
2828
gnetId: 12658
2929
revision: 1
3030
datasource: Prometheus
31+
k8s-cluster-autoscaler:
32+
gnetId: 3831
33+
revision: 1
34+
datasource: Prometheus
35+
k8s-hpa:
36+
gnetId: 10257
37+
revision: 1
38+
datasource: Prometheus
3139
k8s-pods:
3240
gnetId: 6336
3341
revision: 1
@@ -76,4 +84,4 @@ plugins:
7684
- grafana-worldmap-panel
7785
- grafana-piechart-panel
7886
- btplc-status-dot-panel
79-
- grafana-github-datasource
87+
- grafana-github-datasource

deploy/complete/terraform/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ variables:
287287

288288
cluster_autoscaler_max_nodes:
289289
type: integer
290-
title: "Autoscaler: Maximum number of node"
290+
title: "Autoscaler: Maximum number of nodes"
291291
minimum: 1
292292
maximum: 1000
293293
required: true

src/catalogue/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ RUN microdnf update && \
4242
rm -rf /var/cache/dnf && \
4343
rm -rf /var/cache/yum
4444

45-
RUN groupadd -r app -g $((1000 + $RANDOM)) && \
45+
RUN groupadd -r app -g 687467 && \
4646
useradd -u $((1000 + $RANDOM)) -r -g app -m -d /app -s /sbin/nologin -c "App user" app && \
47-
chmod 755 /app
47+
chmod 755 /app && \
48+
chown -R app /usr/lib/oracle
4849

4950
WORKDIR /app
50-
COPY --from=go-builder /catalogue /app/
51-
COPY images/ /app/images/
51+
COPY --from=go-builder --chown=app:app /catalogue /app/
52+
COPY --chown=app:app images/ /app/images/
5253

5354
VOLUME ["/usr/lib/oracle/${clientVersion}/client64/lib/network/admin/"]
5455
## Workaround to support current implementation. Will go away when fix issue #138

src/catalogue/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.2
1+
1.4.3

0 commit comments

Comments
 (0)