-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable servers #485
Open
Zeitsperre
wants to merge
18
commits into
main
Choose a base branch
from
configurable-servers
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Configurable servers #485
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
893d233
allow server addresses to be modified for makefile and dockerfile via…
Zeitsperre 6ebc33e
handle urljoin trip-fall
Zeitsperre d789d33
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8bd2e8d
better highlighting
Zeitsperre f0d552d
use concurrency instead of styfle/cancel-workflow-action, update chec…
Zeitsperre 2323f36
Merge branch 'main' into configurable-servers
Zeitsperre d9f0b65
allow for more substitution via environment variables
Zeitsperre 55f95a4
Merge branch 'main' into configurable-servers
Zeitsperre 9c482a6
Merge branch 'main' into configurable-servers
Zeitsperre 036295a
Merge branch 'main' into configurable-servers
Zeitsperre 1db41b7
Merge branch 'main' into configurable-servers
Zeitsperre 85ccf93
fix docstrings
Zeitsperre 32d0c98
revert non-working docker substitutions,
Zeitsperre 39267a8
fix dev guide formatting
Zeitsperre 7bff84c
pin dependencies
Zeitsperre f5398bf
unpin psycopg2
Zeitsperre 9c763f7
update docs
Zeitsperre 42f7b8a
address comments
Zeitsperre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pretty sure
$<env>
format does not work inCMD
.Not sure about
EXPOSE
.The workaround is to use an entrypoint shell script, which then uses the variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One easy way to confirm env var works in
CMD
andEXPOSE
is to build the docker image and test it in the PAVICS stack.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did that and as I remembered, docker run raises something related to
$RAVEN_BIND_ADDRESS:$RAVEN_BIND_PORT
being invalid because$RAVEN_BIND_PORT
doesn't get replaced by the provided integer.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given
ENV RAVEN_BIND_PORT=${RAVEN_BIND_PORT:-9099}
, if we can make the launching command "see" the env var, it should work. So probably useENTRYPOINT
instead ofCMD
. If needed, force starting a new shell to "see" the env var withbash -c "gunicorn --bind=$RAVEN_BIND_ADDRESS:$RAVEN_BIND_PORT raven.wsgi:application"
.Or research a recipe for how to properly start gunicorn inside a Docker image.