Skip to content

Commit

Permalink
Rename app to use BRM instead of BRMS in order to be more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
timwekkenbc committed Nov 12, 2024
1 parent 3155ae6 commit bdcf37c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:

- name: Run Helm
run: |
helm upgrade --install brms-frontend ./helm --set image.tag=${{ needs.build_image.outputs.image_tag }}
helm upgrade --install brm-app ./helm --set image.tag=${{ needs.build_image.outputs.image_tag }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

# BRMS Simulator Frontend (POC)
# BRM (Business Rules Management) App

This is a tool for testing/simulating rules for SDPR's Business Rules Engine. It is a [Next.js](https://nextjs.org/) project that makes use of the [GoRules JDM Editor](https://github.com/gorules/jdm-editor). This project is currently just in the experimental POC phase.
This app is a tool for authoring and testing/simulating rules for SDPR's Business Rules Engine. It is a [Next.js](https://nextjs.org/) project that makes use of a custom fork of the [GoRules JDM Editor](https://github.com/gorules/jdm-editor) (located at https://github.com/bcgov/jdm-editor). You can read more about working with our custom JDM Editor fork [here](https://knowledge.social.gov.bc.ca/successor/bre/jdm-editor).

## Requirements

This project current depends on the API provided by the [brms-api](https://github.com/bcgov/brms-api) project. You'll have to set an environment variable of `NEXT_PUBLIC_SERVER_URL` pointing to the URL of that when it is up and running (like `http://localhost:3000`).
This project current depends on the API provided by the [brm-backend](https://github.com/bcgov/brm-backend) project. You'll have to set an environment variable of `NEXT_PUBLIC_SERVER_URL` pointing to the URL of that when it is up and running (like `http://localhost:3000`).

## Getting it running

Expand Down
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: brms-frontend
description: A Helm chart for deploying brms-frontend
name: brm-app
description: A Helm chart for deploying brm-app
version: 0.1.0
18 changes: 12 additions & 6 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: brms-frontend
name: brm-app
labels:
app.kubernetes.io/name: brms-frontend
app.kubernetes.io/name: brm-app
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: brms-frontend
app.kubernetes.io/name: brm-app
template:
metadata:
labels:
app.kubernetes.io/name: brms-frontend
app.kubernetes.io/name: brm-app
annotations:
helm.sh/release: "{{ .Release.Name }}"
helm.sh/revision: "{{ .Release.Revision }}"
spec:
containers:
- name: brms-frontend
- name: brm-app
image: '{{ .Values.image.tag }}'
ports:
- containerPort: 8080
resources: {}
resources:
limits:
cpu: 150m
memory: 512Mi
requests:
cpu: 75m
memory: 350Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
Expand Down
6 changes: 3 additions & 3 deletions helm/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: brms-frontend
name: brm-app
labels:
app.kubernetes.io/name: brms-frontend
app.kubernetes.io/name: brm-app
spec:
selector:
app.kubernetes.io/name: brms-frontend
app.kubernetes.io/name: brm-app
ports:
- protocol: TCP
port: 8080
Expand Down

0 comments on commit bdcf37c

Please sign in to comment.