Dockerize environment for automated testing
This commit is contained in:
36
README.md
36
README.md
@@ -1,26 +1,32 @@
|
||||
# axum-tower-sessions-edge
|
||||
# cf-axum-tower-sessions
|
||||
[](https://github.com/seemueller-io/axum-tower-sessions-edge/actions/workflows/test.yaml)
|
||||
[](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:
|
||||
|
Reference in New Issue
Block a user