Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: update demo container for integration test usage #3734

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

mastercactapus
Copy link
Member

Description:
Makes a couple small updates to the demo container for integration test use-cases:

  • Added a non-admin login
  • Added the ability to skip the DB seed step when not necessary

Additional Info:
To validate with docker:

# build dependencies
make bin/goalert-linux-amd64.tgz bin/linux-amd64/resetdb

# build container
docker build -t gademo -f devtools/ci/dockerfiles/demo/Dockerfile.prebuilt --build-arg ARCH=amd64 .

# Run _with_ seed data
docker run -it --rm -p 8081:8081 gademo

# Run _without_ seed data
docker run -it --rm -p 8081:8081 -e SKIP_SEED=1 gademo

Both should allow login of admin/admin123 and user/user1234, with the latter skipping the random data generation (no services, rotations, etc...)

@github-actions github-actions bot added the size/s label Mar 8, 2024
Forfold
Forfold previously approved these changes Mar 8, 2024
Forfold
Forfold previously approved these changes Mar 8, 2024
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: ethan-haynes <eghaynes17@gmail.com>
@mastercactapus mastercactapus merged commit 83739e7 into master Mar 13, 2024
7 checks passed
@mastercactapus mastercactapus deleted the demo-integration branch March 13, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants