Fix MQTT Workflow, mongodb operator user permissions

This commit is contained in:
Roger 2024-04-12 03:47:00 +00:00
parent f9f6921e7b
commit 2ae3286e87
5 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
name: Oktopus MQTT Brocker
name: Oktopus MQTT Broker
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
@ -36,8 +36,8 @@ jobs:
name: Build and push
uses: docker/build-push-action@v2
with:
context: ../
file: ./backend/services/mtp/mqtt/build/Dockerfile
context: ./backend/services/mtp/mqtt/
file: ./build/Dockerfile
platforms: linux/amd64
push: true
tags: rogersacchelli/mqtt:latest

View File

@ -1,6 +1,6 @@
FROM golang:1.22@sha256:82e07063a1ac3ee59e6f38b1222e32ce88469e4431ff6496cc40fb9a0fc18229 as builder
WORKDIR /app
COPY ../ .
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o mqtt cmd/mqtt/main.go
FROM alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed

View File

@ -33,7 +33,7 @@ spec:
- name: NATS_VERIFY_CERTIFICATES
value: "false"
- name: MONGO_URI
value: "mongodb://oktopusp:oktopusp@mongodb-0.mongodb-svc.mongodb.svc.cluster.local:27017,mongodb-1.mongodb-svc.mongodb.svc.cluster.local:27017,mongodb-2.mongodb-svc.mongodb.svc.cluster.local:27017/adapter?replicaSet=mongodb&ssl=false"
value: "mongodb://oktopusp:oktopusp@mongodb-0.mongodb-svc.mongodb.svc.cluster.local:27017,mongodb-1.mongodb-svc.mongodb.svc.cluster.local:27017,mongodb-2.mongodb-svc.mongodb.svc.cluster.local:27017/?replicaSet=mongodb&ssl=false"
- name: REST_API_PORT
value: "8000"
---

View File

@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: frontend
image: rogersacchelli/frontend:latest
image: oktopusp/frontend:latest
ports:
- containerPort: 3000
imagePullPolicy: IfNotPresent

View File

@ -20,6 +20,8 @@ spec:
db: admin
- name: userAdminAnyDatabase
db: admin
- name: readWriteAnyDatabase
db: admin
scramCredentialsSecretName: my-scram
additionalMongodConfig:
storage.wiredTiger.engineConfig.journalCompressor: zlib