-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add a default settings.py file for galaxy #478
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,7 @@ USER root:root | |
RUN ln /usr/local/lib/python3.8/site-packages/pulp_ansible/app/webserver_snippets/nginx.conf /etc/nginx/pulp/pulp_ansible.conf | ||
RUN ln /usr/local/lib/python3.8/site-packages/pulp_container/app/webserver_snippets/nginx.conf /etc/nginx/pulp/pulp_container.conf | ||
RUN ln /usr/local/lib/python3.8/site-packages/galaxy_ng/app/webserver_snippets/nginx.conf /etc/nginx/pulp/galaxy_ng.conf | ||
|
||
# allow configuration via env variables | ||
ENV S6_KEEP_ENV=1 | ||
COPY images/galaxy/settings.py /etc/pulp/settings.py | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just realized this. Our instructions are to mount the However, if we mount the Users can work around this by pre-creating (mkdir -p) and mounting the |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
|
||
_CONTAINER_ENV_CONFIGS = { | ||
"API_PROTOCOL": "https" if os.getenv("PULP_HTTPS", default="false") == "true" else "http", | ||
"API_HOST": os.getenv("GALAXY_HOSTNAME", default="localhost"), | ||
"API_PORT": os.getenv("GALAXY_PORT", default="8080") | ||
} | ||
|
||
CONTENT_ORIGIN='{API_PROTOCOL}://{API_HOST}:{API_PORT}'.format(**_CONTAINER_ENV_CONFIGS) | ||
ALLOWED_EXPORT_PATHS=["/tmp"] | ||
ALLOWED_IMPORT_PATHS=["/tmp"] | ||
|
||
GALAXY_API_PATH_PREFIX='/api/galaxy/' | ||
GALAXY_DEPLOYMENT_MODE='standalone' | ||
RH_ENTITLEMENT_REQUIRED='insights' | ||
GALAXY_REQUIRE_CONTENT_APPROVAL=False | ||
|
||
ANSIBLE_API_HOSTNAME="{API_PROTOCOL}://{API_HOST}:{API_PORT}".format(**_CONTAINER_ENV_CONFIGS) | ||
ANSIBLE_CONTENT_HOSTNAME="{API_PROTOCOL}://{API_HOST}:{API_PORT}/pulp/content".format(**_CONTAINER_ENV_CONFIGS) | ||
|
||
# Pulp container requires this to be set in order to provide docker registry | ||
# compatible token authentication. | ||
# https://docs.pulpproject.org/container/workflows/authentication.html | ||
TOKEN_AUTH_DISABLED=False | ||
TOKEN_SERVER="{API_PROTOCOL}://{API_HOST}:{API_PORT}/token/".format(**_CONTAINER_ENV_CONFIGS) | ||
TOKEN_SIGNATURE_ALGORITHM="ES256" | ||
PUBLIC_KEY_PATH="/etc/pulp/certs/token_public_key.pem" | ||
PRIVATE_KEY_PATH="/etc/pulp/certs/token_private_key.pem" |
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.
Replace:
with: