diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-11-03 08:26:26 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:33:02 +0000 |
commit | cfbb1d2cc01565610ba06a755e10425ff2076d9b (patch) | |
tree | 0e703d7210246573d50e1b07fd505c0001a9ae17 /bitbake/bin | |
parent | baa3e5391daf41b6dd6e914a112abb00d3517da1 (diff) | |
download | poky-cfbb1d2cc01565610ba06a755e10425ff2076d9b.tar.gz |
bitbake: hashserv: Add SQLalchemy backend
Adds an SQLAlchemy backend to the server. While this database backend is
slower than the more direct sqlite backend, it easily supports just
about any SQL server, which is useful for large scale deployments.
(Bitbake rev: e0b73466dd7478c77c82f46879246c1b68b228c0)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake-hashserv | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-hashserv b/bitbake/bin/bitbake-hashserv index a916a90cb0..59b8b07f59 100755 --- a/bitbake/bin/bitbake-hashserv +++ b/bitbake/bin/bitbake-hashserv | |||
@@ -69,6 +69,16 @@ To bind to all addresses, leave the ADDRESS empty, e.g. "--bind :8686" or | |||
69 | action="store_true", | 69 | action="store_true", |
70 | help="Disallow write operations from clients ($HASHSERVER_READ_ONLY)", | 70 | help="Disallow write operations from clients ($HASHSERVER_READ_ONLY)", |
71 | ) | 71 | ) |
72 | parser.add_argument( | ||
73 | "--db-username", | ||
74 | default=os.environ.get("HASHSERVER_DB_USERNAME", None), | ||
75 | help="Database username ($HASHSERVER_DB_USERNAME)", | ||
76 | ) | ||
77 | parser.add_argument( | ||
78 | "--db-password", | ||
79 | default=os.environ.get("HASHSERVER_DB_PASSWORD", None), | ||
80 | help="Database password ($HASHSERVER_DB_PASSWORD)", | ||
81 | ) | ||
72 | 82 | ||
73 | args = parser.parse_args() | 83 | args = parser.parse_args() |
74 | 84 | ||
@@ -90,6 +100,8 @@ To bind to all addresses, leave the ADDRESS empty, e.g. "--bind :8686" or | |||
90 | args.database, | 100 | args.database, |
91 | upstream=args.upstream, | 101 | upstream=args.upstream, |
92 | read_only=read_only, | 102 | read_only=read_only, |
103 | db_username=args.db_username, | ||
104 | db_password=args.db_password, | ||
93 | ) | 105 | ) |
94 | server.serve_forever() | 106 | server.serve_forever() |
95 | return 0 | 107 | return 0 |