Skip to content

Commit fe2bb0a

Browse files
author
Jason Schmidt
authored
chore: bump manifets to version 1.3.0 for BoS (#17)
* fix: wrong app name in frontend service yaml * chore: update manifests for 1.3.0 release * chore: update all necessary files for v1.3.0 * fix: remove backup files from commit * chore: update all necessary files for v1.3.0 * fix: remove backup files from commit
1 parent c986117 commit fe2bb0a

File tree

20 files changed

+78
-52
lines changed

20 files changed

+78
-52
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
1.3.0

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,45 @@
22

33
# Bank of Sirius
44

5-
6-
**Bank of Sirius** is a open source fork of [**Bank of Anthos**](https://github.com/nginxinc/bank-of-anthos). This project
7-
improves upon **Bank of Anthos** by adding additional telemetry, instrumentation, performance tuning, upgraded libraries, and more.
8-
The intention is for it to me a more *productionized* example.
5+
**Bank of Sirius** is a open source fork of [**Bank of Anthos**](https://github.com/nginxinc/bank-of-anthos). This
6+
project improves upon **Bank of Anthos** by adding additional telemetry, instrumentation, performance tuning, upgraded
7+
libraries, and more. The intention is for it to me a more *productionized* example.
98

109
## Project
1110

12-
13-
**Bank of Sirius** is a sample HTTP-based web app that simulates a bank's payment processing network, allowing users to create artificial bank accounts and complete transactions.
11+
**Bank of Sirius** is a sample HTTP-based web app that simulates a bank's payment processing network, allowing users to
12+
create artificial bank accounts and complete transactions.
1413

1514
If you’re using this app, please ★Star the repository to show your interest!
1615

1716
## Important Note
18-
This repository is intended to be used with the NGINX Modern Application Architecture (MARA) project [kic-reference-architectures](https://github.com/nginxinc/kic-reference-architectures). This includes modifications to the deployment process, as well as the inclusion of OTEL elements that work with the above project.
1917

20-
If you wish to run this outside of the NGINX MARA project you may run into issues, so it is recommended in this case you either fork this project or the original [Google Bank of Anthos](https://github.com/GoogleCloudPlatform/bank-of-anthos) project.
18+
This repository is intended to be used with the NGINX Modern Application Architecture (MARA)
19+
project [kic-reference-architectures](https://github.com/nginxinc/kic-reference-architectures). This includes
20+
modifications to the deployment process, as well as the inclusion of OTEL elements that work with the above project.
21+
22+
If you wish to run this outside of the NGINX MARA project you may run into issues, so it is recommended in this case you
23+
either fork this project or the original [Google Bank of Anthos](https://github.com/GoogleCloudPlatform/bank-of-anthos)
24+
project.
2125

26+
### Release Process
27+
This process is intended to be used for releases that are intended to be used with the NGINX Modern Application
28+
Architecture (MARA) project [kic-reference-architectures](https://github.com/nginxinc/kic-reference-architectures). If
29+
you are using a forked version of MARA you will want to examine the [GNUMakefile](./GNUmakefile) and adjust your
30+
repository or other targets as required.
31+
32+
1. Set the version: `make version-set`.
33+
2. Update the maven files: `make update-maven-versions`
34+
3. Update the manifest files: `make update-manifest-image-versions`
35+
4. Build the docker images: `make docker-all-images`
36+
5. Push the resulting images to the container registry: `make release`
2237

2338
## Screenshots
2439

2540
| Sign in | Home |
2641
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
2742
| [![Login](./docs/login.png)](./docs/login.png) | [![User Transactions](./docs/transactions.png)](./docs/transactions.png) |
2843

29-
3044
## Service Architecture
3145

3246
![Architecture Diagram](./docs/architecture.png)

docs/development.md

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
# Development Guide
22

3-
This document describes how to develop and add features to the Bank of Sirius application in your local environment.
3+
This document describes how to develop and add features to the Bank of Sirius application in your local environment.
44

5-
## Prerequisites
5+
## Prerequisites
66

77
1. A clone of this repository.
88
2. A linux build environment.
99

10-
## Install Tools
10+
## Install Tools
1111

12-
You can use MacOS or Linux as your dev environment - all these languages and tools support both.
12+
You can use MacOS or Linux as your dev environment - all these languages and tools support both.
1313

14-
1. [Docker](https://www.docker.com/products/docker-desktop)
14+
1. [Docker](https://www.docker.com/products/docker-desktop)
1515
2. [GNU Make 4.x](https://www.gnu.org/software/make/)
1616
5. [JDK **8**](https://www.azul.com/downloads/?package=jdk) (newer versions might cause issues)
1717
6. [Maven **3.6**](https://downloads.apache.org/maven/maven-3/) (newer versions might cause issues)
1818

1919
## Makefile Targets
2020

21-
The following code block shows the valid targets for the make process. Most of these options are self-explanatory, but to completely build the application one can run `make docker-all-images`. To push the new versions to the defined registry, you can run `make release`. Note that this assumes you have the appropriate permissions to push to the defined registry.
21+
The following code block shows the valid targets for the make process. Most of these options are self-explanatory, but
22+
to completely build the application one can run `make docker-all-images`. To push the new versions to the defined
23+
registry, you can run `make release`. Note that this assumes you have the appropriate permissions to push to the defined
24+
registry.
2225

2326
```
2427
checkstyle Run all code style checks
@@ -44,36 +47,45 @@ version Outputs the current version
4447
version-update Prompts for a new version
4548
```
4649

47-
## Adding External Packages
50+
## Adding External Packages
4851

49-
### Python
52+
### Python
5053

51-
If you're adding a new feature that requires a new external Python package in one or more services (`frontend`, `contacts`, `userservice`), you must regenerate the `requirements.txt` file using `piptools`. This is what the Python Dockerfiles use to install external packages inside the containers.
54+
If you're adding a new feature that requires a new external Python package in one or more services (`frontend`
55+
, `contacts`, `userservice`), you must regenerate the `requirements.txt` file using `piptools`. This is what the Python
56+
Dockerfiles use to install external packages inside the containers.
5257

53-
To add a package:
58+
To add a package:
5459

5560
1. Add the package name to `requirements.in` within the `src/<service>` directory:
5661

57-
2. Then run the make target `python-preproc-requirements`. This will transform all Python projects' `requirements.in` files to `requirements.txt` if there have been changes to the `requirements.in` file.
62+
2. Then run the make target `python-preproc-requirements`. This will transform all Python projects' `requirements.in`
63+
files to `requirements.txt` if there have been changes to the `requirements.in` file.
5864

59-
3. Re-run `make` with the appropriate target for your build. To build just the python packages you can run `make docker-python-images`
65+
3. Re-run `make` with the appropriate target for your build. To build just the python packages you can
66+
run `make docker-python-images`
6067

68+
### Java
6169

62-
### Java
70+
If you're adding a new feature to one or more of the Java services (`ledgerwriter`, `transactionhistory`
71+
, `balancereader`) and require a new third-party package, do the following:
6372

64-
If you're adding a new feature to one or more of the Java services (`ledgerwriter`, `transactionhistory`, `balancereader`) and require a new third-party package, do the following:
65-
66-
1. Add the package to the `pom.xml` file in the `src/<service>` directory, under `<dependencies>`. You can find specific package info in [Maven Central](https://search.maven.org/) ([example](https://search.maven.org/artifact/org.postgresql/postgresql/42.2.16.jre7/jar)). Example:
73+
1. Add the package to the `pom.xml` file in the `src/<service>` directory, under `<dependencies>`. You can find specific
74+
package info
75+
in [Maven Central](https://search.maven.org/) ([example](https://search.maven.org/artifact/org.postgresql/postgresql/42.2.16.jre7/jar))
76+
. Example:
6777

6878
```
6979
<dependency>
7080
<groupId>org.postgresql</groupId>
7181
<artifactId>postgresql</artifactId>
7282
</dependency>
7383
```
74-
3. Re-run `make` with the appropriate target for your build. To build just the java packages you can run `make docker-java-images`
7584

85+
3. Re-run `make` with the appropriate target for your build. To build just the java packages you can
86+
run `make docker-java-images`
7687

7788
## Continuous Integration
7889

79-
Github actions are used for continuous integration (CI) for this project. Due to time constrains we have been unable to reimplement the UI tests and deployment tests in the fork.
90+
Github actions are used for continuous integration (CI) for this project. Due to time constrains we have been unable to
91+
reimplement the UI tests and deployment tests in the fork.

kubernetes-manifests/accounts-db.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
serviceAccountName: default
2222
containers:
2323
- name: accounts-db
24-
image: ghcr.io/nginxinc/bos-accounts-db:v1.1.0
24+
image: ghcr.io/nginxinc/bos-accounts-db:v1.3.0
2525
imagePullPolicy: Always
2626
env:
2727
- name: OTEL_EXPORTER_OTLP_ENDPOINT

kubernetes-manifests/balance-reader.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
terminationGracePeriodSeconds: 5
1616
containers:
1717
- name: balancereader
18-
image: ghcr.io/nginxinc/bos-balancereader:v1.1.0
18+
image: ghcr.io/nginxinc/bos-balancereader:v1.3.0
1919
imagePullPolicy: Always
2020
volumeMounts:
2121
- name: publickey

kubernetes-manifests/contacts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
terminationGracePeriodSeconds: 5
1616
containers:
1717
- name: contacts
18-
image: ghcr.io/nginxinc/bos-contacts:v1.1.0
18+
image: ghcr.io/nginxinc/bos-contacts:v1.3.0
1919
imagePullPolicy: Always
2020
volumeMounts:
2121
- name: publickey

kubernetes-manifests/frontend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
terminationGracePeriodSeconds: 5
1616
containers:
1717
- name: front
18-
image: ghcr.io/nginxinc/bos-frontend:v1.1.0
18+
image: ghcr.io/nginxinc/bos-frontend:v1.3.0
1919
imagePullPolicy: Always
2020
volumeMounts:
2121
- name: publickey

kubernetes-manifests/ledger-db.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
serviceAccountName: default
1717
containers:
1818
- name: postgres
19-
image: ghcr.io/nginxinc/bos-ledger-db:v1.1.0
19+
image: ghcr.io/nginxinc/bos-ledger-db:v1.3.0
2020
imagePullPolicy: Always
2121
ports:
2222
- containerPort: 5432

kubernetes-manifests/ledger-writer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
terminationGracePeriodSeconds: 5
1616
containers:
1717
- name: ledgerwriter
18-
image: ghcr.io/nginxinc/bos-ledgerwriter:v1.1.0
18+
image: ghcr.io/nginxinc/bos-ledgerwriter:v1.3.0
1919
imagePullPolicy: Always
2020
volumeMounts:
2121
- name: publickey

kubernetes-manifests/loadgenerator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
restartPolicy: Always
2020
containers:
2121
- name: loadgenerator
22-
image: ghcr.io/nginxinc/bos-loadgenerator:v1.1.0
22+
image: ghcr.io/nginxinc/bos-loadgenerator:v1.3.0
2323
imagePullPolicy: Always
2424
ports:
2525
- containerPort: 8089

0 commit comments

Comments
 (0)