Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
*_creds*
**/venv/
**/__pycache__/
**/__pycache__/**
**/__pycache__/**
Comment thread
Pratham-Mishra04 marked this conversation as resolved.
private.*
Comment thread
coderabbitai[bot] marked this conversation as resolved.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,10 @@ Bifrost is an open-source middleware that serves as a unified gateway to various

#### ii) OR Using Docker

- Download the Dockerfile:
- Pull the Docker image:

```bash
curl -L -o Dockerfile https://raw.githubusercontent.com/maximhq/bifrost/main/transports/Dockerfile
```

- Build the Docker image:

```bash
docker build -t bifrost-transports .
docker pull maximhq/bifrost
```
Comment thread
Pratham-Mishra04 marked this conversation as resolved.

- Run the Docker container:
Expand All @@ -78,7 +72,7 @@ Bifrost is an open-source middleware that serves as a unified gateway to various
-v $(pwd)/config.json:/app/config/config.json \
-e OPENAI_API_KEY \
-e ANTHROPIC_API_KEY \
bifrost-transports
maximhq/bifrost
```

Note: Ensure you mount your config file and add all environment variables referenced in your `config.json` file.
Expand Down
26 changes: 9 additions & 17 deletions transports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,22 @@ In this example, `AWS_SECRET_ACCESS_KEY` and `AWS_REGION` refer to keys in the e

### Docker Setup

1. Download the Dockerfile:
1. Pull the Docker image:

```bash
curl -L -o Dockerfile https://raw.githubusercontent.com/maximhq/bifrost/main/transports/Dockerfile
docker pull maximhq/bifrost
```

2. Build the Docker image:
2. Run the Docker container:

```bash
docker build -t bifrost-transports .
docker run -p 8080:8080 \
-v $(pwd)/config.json:/app/config/config.json \
-e OPENAI_API_KEY \
-e ANTHROPIC_API_KEY \
maximhq/bifrost
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Comment thread
Pratham-Mishra04 marked this conversation as resolved.
```

3. Run the Docker container:

```bash
docker run -p 8080:8080 \
-v $(pwd)/config.json:/app/config/config.json \
-e OPENAI_API_KEY \
-e ANTHROPIC_API_KEY \
bifrost-transports
```

Note: In the command above, `OPENAI_API_KEY` and `ANTHROPIC_API_KEY` are just example environment variables.
Ensure you mount your config file and use the `-e` flag to pass all environment variables referenced in your `config.json` that are prefixed with `env.` to the container. This ensures Docker sets them correctly inside the container.

Expand All @@ -101,12 +95,10 @@ Example usage: Suppose your config.json only contains one environment variable p
```bash
export COHERE_API_KEY=your_cohere_api_key

docker build -t bifrost-transports .

docker run -p 8080:8080 \
-v $(pwd)/config.example.json:/app/config/config.json \
-e COHERE_API_KEY \
bifrost-transports
maximhq/bifrost
```

You can also set runtime environment variables for configuration:
Expand Down