Skip to content

Conversation

@pwnage101
Copy link
Member

It seems like the various enterprise-specific devstack settings are a mix of legacy stuff combined with failed attempts to port repo-specific devstack configs into this central devstack repo. As a result, the various hostnames and paths are completely broken. This hasn't impacted us because we normally don't use enterprise inside of devstack, but this is will hopefully be our future.


dev.shell.%: ## Run a shell on the specified service's container.
docker compose exec $* /bin/bash
docker compose exec -u 0 $* /bin/bash
Copy link
Member Author

@pwnage101 pwnage101 May 13, 2025

Choose a reason for hiding this comment

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

We need to be logging developers into the containers as root, NOT as the unprivileged app user. Without root, you're basically helpless as you can't install custom requirements and other basic things like run management commands from the shell.

We've been doing this in the various Makefiles in the enterprise-* repos since forever.

@pwnage101 pwnage101 force-pushed the pwnage101/enterprise-catalog-better-support branch 4 times, most recently from 094816d to 6164812 Compare May 13, 2025 03:44
- ${DEVSTACK_WORKSPACE}/enterprise-access:/edx/app/enterprise-access/
- ${DEVSTACK_WORKSPACE}/src:/edx/src
- ${PWD}/py_configuration_files/enterprise_access.py:/edx/app/enterprise-access/license_manager/settings/devstack.py
- ${PWD}/py_configuration_files/enterprise_access.py:/edx/app/enterprise-access/enterprise_access/settings/devstack.py
Copy link
Member Author

Choose a reason for hiding this comment

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

💩

@pwnage101 pwnage101 force-pushed the pwnage101/enterprise-catalog-better-support branch from 6164812 to 104bab7 Compare May 13, 2025 05:48
It seems like the various enterprise-specific devstack settings are a
mix of legacy stuff combined with failed attempts to port repo-specific
devstack configs into this central devstack repo. As a result, the
various hostnames and paths are completely broken. This hasn't impacted
us because we normally don't use enterprise inside of devstack, but this
is will hopefully be our future.
@pwnage101 pwnage101 force-pushed the pwnage101/enterprise-catalog-better-support branch from 104bab7 to 81c0238 Compare May 13, 2025 20:53
@pwnage101 pwnage101 merged commit 4a2f4b0 into master May 14, 2025
14 checks passed
@pwnage101 pwnage101 deleted the pwnage101/enterprise-catalog-better-support branch May 14, 2025 18:17
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.

4 participants