Dockerize environment for automated testing

This commit is contained in:
geoffsee
2025-08-07 19:06:29 -04:00
parent 95d9ba8925
commit 63bea1315a
29 changed files with 9137 additions and 73 deletions

View File

@@ -1,26 +1,32 @@
# axum-tower-sessions-edge
# cf-axum-tower-sessions
[![Rust](https://github.com/seemueller-io/axum-tower-sessions-edge/actions/workflows/test.yaml/badge.svg)](https://github.com/seemueller-io/axum-tower-sessions-edge/actions/workflows/test.yaml)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
> **Warning**: This API may be unstable.
```bash
git clone https://github.com/seemueller-io/axum-tower-sessions-edge.git
# Clone the repository from GitHub
git clone https://github.com/seemueller-io/cf-axum-tower-sessions.git
# Change directory into the project folder
cd axum-tower-sessions-edge
bun install
# Create a `.dev.vars` file in the project root with the following variables:
#CLIENT_ID="your-client-id"
#CLIENT_SECRET="your-client-secret"
#AUTH_SERVER_URL="https://your-zitadel-instance-url"
#ZITADEL_ORG_ID="your-organization-id"
#ZITADEL_PROJECT_ID="your-project-id"
#APP_URL="http://localhost:3000"
# Update the wrangler.jsonc and replace the value of PROXY_TARGET with a worker script name.
# Generate a master key for ZITADEL authentication
npx wrangler dev
# Open `http://localhost:3000` in your browser. If everything is configured correctly, you should be taken to a Zitadel login page.
```
./configure_masterkey.js
# Provision Zitadel with Terraform
./configure_resources.js
# Start ZITADEL service in detached mode using Docker Compose
docker compose -f compose.zitadel.yml up -d
# Start the application services using Docker Compose
docker compose -f compose.app.yml up
## Acknowledgements
This project is made possible thanks to: