-
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 #12 from bento-platform/image-permissions
Better image permissions setup + locked dependencies update
- Loading branch information
Showing
8 changed files
with
144 additions
and
122 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z "${INTERNAL_PORT}" ]]; then | ||
# Set default internal port to 5000 | ||
INTERNAL_PORT=5000 | ||
cd /service-registry || exit | ||
|
||
# Create bento_user + home | ||
source /create_service_user.bash | ||
|
||
# Fix permissions on /service-registry and /env | ||
chown -R bento_user:bento_user /service-registry | ||
if [[ -d /env ]]; then | ||
chown -R bento_user:bento_user /env | ||
fi | ||
|
||
uvicorn bento_service_registry.app:application \ | ||
--workers 1 \ | ||
--loop uvloop \ | ||
--host 0.0.0.0 \ | ||
--port "${INTERNAL_PORT}" | ||
# Drop into bento_user from root and execute the CMD specified for the image | ||
exec gosu bento_user "$@" |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "bento_service_registry" | ||
version = "0.11.0" | ||
version = "0.11.1" | ||
description = "An implementation of GA4GH Service Registry API for the Bento platform." | ||
authors = ["David Lougheed <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -27,7 +27,7 @@ bento-lib = {extras = ["quart"], version = "^5.4.0"} | |
|
||
[tool.poetry.group.dev.dependencies] | ||
codecov = "^2.1.12" | ||
coverage = "^7.0.3" | ||
coverage = "^7.2.1" | ||
flake8 = "^6.0.0" | ||
pytest = "^7.2.0" | ||
pytest-cov = "^4.0.0" | ||
|
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,12 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z "${INTERNAL_PORT}" ]]; then | ||
# Set default internal port to 5000 | ||
INTERNAL_PORT=5000 | ||
fi | ||
|
||
uvicorn bento_service_registry.app:application \ | ||
--workers 1 \ | ||
--loop uvloop \ | ||
--host 0.0.0.0 \ | ||
--port "${INTERNAL_PORT}" |
File renamed without changes.