Noninteractive first time setup of user via upgrade?

Hey folks!
I’m trying to automate our sentry install, using the docker method described here https://docs.sentry.io/on-premise/server/installation/docker/.

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?

Thanks for your help!

Leslie

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.
1 Like

Hi Matt

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.

Hi @RamaAlphaCharlie, @matt,

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.

@strange-developer you can set the CI=1 flag before running the ./install.sh script and it will run in non-interactive mode.

1 Like