dosubot[bot] commented on issue #29504:
URL: https://github.com/apache/superset/issues/29504#issuecomment-2827511279
<!-- Answer -->
To use the `cleanup_permissions` function within a Docker setup for Apache
Superset, you can follow these steps:
1. **Access the Superset Docker Container**: First, you need to access the
shell of the Superset Docker container. You can do this by running the
following command:
```bash
docker exec -it <container_name> /bin/bash
```
Replace `<container_name>` with the name of your Superset container.
2. **Run the Python Script**: Once inside the container, you can execute the
Python script that contains the `cleanup_permissions` function. If the script
is located in the `/app/scripts` directory, you can run it using:
```bash
python /app/scripts/permissions_cleanup.py
```
Ensure that the script is accessible within the container and that Python
is installed.
3. **Verify Cleanup**: After running the script, you can verify that the
deprecated permissions have been cleaned up by checking the permissions in the
Superset UI or querying the database directly.
Make sure the script is correctly mounted into the container if it's not
already part of the image. You can do this by modifying the
`docker-compose.yml` file to include the script in the volumes section, as
described in the Docker Compose setup
<sup>[[1]](https://github.com/apache/superset/blob/master/docker-compose.yml)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/d2b1d8fc-9650-45d6-bcd9-379e857fb274?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/d2b1d8fc-9650-45d6-bcd9-379e857fb274?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/d2b1d8fc-9650-45d6-bcd9-379e857fb274?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/d2b1d8fc-9650-45d6-bcd9-379e857fb274?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/d2b1d8fc-9650-45d6-bcd9-379e857fb274?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/d2b1d8fc-9650-45d6-bcd9-379e857fb274?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/d2b1d8fc-9650-45d6-bcd9-379e857fb274?feedback_type=other)</sup>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]