Skip to content

Commit c97f6e7

Browse files
committed
v2.3.3
1 parent 43ce73d commit c97f6e7

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
---
9+
## Version 2.3.3, 5/1/2022
10+
11+
### Added
12+
13+
N/A
14+
15+
### Removed
16+
17+
N/A
18+
19+
### Changed
20+
21+
Updated README and application.yml files
22+
823
---
924
## Version 2.3.0, 1/8/2022
1025

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,27 @@ This will restore the metadata information for pip.
218218
pip install --ignore-installed git+https://github.com/Accenture/mercury-python.git
219219
```
220220

221+
## Application configuration file
222+
223+
The default application config file is located in resources/application.yml.
224+
225+
To use your own config file, please specify "config_file=your_config_file_path" when creating the platform instance.
226+
Please use application.yml as a template and update the parameters.
227+
e.g.
228+
```
229+
platform = Platform(config_file='/tmp/config/application.yml')
230+
```
231+
232+
## language connector's shared secret key
233+
234+
language.pack.key should point to an environment variable containing a secret key for connection to
235+
a language connector. If the environment variable does not exist, the system will get the secret key
236+
from the temporary local file system at /tmp/config/lang-api-key.txt
237+
238+
If /tmp/config/lang-api-key.txt does not exist, the system will create a random secret key automatically.
239+
If the language connector and the python application are running in the same container, they will find each other
240+
without any configuration.
241+
221242
## Distributed tracing
222243

223244
Microservices are likely to be deployed in a multi-tier environment.

mercury/resources/application.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
# the websocket endpoint for a language connector sidecar
44
network.connector: 'ws://127.0.0.1:8090/ws/lang'
55

6-
# the environment variable name for the API key to connect to a language connector
6+
#
7+
# language.pack.key should point to an environment variable containing a secret key for connection to
8+
# a language connector. If the environment variable does not exist, the system will get the secret key
9+
# from the temporary local file system at /tmp/config/lang-api-key.txt
10+
#
711
language:
812
pack:
913
key: 'LANGUAGE_PACK_KEY'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup
55

66
setup(name='mercury',
7-
version='2.3.0',
7+
version='2.3.3',
88
description='Python Language pack for Mercury',
99
author='Eric Law',
1010
author_email='eric.law@accenture.com',

0 commit comments

Comments
 (0)