Skip to content

Commit

Permalink
90 fix rabbitmq username and password in clowder related containers (#91
Browse files Browse the repository at this point in the history
)

* pass in the correct environment variable

* add changelog

* add changelog entry

* add changelog entry

* typo
  • Loading branch information
longshuicy authored Nov 27, 2023
1 parent 10087b5 commit fae9d52
Show file tree
Hide file tree
Showing 17 changed files with 118 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Reorganized repository structure [#10](https://github.com/ncsa/standalone-smm-analytics/issues/10)

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)

## [Beta] - 10-26-2023

### Added
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)

## [0.1.0] - 09-21-2023

### Added
- Initial release

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import requests

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def rabbitmq_handler(ch, method, properties, body):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)

## [0.1.0] - 09-21-2023

### Added
- Initial release

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import requests

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def rabbitmq_handler(ch, method, properties, body):
Expand Down
16 changes: 16 additions & 0 deletions containerized_analytics/clowder/clowder_create_space/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)

## [0.1.0] - 09-21-2023

### Added
- Initial release

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import requests

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def rabbitmq_handler(ch, method, properties, body):
Expand Down Expand Up @@ -100,7 +100,7 @@ def _findMyself(username):


if __name__ == '__main__':
ccredentials = pika.PlainCredentials(RABBITMQ_USER, RABBITMQ_PASSWORD)
credentials = pika.PlainCredentials(RABBITMQ_USER, RABBITMQ_PASSWORD)
parameters = pika.ConnectionParameters(RABBITMQ_HOST, 5672, '/', credentials)
connection = pika.BlockingConnection(parameters)
channel = connection.channel()
Expand Down
16 changes: 16 additions & 0 deletions containerized_analytics/clowder/clowder_list/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)

## [0.1.0] - 09-21-2023

### Added
- Initial release

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import requests

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def rabbitmq_handler(ch, method, properties, body):
Expand Down
16 changes: 16 additions & 0 deletions containerized_analytics/clowder/clowder_upload_file/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)

## [0.1.0] - 09-21-2023

### Added
- Initial release

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import writeToS3 as s3

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def get_config_json(config_url):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import postToAWSLambda

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def rabbitmq_handler(ch, method, properties, body):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import postToAWSLambda

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def rabbitmq_handler(ch, method, properties, body):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

### Fixed
- Rabbitmq username and password [#61](https://github.com/ncsa/standalone-smm-analytics/issues/90)
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import postToAWSLambda

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'rabbitmq')
RABBITMQ_USER = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_HOST', 'guest')
RABBITMQ_USER = os.getenv('RABBITMQ_USER', 'guest')
RABBITMQ_PASSWORD = os.getenv('RABBITMQ_PASSWORD', 'guest')


def rabbitmq_handler(ch, method, properties, body):
Expand Down

0 comments on commit fae9d52

Please sign in to comment.