You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been hacking on this a bit and I think the original plan (update the Cloud Build trigger to run the management command before deploying to Cloud Run) isn't the way forward, mainly because doing a multi-stage build (i.e. Bedrock build, then run the management command to boostrap data and then commit that into a new image) isn't proving clean or straightforward to do in Cloud Build. It's also slower even though it'su not even 100% working yet.
So, instead, I'm wondering about updating our ./bin/sync-all.sh script (which gets called during the Docker image build) to check for the presence of the DEMO_SERVER_ADMIN_USERS env var (which we can inject into the container at build) and to then run ./manage.py boostrap_demo_server_admins
I'm not a massive fan of this, as it adds demo-specific complexity to the general Dockerfile, but it's a lot cleaner from the Cloud Build / Cloud Run side.
We need to get SSO set up on the demo servers so that they can have content edited if need be, and Waffle switches tweaked via the Django Admin
Tasks
The text was updated successfully, but these errors were encountered: