I’m currently stuck on the “upgrade” step (for initialization).
The --no-interactive mode for the sentry upgrade command solves part of my problem, but how can I create an initial superuser without resorting to interactive mode?
You can automate creating a user with sentry createuser:
Usage: sentry createuser [OPTIONS]
Create a new user.
Options:
--email TEXT
--password TEXT
--superuser / --no-superuser
--no-password
--no-input
--help Show this message and exit.
I am Using Docker Compose to automate the Sentry Installation as a Docker Container and I need to pass the prompt yes to create Super user and pass email, Password and Confirm same password during running the docker-compose run --rm web upgrade command.
Did you manage to find a solution to run the install non interactively? I’m trying to run the install as part of a pipeline so I’m attempting to run non interactively but unsure how to do that. I’ve went through the documentation and don’t see anything regarding how to set this up.