Skip to content
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

Merged
merged 3 commits into from
Jul 13, 2023

Conversation

newswangerd
Copy link
Contributor

@newswangerd newswangerd commented May 11, 2023

This adds a default settings.py file to the galaxy image that allows for galaxy_ng to be run out of the box with very little configuration. The goal of this PR is to make the galaxy image as simple as possible for anyone to take for a spin.

Example usage

# run galaxy on localhost
podman run -p 8080:80  ghcr.io/pulp/galaxy:latest

# run galaxy on localhost with https
podman run -p 443:443 -e "PULP_HTTPS=true" -e "GALAXY_PORT=443"  ghcr.io/pulp/galaxy:latest

# run galaxy from a server with https
podman run -p 443:443 -e "PULP_HTTPS=true" -e "GALAXY_PORT=443" -e "GALAXY_HOSTNAME=192.168.0.100"  ghcr.io/pulp/galaxy:latest

# modify the system settings to allow for uploads without approval
podman run -p 8080:80  -e "PULP_GALAXY_REQUIRE_CONTENT_APPROVAL=false" ghcr.io/pulp/galaxy:latest

[noissue]


# allow configuration via env variables
ENV S6_KEEP_ENV=1
COPY images/galaxy/settings.py /etc/pulp/settings.py
Copy link
Member

@mikedep333 mikedep333 May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized this.

Our instructions are to mount the settings directory. Which will include generated certificates, that must be preserved.

However, if we mount the settings directory, this file will be ignored.

Users can work around this by pre-creating (mkdir -p) and mounting the settings/certs subdir instead:

```

Once your containers are running see "Reset the Admin Password" section to set up your admin user.

### Create the Directories and Settings

1st, create the directories for storage/configuration, and create the `settings.py` file:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace:

$ mkdir settings pulp_storage pgsql containers

with:

$ mkdir -p settings/certs pulp_storage pgsql containers

@newswangerd newswangerd force-pushed the feature/galaxy-default-settings branch from 7f7adcf to 028bdeb Compare May 11, 2023 15:58
-e "GALAXY_HOSTNAME=my.galaxy.host.example.com" \
-e "PULP_HTTPS=true" \
-e "GALAXY_PORT=443" \
--volume "$(pwd)/certs":/etc/pulp/certs:Z \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--volume "$(pwd)/certs":/etc/pulp/certs:Z \
--volume "$(pwd)/settings/certs":/etc/pulp/certs:Z \

@stale
Copy link

stale bot commented Jun 29, 2023

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

@stale stale bot added the stale label Jun 29, 2023
@stale
Copy link

stale bot commented Jun 29, 2023

This pull request is no longer marked for closure.

1 similar comment
@stale
Copy link

stale bot commented Jun 29, 2023

This pull request is no longer marked for closure.

@stale stale bot removed the stale label Jun 29, 2023
@newswangerd
Copy link
Contributor Author

@mikedep333 finally got around to updating this

@newswangerd newswangerd force-pushed the feature/galaxy-default-settings branch from aaec187 to f3ded94 Compare July 13, 2023 15:02
@mikedep333 mikedep333 merged commit de6338d into pulp:latest Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants