This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #659 from deNBI/staging
Staging
- Loading branch information
Showing
18 changed files
with
167 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[clog] | ||
repository = "https://github.com/deNBI/cloud-portal-client" | ||
from-latest-tag = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
CLOUD_CLIENT_TAG=0.1.0-beta.0.13.0 | ||
BIBIGRID_TAG=dev-30-9 | ||
# Client and Bibigrid | ||
CLOUD_CLIENT_TAG=0.1.0-beta.0.15.1 | ||
BIBIGRID_TAG=bibigrid-rest-2.3 | ||
CLIENT_PORT= | ||
FORC_API_KEY= | ||
ELASTIC_USER= | ||
ELASTIC_PASSWORD= | ||
FILEBEAT_TAG=7.1.0 | ||
HOST=portal-dev.denbi.de | ||
REGION=Giessen-Staging | ||
|
||
OS_AUTH_URL= | ||
OS_PROJECT_ID= | ||
OS_PROJECT_NAME= | ||
OS_USERNAME= | ||
OS_USER_DOMAIN_NAME= | ||
OS_PROJECT_DOMAIN_ID= | ||
OS_PROJECT_DOMAIN_NAME= | ||
OS_PASSWORD= | ||
|
||
GITHUB_PLAYBOOKS_REPO=https://api.github.com/repos/deNBI/resenvs/contents/ | ||
# Filebeat | ||
FILEBEAT_TAG=7.10.0 | ||
ELASTIC_USER= | ||
ELASTIC_PASSWORD= | ||
HOST=portal-dev.denbi.de | ||
REGION=Giessen-Staging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import sys | ||
|
||
|
||
def get_keys_from_file(file_name): | ||
all_keys = {} | ||
try: | ||
with open(file_name, "r") as stream: | ||
lines = stream.readlines() | ||
for line in lines: | ||
split_line = line.split("=") | ||
if len(split_line) == 2: | ||
if split_line[1] == "\n": | ||
all_keys[split_line[0]] = False | ||
else: | ||
all_keys[split_line[0]] = True | ||
except FileNotFoundError: | ||
print(f"Could not find file {file_name}. Aborting.") | ||
sys.exit(1) | ||
return all_keys | ||
|
||
|
||
def get_keys_from_config_file(file_name): | ||
all_keys = {} | ||
try: | ||
with open(file_name, "r") as stream: | ||
lines = stream.readlines() | ||
for line in lines: | ||
split_line = line.split(":") | ||
if len(split_line) >= 2: | ||
if split_line[1] == "\n": | ||
all_keys[split_line[0].strip()] = False | ||
else: | ||
all_keys[split_line[0].strip()] = True | ||
except FileNotFoundError: | ||
print(f"Could not find file {file_name}. Aborting.") | ||
sys.exit(1) | ||
return all_keys | ||
|
||
|
||
if __name__ == "__main__": | ||
if sys.argv[3] == "env": | ||
env_in = get_keys_from_file(sys.argv[1]) | ||
env_to_check = get_keys_from_file(sys.argv[2]) | ||
for k, v in env_in.items(): | ||
if k in env_to_check: | ||
if env_to_check[k]: | ||
continue | ||
else: | ||
print(f"{k} is not set in your env file.") | ||
else: | ||
print(f"{k} is missing as a key in your env file.") | ||
elif sys.argv[3] == "config": | ||
config_in = get_keys_from_config_file(sys.argv[1]) | ||
config_to_check = get_keys_from_config_file(sys.argv[2]) | ||
for k, v in config_in.items(): | ||
if k in config_to_check: | ||
if config_to_check[k]: | ||
continue | ||
else: | ||
if not v: | ||
print( | ||
f"{k} is not set in your config file. Could also be a yml key." | ||
) | ||
else: | ||
print(f"{k} is not set in your config file.") | ||
else: | ||
print(f"{k} is missing as a key in your config file.") | ||
else: | ||
print("No information which files to check. Aborting.") | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.